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_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
11 #include <memory> | 11 #include <memory> |
12 #include <string> | 12 #include <string> |
13 #include <vector> | 13 #include <vector> |
14 | 14 |
15 #include "base/callback_forward.h" | 15 #include "base/callback_forward.h" |
16 #include "base/macros.h" | 16 #include "base/macros.h" |
17 #include "base/observer_list.h" | 17 #include "base/observer_list.h" |
18 #include "base/process/kill.h" | 18 #include "base/process/kill.h" |
19 #include "base/strings/string16.h" | 19 #include "base/strings/string16.h" |
20 #include "base/timer/timer.h" | 20 #include "base/timer/timer.h" |
21 #include "build/build_config.h" | 21 #include "build/build_config.h" |
| 22 #include "cc/output/begin_frame_args.h" |
22 #include "cc/output/compositor_frame.h" | 23 #include "cc/output/compositor_frame.h" |
23 #include "cc/surfaces/surface_id.h" | 24 #include "cc/surfaces/surface_id.h" |
24 #include "content/browser/renderer_host/event_with_latency_info.h" | 25 #include "content/browser/renderer_host/event_with_latency_info.h" |
25 #include "content/common/content_export.h" | 26 #include "content/common/content_export.h" |
26 #include "content/common/input/input_event_ack_state.h" | 27 #include "content/common/input/input_event_ack_state.h" |
27 #include "content/public/browser/readback_types.h" | 28 #include "content/public/browser/readback_types.h" |
28 #include "content/public/browser/render_widget_host_view.h" | 29 #include "content/public/browser/render_widget_host_view.h" |
29 #include "content/public/common/screen_info.h" | 30 #include "content/public/common/screen_info.h" |
30 #include "ipc/ipc_listener.h" | 31 #include "ipc/ipc_listener.h" |
31 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScree
nOrientationType.h" | 32 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScree
nOrientationType.h" |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 virtual gfx::AcceleratedWidget AccessibilityGetAcceleratedWidget(); | 204 virtual gfx::AcceleratedWidget AccessibilityGetAcceleratedWidget(); |
204 virtual gfx::NativeViewAccessible AccessibilityGetNativeViewAccessible(); | 205 virtual gfx::NativeViewAccessible AccessibilityGetNativeViewAccessible(); |
205 | 206 |
206 // Informs that the focused DOM node has changed. | 207 // Informs that the focused DOM node has changed. |
207 virtual void FocusedNodeChanged(bool is_editable_node, | 208 virtual void FocusedNodeChanged(bool is_editable_node, |
208 const gfx::Rect& node_bounds_in_screen) {} | 209 const gfx::Rect& node_bounds_in_screen) {} |
209 | 210 |
210 virtual void OnSwapCompositorFrame(uint32_t compositor_frame_sink_id, | 211 virtual void OnSwapCompositorFrame(uint32_t compositor_frame_sink_id, |
211 cc::CompositorFrame frame) {} | 212 cc::CompositorFrame frame) {} |
212 | 213 |
| 214 virtual void OnBeginFrameDidNotDraw(const cc::BeginFrameAck& ack) {} |
| 215 |
213 // This method exists to allow removing of displayed graphics, after a new | 216 // This method exists to allow removing of displayed graphics, after a new |
214 // page has been loaded, to prevent the displayed URL from being out of sync | 217 // page has been loaded, to prevent the displayed URL from being out of sync |
215 // with what is visible on screen. | 218 // with what is visible on screen. |
216 virtual void ClearCompositorFrame() = 0; | 219 virtual void ClearCompositorFrame() = 0; |
217 | 220 |
218 // Because the associated remote WebKit instance can asynchronously | 221 // Because the associated remote WebKit instance can asynchronously |
219 // prevent-default on a dispatched touch event, the touch events are queued in | 222 // prevent-default on a dispatched touch event, the touch events are queued in |
220 // the GestureRecognizer until invocation of ProcessAckedTouchEvent releases | 223 // the GestureRecognizer until invocation of ProcessAckedTouchEvent releases |
221 // it to be consumed (when |ack_result| is NOT_CONSUMED OR NO_CONSUMER_EXISTS) | 224 // it to be consumed (when |ack_result| is NOT_CONSUMED OR NO_CONSUMER_EXISTS) |
222 // or ignored (when |ack_result| is CONSUMED). | 225 // or ignored (when |ack_result| is CONSUMED). |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
500 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; | 503 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; |
501 | 504 |
502 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; | 505 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; |
503 | 506 |
504 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 507 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
505 }; | 508 }; |
506 | 509 |
507 } // namespace content | 510 } // namespace content |
508 | 511 |
509 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 512 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
OLD | NEW |