OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_ |
6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ | 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <map> | 9 #include <map> |
10 | 10 |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 virtual void setToolTipText(const blink::WebString& text, | 182 virtual void setToolTipText(const blink::WebString& text, |
183 blink::WebTextDirection hint); | 183 blink::WebTextDirection hint); |
184 virtual void setWindowRect(const blink::WebRect&); | 184 virtual void setWindowRect(const blink::WebRect&); |
185 virtual blink::WebRect windowResizerRect(); | 185 virtual blink::WebRect windowResizerRect(); |
186 virtual blink::WebRect rootWindowRect(); | 186 virtual blink::WebRect rootWindowRect(); |
187 virtual blink::WebScreenInfo screenInfo(); | 187 virtual blink::WebScreenInfo screenInfo(); |
188 virtual float deviceScaleFactor(); | 188 virtual float deviceScaleFactor(); |
189 virtual void resetInputMethod(); | 189 virtual void resetInputMethod(); |
190 virtual void didHandleGestureEvent(const blink::WebGestureEvent& event, | 190 virtual void didHandleGestureEvent(const blink::WebGestureEvent& event, |
191 bool event_cancelled); | 191 bool event_cancelled); |
| 192 virtual void didOverScrollOnMainThread(const float& unusedDeltaX, |
| 193 const float& unusedDeltaY, |
| 194 const float& accumaltedRootOverScrollX, |
| 195 const float& accumaltedRootOverScrollY, |
| 196 const float& positionX, |
| 197 const float& positionY, |
| 198 const float& velocityX, |
| 199 const float& velocityY); |
| 200 |
192 virtual void showImeIfNeeded(); | 201 virtual void showImeIfNeeded(); |
193 | 202 |
194 #if defined(OS_ANDROID) | 203 #if defined(OS_ANDROID) |
195 // Notifies that a tap was not consumed, so showing a UI for the unhandled | 204 // Notifies that a tap was not consumed, so showing a UI for the unhandled |
196 // tap may be needed. | 205 // tap may be needed. |
197 // Performs various checks on the given WebNode to apply heuristics to | 206 // Performs various checks on the given WebNode to apply heuristics to |
198 // determine if triggering is appropriate. | 207 // determine if triggering is appropriate. |
199 virtual void showUnhandledTapUIIfNeeded( | 208 virtual void showUnhandledTapUIIfNeeded( |
200 const blink::WebPoint& tapped_position, | 209 const blink::WebPoint& tapped_position, |
201 const blink::WebNode& tapped_node, | 210 const blink::WebNode& tapped_node, |
(...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
809 ui::MenuSourceType context_menu_source_type_; | 818 ui::MenuSourceType context_menu_source_type_; |
810 bool has_host_context_menu_location_; | 819 bool has_host_context_menu_location_; |
811 gfx::Point host_context_menu_location_; | 820 gfx::Point host_context_menu_location_; |
812 | 821 |
813 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 822 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
814 }; | 823 }; |
815 | 824 |
816 } // namespace content | 825 } // namespace content |
817 | 826 |
818 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 827 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |