#include "core/loader/FrameLoader.h"
#include "core/loader/NavigationPolicy.h"
#include "core/frame/ConsoleTypes.h"
-#include "core/page/FocusDirection.h"
-#include "core/platform/Cursor.h"
-#include "core/platform/PopupMenu.h"
-#include "core/platform/PopupMenuClient.h"
-#include "core/platform/graphics/GraphicsContext.h"
+#include "core/page/FocusType.h"
#include "core/rendering/RenderEmbeddedObject.h"
-#include "modules/webdatabase/DatabaseDetails.h"
+#include "core/rendering/style/RenderStyleConstants.h"
+#include "platform/Cursor.h"
#include "platform/HostWindow.h"
+#include "platform/PopupMenu.h"
+#include "platform/PopupMenuClient.h"
+#include "platform/graphics/GraphicsContext.h"
#include "platform/scroll/ScrollTypes.h"
#include "wtf/Forward.h"
#include "wtf/PassOwnPtr.h"
-#include "wtf/UnusedParam.h"
#include "wtf/Vector.h"
class FileChooser;
class FloatRect;
class Frame;
-class Geolocation;
-class GraphicsContext3D;
class GraphicsLayer;
class GraphicsLayerFactory;
class HitTestResult;
class PagePopup;
class PagePopupClient;
class PagePopupDriver;
-class PopupContainer;
class PopupMenuClient;
class SecurityOrigin;
class Widget;
virtual FloatRect pageRect() = 0;
virtual void focus() = 0;
- virtual void unfocus() = 0;
- virtual bool canTakeFocus(FocusDirection) = 0;
- virtual void takeFocus(FocusDirection) = 0;
+ virtual bool canTakeFocus(FocusType) = 0;
+ virtual void takeFocus(FocusType) = 0;
virtual void focusedNodeChanged(Node*) = 0;
// created Page has its show method called.
// The FrameLoadRequest parameter is only for ChromeClient to check if the
// request could be fulfilled. The ChromeClient should not load the request.
- virtual Page* createWindow(Frame*, const FrameLoadRequest&, const WindowFeatures&, NavigationPolicy = NavigationPolicyIgnore) = 0;
+ virtual Page* createWindow(Frame*, const FrameLoadRequest&, const WindowFeatures&, NavigationPolicy, ShouldSendReferrer) = 0;
virtual void show(NavigationPolicy) = 0;
virtual bool canRunModal() = 0;
virtual void invalidateContentsAndRootView(const IntRect&) = 0;
virtual void invalidateContentsForSlowScroll(const IntRect&) = 0;
virtual void scroll(const IntSize&, const IntRect&, const IntRect&) = 0;
- virtual IntPoint screenToRootView(const IntPoint&) const = 0;
virtual IntRect rootViewToScreen(const IntRect&) const = 0;
- virtual WebKit::WebScreenInfo screenInfo() const = 0;
+ virtual blink::WebScreenInfo screenInfo() const = 0;
virtual void setCursor(const Cursor&) = 0;
virtual void scheduleAnimation() = 0;
// End methods used by HostWindow.
+ virtual bool isCompositorFramePending() const = 0;
+
virtual void dispatchViewportPropertiesDidChange(const ViewportDescription&) const { }
virtual void contentsSizeChanged(Frame*, const IntSize&) const = 0;
// ENABLE(INPUT_MULTIPLE_FIELDS_UI)
virtual PassRefPtr<DateTimeChooser> openDateTimeChooser(DateTimeChooserClient*, const DateTimeChooserParameters&) = 0;
+ virtual void openTextDataListChooser(HTMLInputElement&) = 0;
+
virtual void runOpenPanel(Frame*, PassRefPtr<FileChooser>) = 0;
// Asychronous request to enumerate all files in a directory chosen by the user.
// Pass 0 as the GraphicsLayer to detatch the root layer.
virtual void attachRootGraphicsLayer(Frame*, GraphicsLayer*) = 0;
- // Sets a flag to specify that the view needs to be updated, so we need
- // to do an eager layout before the drawing.
- virtual void scheduleCompositingLayerFlush() = 0;
- // Returns whether or not the client can render the composited layer,
- // regardless of the settings.
- virtual bool allowsAcceleratedCompositing() const { return true; }
enum CompositingTrigger {
ThreeDTransformTrigger = 1 << 0,
virtual void needTouchEvents(bool) = 0;
+ virtual void setTouchAction(TouchAction) = 0;
+
// Checks if there is an opened popup, called by RenderMenuList::showPopup().
virtual bool hasOpenedPopup() const = 0;
virtual PassRefPtr<PopupMenu> createPopupMenu(Frame&, PopupMenuClient*) const = 0;
- // Creates a PagePopup object, and shows it beside originBoundsInRootView.
- // The return value can be 0.
- virtual PagePopup* openPagePopup(PagePopupClient*, const IntRect& originBoundsInRootView) = 0;
- virtual void closePagePopup(PagePopup*) = 0;
// For testing.
virtual void setPagePopupDriver(PagePopupDriver*) = 0;
virtual void resetPagePopupDriver() = 0;
PromptDialog = 2,
HTMLDialog = 3
};
- virtual bool shouldRunModalDialogDuringPageDismissal(const DialogType&, const String& dialogMessage, Document::PageDismissalType) const { UNUSED_PARAM(dialogMessage); return true; }
+ virtual bool shouldRunModalDialogDuringPageDismissal(const DialogType&, const String&, Document::PageDismissalType) const { return true; }
virtual void numWheelEventHandlersChanged(unsigned) = 0;
virtual bool requestPointerLock() { return false; }
virtual void requestPointerUnlock() { }
- virtual bool isPointerLocked() { return false; }
virtual FloatSize minimumWindowSize() const { return FloatSize(100, 100); };
- virtual bool isEmptyChromeClient() const { return false; }
virtual bool isChromeClientImpl() const { return false; }
virtual void didAssociateFormControls(const Vector<RefPtr<Element> >&) { };
+ virtual void didChangeValueInTextField(HTMLInputElement&) { }
+ virtual void didEndEditingOnTextField(HTMLInputElement&) { }
+ virtual void handleKeyboardEventOnTextField(HTMLInputElement&, KeyboardEvent&) { }
- // Notifies the client of a new popup widget. The client should place
- // and size the widget with the given bounds, relative to the screen.
- // If handleExternal is true, then drawing and input handling for the
- // popup will be handled by the external embedder.
- virtual void popupOpened(PopupContainer* popupContainer, const IntRect& bounds,
- bool handleExternal) = 0;
+ // FIXME: Remove this method once we have input routing in the browser
+ // process. See http://crbug.com/339659.
+ virtual void forwardInputEvent(WebCore::Document*, WebCore::Event*) { }
- // Notifies the client a popup was closed.
- virtual void popupClosed(PopupContainer* popupContainer) = 0;
+ // Input mehtod editor related functions.
+ virtual void didCancelCompositionOnSelectionChange() { }
+ virtual void willSetInputMethodState() { }
protected:
virtual ~ChromeClient() { }