ewk_window_features_private.h [plain text]
#ifndef ewk_window_features_private_h
#define ewk_window_features_private_h
#include "EflTypedefs.h"
#include "ewk_object_private.h"
#include <WebKit/WKBase.h>
#include <wtf/RefCounted.h>
class EwkView;
class EwkWindowFeatures : public EwkObject {
public:
EWK_OBJECT_DECLARE(EwkWindowFeatures)
static Ref<EwkWindowFeatures> create(WKDictionaryRef windowFeatures, EwkView* viewImpl)
{
return adoptRef(*new EwkWindowFeatures(windowFeatures, viewImpl));
}
const Evas_Coord_Rectangle& geometry() const { return m_geometry; }
void setGeometry(const Evas_Coord_Rectangle& geometry) { m_geometry = geometry; }
bool toolbarVisible() const { return m_toolbarVisible; }
void setToolbarVisible(bool toolbarVisible);
bool statusBarVisible() const { return m_statusBarVisible; }
void setStatusBarVisible(bool statusBarVisible);
bool scrollbarsVisible() const { return m_scrollbarsVisible; }
void setScrollbarsVisible(bool scrollbarsVisible) { m_scrollbarsVisible = scrollbarsVisible; }
bool menuBarVisible() const { return m_menuBarVisible; }
void setMenuBarVisible(bool menuBarVisible);
bool locationBarVisible() const { return m_locationBarVisible; }
void setLocationBarVisible(bool locationBarVisible) { m_locationBarVisible = locationBarVisible; }
bool resizable() const { return m_resizable; }
void setResizable(bool resizable);
bool fullScreen() const { return m_fullScreen; }
void setFullScreen(bool fullScreen) { m_fullScreen = fullScreen; }
private:
EwkWindowFeatures(WKDictionaryRef windowFeatures, EwkView* viewImpl);
static bool getWindowFeatureBoolValue(WKDictionaryRef windowFeatures, const char* featureName, bool defaultValue);
static double getWindowFeatureDoubleValue(WKDictionaryRef windowFeatures, const char* featureName, double defaultValue);
EwkView* m_view;
Evas_Coord_Rectangle m_geometry;
bool m_toolbarVisible;
bool m_statusBarVisible;
bool m_scrollbarsVisible;
bool m_menuBarVisible;
bool m_locationBarVisible;
bool m_resizable;
bool m_fullScreen;
};
#endif // ewk_window_features_private_h