#include "core/loader/FrameLoader.h"
#include "core/loader/NavigationPolicy.h"
#include "core/frame/ConsoleTypes.h"
-#include "core/page/FocusDirection.h"
+#include "core/page/FocusType.h"
#include "core/rendering/RenderEmbeddedObject.h"
#include "core/rendering/style/RenderStyleConstants.h"
#include "platform/Cursor.h"
class FileChooser;
class FloatRect;
class Frame;
-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;
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 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;
// 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,
// 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;
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 didEndEditingOnTextField(HTMLInputElement&) { }
virtual void handleKeyboardEventOnTextField(HTMLInputElement&, KeyboardEvent&) { }
+ // 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*) { }
+
// Input mehtod editor related functions.
virtual void didCancelCompositionOnSelectionChange() { }
virtual void willSetInputMethodState() { }
- // 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;
-
- // Notifies the client a popup was closed.
- virtual void popupClosed(PopupContainer* popupContainer) = 0;
-
protected:
virtual ~ChromeClient() { }
};