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_AURA_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
11 #include <map> | 11 #include <map> |
12 #include <memory> | 12 #include <memory> |
13 #include <set> | 13 #include <set> |
14 #include <string> | 14 #include <string> |
15 #include <vector> | 15 #include <vector> |
16 | 16 |
17 #include "base/callback.h" | 17 #include "base/callback.h" |
18 #include "base/compiler_specific.h" | 18 #include "base/compiler_specific.h" |
19 #include "base/gtest_prod_util.h" | 19 #include "base/gtest_prod_util.h" |
20 #include "base/macros.h" | 20 #include "base/macros.h" |
21 #include "base/memory/ref_counted.h" | 21 #include "base/memory/ref_counted.h" |
22 #include "base/memory/weak_ptr.h" | 22 #include "base/memory/weak_ptr.h" |
23 #include "build/build_config.h" | 23 #include "build/build_config.h" |
| 24 #include "cc/output/begin_frame_args.h" |
24 #include "cc/scheduler/begin_frame_source.h" | 25 #include "cc/scheduler/begin_frame_source.h" |
25 #include "content/browser/accessibility/browser_accessibility_manager.h" | 26 #include "content/browser/accessibility/browser_accessibility_manager.h" |
26 #include "content/browser/compositor/image_transport_factory.h" | 27 #include "content/browser/compositor/image_transport_factory.h" |
27 #include "content/browser/compositor/owned_mailbox.h" | 28 #include "content/browser/compositor/owned_mailbox.h" |
28 #include "content/browser/renderer_host/delegated_frame_host.h" | 29 #include "content/browser/renderer_host/delegated_frame_host.h" |
29 #include "content/browser/renderer_host/render_widget_host_view_base.h" | 30 #include "content/browser/renderer_host/render_widget_host_view_base.h" |
30 #include "content/browser/renderer_host/render_widget_host_view_event_handler.h" | 31 #include "content/browser/renderer_host/render_widget_host_view_event_handler.h" |
31 #include "content/browser/renderer_host/text_input_manager.h" | 32 #include "content/browser/renderer_host/text_input_manager.h" |
32 #include "content/common/content_export.h" | 33 #include "content/common/content_export.h" |
33 #include "content/common/cursors/webcursor.h" | 34 #include "content/common/cursors/webcursor.h" |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 InputEventAckState FilterInputEvent( | 160 InputEventAckState FilterInputEvent( |
160 const blink::WebInputEvent& input_event) override; | 161 const blink::WebInputEvent& input_event) override; |
161 BrowserAccessibilityManager* CreateBrowserAccessibilityManager( | 162 BrowserAccessibilityManager* CreateBrowserAccessibilityManager( |
162 BrowserAccessibilityDelegate* delegate, bool for_root_frame) override; | 163 BrowserAccessibilityDelegate* delegate, bool for_root_frame) override; |
163 gfx::AcceleratedWidget AccessibilityGetAcceleratedWidget() override; | 164 gfx::AcceleratedWidget AccessibilityGetAcceleratedWidget() override; |
164 gfx::NativeViewAccessible AccessibilityGetNativeViewAccessible() override; | 165 gfx::NativeViewAccessible AccessibilityGetNativeViewAccessible() override; |
165 bool LockMouse() override; | 166 bool LockMouse() override; |
166 void UnlockMouse() override; | 167 void UnlockMouse() override; |
167 void OnSwapCompositorFrame(uint32_t compositor_frame_sink_id, | 168 void OnSwapCompositorFrame(uint32_t compositor_frame_sink_id, |
168 cc::CompositorFrame frame) override; | 169 cc::CompositorFrame frame) override; |
| 170 void OnBeginFrameDidNotDraw(const cc::BeginFrameAck& ack) override; |
169 void ClearCompositorFrame() override; | 171 void ClearCompositorFrame() override; |
170 void DidStopFlinging() override; | 172 void DidStopFlinging() override; |
171 void OnDidNavigateMainFrameToNewPage() override; | 173 void OnDidNavigateMainFrameToNewPage() override; |
172 void LockCompositingSurface() override; | 174 void LockCompositingSurface() override; |
173 void UnlockCompositingSurface() override; | 175 void UnlockCompositingSurface() override; |
174 cc::FrameSinkId GetFrameSinkId() override; | 176 cc::FrameSinkId GetFrameSinkId() override; |
175 cc::FrameSinkId FrameSinkIdAtPoint(cc::SurfaceHittestDelegate* delegate, | 177 cc::FrameSinkId FrameSinkIdAtPoint(cc::SurfaceHittestDelegate* delegate, |
176 const gfx::Point& point, | 178 const gfx::Point& point, |
177 gfx::Point* transformed_point) override; | 179 gfx::Point* transformed_point) override; |
178 void ProcessMouseEvent(const blink::WebMouseEvent& event, | 180 void ProcessMouseEvent(const blink::WebMouseEvent& event, |
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
519 | 521 |
520 // Indicates if there is onging composition text. | 522 // Indicates if there is onging composition text. |
521 bool has_composition_text_; | 523 bool has_composition_text_; |
522 | 524 |
523 // Current tooltip text. | 525 // Current tooltip text. |
524 base::string16 tooltip_; | 526 base::string16 tooltip_; |
525 | 527 |
526 // The begin frame source being observed. Null if none. | 528 // The begin frame source being observed. Null if none. |
527 cc::BeginFrameSource* begin_frame_source_; | 529 cc::BeginFrameSource* begin_frame_source_; |
528 cc::BeginFrameArgs last_begin_frame_args_; | 530 cc::BeginFrameArgs last_begin_frame_args_; |
| 531 uint64_t latest_confirmed_frame_; |
529 | 532 |
530 // Whether a request for begin frames has been issued. | 533 // Whether a request for begin frames has been issued. |
531 bool needs_begin_frames_; | 534 bool needs_begin_frames_; |
532 | 535 |
533 // Whether a request to flush input has been issued. | 536 // Whether a request to flush input has been issued. |
534 bool needs_flush_input_; | 537 bool needs_flush_input_; |
535 | 538 |
536 // Whether or not a frame observer has been added. | 539 // Whether or not a frame observer has been added. |
537 bool added_frame_observer_; | 540 bool added_frame_observer_; |
538 | 541 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
599 std::unique_ptr<RenderWidgetHostViewEventHandler> event_handler_; | 602 std::unique_ptr<RenderWidgetHostViewEventHandler> event_handler_; |
600 | 603 |
601 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; | 604 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; |
602 | 605 |
603 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 606 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
604 }; | 607 }; |
605 | 608 |
606 } // namespace content | 609 } // namespace content |
607 | 610 |
608 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 611 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
OLD | NEW |