OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 virtual void didEnterFullScreen() OVERRIDE; | 128 virtual void didEnterFullScreen() OVERRIDE; |
129 virtual void willExitFullScreen() OVERRIDE; | 129 virtual void willExitFullScreen() OVERRIDE; |
130 virtual void didExitFullScreen() OVERRIDE; | 130 virtual void didExitFullScreen() OVERRIDE; |
131 virtual void animate(double) OVERRIDE; | 131 virtual void animate(double) OVERRIDE; |
132 virtual void layout() OVERRIDE; | 132 virtual void layout() OVERRIDE; |
133 virtual void enterForceCompositingMode(bool enable) OVERRIDE; | 133 virtual void enterForceCompositingMode(bool enable) OVERRIDE; |
134 virtual void paint(WebCanvas*, const WebRect&, PaintOptions = ReadbackFromCo
mpositorIfAvailable) OVERRIDE; | 134 virtual void paint(WebCanvas*, const WebRect&, PaintOptions = ReadbackFromCo
mpositorIfAvailable) OVERRIDE; |
135 virtual bool isTrackingRepaints() const OVERRIDE; | 135 virtual bool isTrackingRepaints() const OVERRIDE; |
136 virtual void themeChanged() OVERRIDE; | 136 virtual void themeChanged() OVERRIDE; |
137 virtual bool handleInputEvent(const WebInputEvent&) OVERRIDE; | 137 virtual bool handleInputEvent(const WebInputEvent&) OVERRIDE; |
| 138 virtual bool handleInputEvent(const WebInputEvent&, bool canRubberbandLeft,
bool canRubberbandRight) OVERRIDE; |
138 virtual void setCursorVisibilityState(bool isVisible) OVERRIDE; | 139 virtual void setCursorVisibilityState(bool isVisible) OVERRIDE; |
139 virtual bool hasTouchEventHandlersAt(const WebPoint&) OVERRIDE; | 140 virtual bool hasTouchEventHandlersAt(const WebPoint&) OVERRIDE; |
140 virtual void applyScrollAndScale(const WebSize&, float) OVERRIDE; | 141 virtual void applyScrollAndScale(const WebSize&, float) OVERRIDE; |
141 virtual void mouseCaptureLost() OVERRIDE; | 142 virtual void mouseCaptureLost() OVERRIDE; |
142 virtual void setFocus(bool enable) OVERRIDE; | 143 virtual void setFocus(bool enable) OVERRIDE; |
143 virtual bool setComposition( | 144 virtual bool setComposition( |
144 const WebString& text, | 145 const WebString& text, |
145 const WebVector<WebCompositionUnderline>& underlines, | 146 const WebVector<WebCompositionUnderline>& underlines, |
146 int selectionStart, | 147 int selectionStart, |
147 int selectionEnd) OVERRIDE; | 148 int selectionEnd) OVERRIDE; |
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
588 // Helper function: Widens the width of |source| by the specified margins | 589 // Helper function: Widens the width of |source| by the specified margins |
589 // while keeping it smaller than page width. | 590 // while keeping it smaller than page width. |
590 WebRect widenRectWithinPageBounds(const WebRect& source, int targetMargin, i
nt minimumMargin); | 591 WebRect widenRectWithinPageBounds(const WebRect& source, int targetMargin, i
nt minimumMargin); |
591 | 592 |
592 void pointerLockMouseEvent(const WebInputEvent&); | 593 void pointerLockMouseEvent(const WebInputEvent&); |
593 | 594 |
594 // PageWidgetEventHandler functions | 595 // PageWidgetEventHandler functions |
595 virtual void handleMouseLeave(WebCore::LocalFrame&, const WebMouseEvent&) OV
ERRIDE; | 596 virtual void handleMouseLeave(WebCore::LocalFrame&, const WebMouseEvent&) OV
ERRIDE; |
596 virtual void handleMouseDown(WebCore::LocalFrame&, const WebMouseEvent&) OVE
RRIDE; | 597 virtual void handleMouseDown(WebCore::LocalFrame&, const WebMouseEvent&) OVE
RRIDE; |
597 virtual void handleMouseUp(WebCore::LocalFrame&, const WebMouseEvent&) OVERR
IDE; | 598 virtual void handleMouseUp(WebCore::LocalFrame&, const WebMouseEvent&) OVERR
IDE; |
598 virtual bool handleMouseWheel(WebCore::LocalFrame&, const WebMouseWheelEvent
&) OVERRIDE; | 599 virtual bool handleMouseWheel(WebCore::LocalFrame& mainFrame, const WebMouse
WheelEvent&, bool canRubberbandLeft, bool canRubberbandRight) OVERRIDE; |
599 virtual bool handleGestureEvent(const WebGestureEvent&) OVERRIDE; | 600 virtual bool handleGestureEvent(const WebGestureEvent&) OVERRIDE; |
600 virtual bool handleKeyEvent(const WebKeyboardEvent&) OVERRIDE; | 601 virtual bool handleKeyEvent(const WebKeyboardEvent&) OVERRIDE; |
601 virtual bool handleCharEvent(const WebKeyboardEvent&) OVERRIDE; | 602 virtual bool handleCharEvent(const WebKeyboardEvent&) OVERRIDE; |
602 | 603 |
603 WebCore::InputMethodContext* inputMethodContext(); | 604 WebCore::InputMethodContext* inputMethodContext(); |
604 WebPlugin* focusedPluginIfInputMethodSupported(WebCore::LocalFrame*); | 605 WebPlugin* focusedPluginIfInputMethodSupported(WebCore::LocalFrame*); |
605 | 606 |
606 WebViewClient* m_client; // Can be 0 (e.g. unittests, shared workers, etc.) | 607 WebViewClient* m_client; // Can be 0 (e.g. unittests, shared workers, etc.) |
607 WebAutofillClient* m_autofillClient; | 608 WebAutofillClient* m_autofillClient; |
608 WebSpellCheckClient* m_spellCheckClient; | 609 WebSpellCheckClient* m_spellCheckClient; |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
770 float m_zoomFactorOverride; | 771 float m_zoomFactorOverride; |
771 }; | 772 }; |
772 | 773 |
773 // We have no ways to check if the specified WebView is an instance of | 774 // We have no ways to check if the specified WebView is an instance of |
774 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 775 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
775 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 776 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
776 | 777 |
777 } // namespace blink | 778 } // namespace blink |
778 | 779 |
779 #endif | 780 #endif |
OLD | NEW |