Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(105)

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_aura.h

Issue 2740833005: [cc] Pass on BeginFrameAcks from CompositorEBFS through RWHVAura, DFH. (Closed)
Patch Set: address security comments Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 OnBeginFrameDidNotSwap(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
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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
582 std::unique_ptr<RenderWidgetHostViewEventHandler> event_handler_; 586 std::unique_ptr<RenderWidgetHostViewEventHandler> event_handler_;
583 587
584 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; 588 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_;
585 589
586 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); 590 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura);
587 }; 591 };
588 592
589 } // namespace content 593 } // namespace content
590 594
591 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 595 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698