WebPageCreationParameters.h [plain text]
#ifndef WebPageCreationParameters_h
#define WebPageCreationParameters_h
#include "DrawingAreaInfo.h"
#include "SessionState.h"
#include "WebPageGroupData.h"
#include "WebPreferencesStore.h"
#include <WebCore/IntSize.h>
#include <wtf/text/WTFString.h>
namespace CoreIPC {
class ArgumentDecoder;
class ArgumentEncoder;
}
namespace WebKit {
struct WebPageCreationParameters {
void encode(CoreIPC::ArgumentEncoder*) const;
static bool decode(CoreIPC::ArgumentDecoder*, WebPageCreationParameters&);
WebCore::IntSize viewSize;
bool isActive;
bool isFocused;
bool isVisible;
bool isInWindow;
WebPreferencesStore store;
DrawingAreaType drawingAreaType;
WebPageGroupData pageGroupData;
bool drawsBackground;
bool drawsTransparentBackground;
bool areMemoryCacheClientCallsEnabled;
bool useFixedLayout;
WebCore::IntSize fixedLayoutSize;
WebCore::Page::Pagination::Mode paginationMode;
bool paginationBehavesLikeColumns;
double pageLength;
double gapBetweenPages;
String userAgent;
SessionState sessionState;
uint64_t highestUsedBackForwardItemID;
bool canRunBeforeUnloadConfirmPanel;
bool canRunModal;
float deviceScaleFactor;
float mediaVolume;
#if PLATFORM(MAC)
bool isSmartInsertDeleteEnabled;
LayerHostingMode layerHostingMode;
#endif
#if PLATFORM(WIN)
HWND nativeWindow;
#endif
};
}
#endif // WebPageCreationParameters_h