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 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
16 #include "base/observer_list.h" | 16 #include "base/observer_list.h" |
17 #include "base/time/time.h" | 17 #include "base/time/time.h" |
18 #include "content/common/content_export.h" | 18 #include "content/common/content_export.h" |
19 #include "content/common/cursors/webcursor.h" | 19 #include "content/common/cursors/webcursor.h" |
20 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" | 20 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" |
21 #include "content/common/input/synthetic_gesture_params.h" | 21 #include "content/common/input/synthetic_gesture_params.h" |
22 #include "content/renderer/message_delivery_policy.h" | 22 #include "content/renderer/message_delivery_policy.h" |
23 #include "ipc/ipc_listener.h" | 23 #include "ipc/ipc_listener.h" |
24 #include "ipc/ipc_sender.h" | 24 #include "ipc/ipc_sender.h" |
25 #include "third_party/WebKit/public/platform/WebDisplayMode.h" | 25 #include "third_party/WebKit/public/platform/WebDisplayMode.h" |
| 26 #include "third_party/WebKit/public/platform/WebFloatRect.h" |
26 #include "third_party/WebKit/public/platform/WebRect.h" | 27 #include "third_party/WebKit/public/platform/WebRect.h" |
27 #include "third_party/WebKit/public/web/WebCompositionUnderline.h" | 28 #include "third_party/WebKit/public/web/WebCompositionUnderline.h" |
28 #include "third_party/WebKit/public/web/WebInputEvent.h" | 29 #include "third_party/WebKit/public/web/WebInputEvent.h" |
29 #include "third_party/WebKit/public/web/WebPopupType.h" | 30 #include "third_party/WebKit/public/web/WebPopupType.h" |
30 #include "third_party/WebKit/public/web/WebTextDirection.h" | 31 #include "third_party/WebKit/public/web/WebTextDirection.h" |
31 #include "third_party/WebKit/public/web/WebTextInputInfo.h" | 32 #include "third_party/WebKit/public/web/WebTextInputInfo.h" |
32 #include "third_party/WebKit/public/web/WebTouchAction.h" | 33 #include "third_party/WebKit/public/web/WebTouchAction.h" |
33 #include "third_party/WebKit/public/web/WebWidget.h" | 34 #include "third_party/WebKit/public/web/WebWidget.h" |
34 #include "third_party/WebKit/public/web/WebWidgetClient.h" | 35 #include "third_party/WebKit/public/web/WebWidgetClient.h" |
35 #include "third_party/skia/include/core/SkBitmap.h" | 36 #include "third_party/skia/include/core/SkBitmap.h" |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 bool event_cancelled) override; | 194 bool event_cancelled) override; |
194 void didOverscroll(const blink::WebFloatSize& unusedDelta, | 195 void didOverscroll(const blink::WebFloatSize& unusedDelta, |
195 const blink::WebFloatSize& accumulatedRootOverScroll, | 196 const blink::WebFloatSize& accumulatedRootOverScroll, |
196 const blink::WebFloatPoint& position, | 197 const blink::WebFloatPoint& position, |
197 const blink::WebFloatSize& velocity) override; | 198 const blink::WebFloatSize& velocity) override; |
198 void showImeIfNeeded() override; | 199 void showImeIfNeeded() override; |
199 | 200 |
200 // Converts the |rect| from Viewport coordinates to Window coordinates. | 201 // Converts the |rect| from Viewport coordinates to Window coordinates. |
201 // See RenderView::convertViewportToWindow for more details. | 202 // See RenderView::convertViewportToWindow for more details. |
202 void convertViewportToWindow(blink::WebRect* rect); | 203 void convertViewportToWindow(blink::WebRect* rect); |
| 204 void convertViewportToWindow(blink::WebFloatRect* rect); |
203 | 205 |
204 #if defined(OS_ANDROID) | 206 #if defined(OS_ANDROID) |
205 // Notifies that a tap was not consumed, so showing a UI for the unhandled | 207 // Notifies that a tap was not consumed, so showing a UI for the unhandled |
206 // tap may be needed. | 208 // tap may be needed. |
207 // Performs various checks on the given WebNode to apply heuristics to | 209 // Performs various checks on the given WebNode to apply heuristics to |
208 // determine if triggering is appropriate. | 210 // determine if triggering is appropriate. |
209 void showUnhandledTapUIIfNeeded(const blink::WebPoint& tapped_position, | 211 void showUnhandledTapUIIfNeeded(const blink::WebPoint& tapped_position, |
210 const blink::WebNode& tapped_node, | 212 const blink::WebNode& tapped_node, |
211 bool page_changed) override; | 213 bool page_changed) override; |
212 #endif | 214 #endif |
(...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
803 | 805 |
804 scoped_ptr<scheduler::RenderWidgetSchedulingState> | 806 scoped_ptr<scheduler::RenderWidgetSchedulingState> |
805 render_widget_scheduling_state_; | 807 render_widget_scheduling_state_; |
806 | 808 |
807 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 809 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
808 }; | 810 }; |
809 | 811 |
810 } // namespace content | 812 } // namespace content |
811 | 813 |
812 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 814 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |