| 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/render_widget_host_view_base.h" | 29 #include "content/browser/renderer_host/render_widget_host_view_base.h" |
| 29 #include "content/browser/renderer_host/render_widget_host_view_event_handler.h" | 30 #include "content/browser/renderer_host/render_widget_host_view_event_handler.h" |
| 30 #include "content/browser/renderer_host/resize_lock.h" | 31 #include "content/browser/renderer_host/resize_lock.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 cc::FrameSinkId GetFrameSinkId() override; | 174 cc::FrameSinkId GetFrameSinkId() override; |
| 173 cc::FrameSinkId FrameSinkIdAtPoint(cc::SurfaceHittestDelegate* delegate, | 175 cc::FrameSinkId FrameSinkIdAtPoint(cc::SurfaceHittestDelegate* delegate, |
| 174 const gfx::Point& point, | 176 const gfx::Point& point, |
| 175 gfx::Point* transformed_point) override; | 177 gfx::Point* transformed_point) override; |
| 176 void ProcessMouseEvent(const blink::WebMouseEvent& event, | 178 void ProcessMouseEvent(const blink::WebMouseEvent& event, |
| 177 const ui::LatencyInfo& latency) override; | 179 const ui::LatencyInfo& latency) override; |
| 178 void ProcessMouseWheelEvent(const blink::WebMouseWheelEvent& event, | 180 void ProcessMouseWheelEvent(const blink::WebMouseWheelEvent& event, |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 DiscardDelegatedFramesWithLocking); | 357 DiscardDelegatedFramesWithLocking); |
| 356 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, SoftwareDPIChange); | 358 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, SoftwareDPIChange); |
| 357 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, | 359 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, |
| 358 UpdateCursorIfOverSelf); | 360 UpdateCursorIfOverSelf); |
| 359 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, | 361 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, |
| 360 VisibleViewportTest); | 362 VisibleViewportTest); |
| 361 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, | 363 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, |
| 362 OverscrollResetsOnBlur); | 364 OverscrollResetsOnBlur); |
| 363 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, | 365 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, |
| 364 FinishCompositionByMouse); | 366 FinishCompositionByMouse); |
| 367 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, |
| 368 ForwardsBeginFrameAcks); |
| 365 FRIEND_TEST_ALL_PREFIXES(WebContentsViewAuraTest, | 369 FRIEND_TEST_ALL_PREFIXES(WebContentsViewAuraTest, |
| 366 WebContentsViewReparent); | 370 WebContentsViewReparent); |
| 367 | 371 |
| 368 class WindowObserver; | 372 class WindowObserver; |
| 369 friend class WindowObserver; | 373 friend class WindowObserver; |
| 370 | 374 |
| 371 class WindowAncestorObserver; | 375 class WindowAncestorObserver; |
| 372 friend class WindowAncestorObserver; | 376 friend class WindowAncestorObserver; |
| 373 | 377 |
| 374 void CreateAuraWindow(ui::wm::WindowType type); | 378 void CreateAuraWindow(ui::wm::WindowType type); |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 500 | 504 |
| 501 // Indicates if there is onging composition text. | 505 // Indicates if there is onging composition text. |
| 502 bool has_composition_text_; | 506 bool has_composition_text_; |
| 503 | 507 |
| 504 // Current tooltip text. | 508 // Current tooltip text. |
| 505 base::string16 tooltip_; | 509 base::string16 tooltip_; |
| 506 | 510 |
| 507 // The begin frame source being observed. Null if none. | 511 // The begin frame source being observed. Null if none. |
| 508 cc::BeginFrameSource* begin_frame_source_; | 512 cc::BeginFrameSource* begin_frame_source_; |
| 509 cc::BeginFrameArgs last_begin_frame_args_; | 513 cc::BeginFrameArgs last_begin_frame_args_; |
| 514 uint64_t latest_confirmed_begin_frame_sequence_number_; |
| 510 | 515 |
| 511 // Whether a request for begin frames has been issued. | 516 // Whether a request for begin frames has been issued. |
| 512 bool needs_begin_frames_; | 517 bool needs_begin_frames_; |
| 513 | 518 |
| 514 // Whether a request to flush input has been issued. | 519 // Whether a request to flush input has been issued. |
| 515 bool needs_flush_input_; | 520 bool needs_flush_input_; |
| 516 | 521 |
| 517 // Whether or not a frame observer has been added. | 522 // Whether or not a frame observer has been added. |
| 518 bool added_frame_observer_; | 523 bool added_frame_observer_; |
| 519 | 524 |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 582 std::unique_ptr<RenderWidgetHostViewEventHandler> event_handler_; | 587 std::unique_ptr<RenderWidgetHostViewEventHandler> event_handler_; |
| 583 | 588 |
| 584 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; | 589 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; |
| 585 | 590 |
| 586 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 591 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
| 587 }; | 592 }; |
| 588 | 593 |
| 589 } // namespace content | 594 } // namespace content |
| 590 | 595 |
| 591 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 596 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
| OLD | NEW |