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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_base.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_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
(...skipping 25 matching lines...) Expand all
36 #include "ui/display/display.h" 36 #include "ui/display/display.h"
37 #include "ui/gfx/geometry/rect.h" 37 #include "ui/gfx/geometry/rect.h"
38 #include "ui/gfx/native_widget_types.h" 38 #include "ui/gfx/native_widget_types.h"
39 #include "ui/gfx/range/range.h" 39 #include "ui/gfx/range/range.h"
40 #include "ui/surface/transport_dib.h" 40 #include "ui/surface/transport_dib.h"
41 41
42 class SkBitmap; 42 class SkBitmap;
43 43
44 struct ViewHostMsg_SelectionBounds_Params; 44 struct ViewHostMsg_SelectionBounds_Params;
45 45
46 namespace cc {
47 struct BeginFrameAck;
48 } // namespace cc
49
46 namespace media { 50 namespace media {
47 class VideoFrame; 51 class VideoFrame;
48 } 52 }
49 53
50 namespace blink { 54 namespace blink {
51 class WebMouseEvent; 55 class WebMouseEvent;
52 class WebMouseWheelEvent; 56 class WebMouseWheelEvent;
53 } 57 }
54 58
55 namespace cc { 59 namespace cc {
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 virtual gfx::AcceleratedWidget AccessibilityGetAcceleratedWidget(); 215 virtual gfx::AcceleratedWidget AccessibilityGetAcceleratedWidget();
212 virtual gfx::NativeViewAccessible AccessibilityGetNativeViewAccessible(); 216 virtual gfx::NativeViewAccessible AccessibilityGetNativeViewAccessible();
213 217
214 // Informs that the focused DOM node has changed. 218 // Informs that the focused DOM node has changed.
215 virtual void FocusedNodeChanged(bool is_editable_node, 219 virtual void FocusedNodeChanged(bool is_editable_node,
216 const gfx::Rect& node_bounds_in_screen) {} 220 const gfx::Rect& node_bounds_in_screen) {}
217 221
218 virtual void OnSwapCompositorFrame(uint32_t compositor_frame_sink_id, 222 virtual void OnSwapCompositorFrame(uint32_t compositor_frame_sink_id,
219 cc::CompositorFrame frame) {} 223 cc::CompositorFrame frame) {}
220 224
225 virtual void OnBeginFrameDidNotSwap(const cc::BeginFrameAck& ack) {}
226
221 // This method exists to allow removing of displayed graphics, after a new 227 // This method exists to allow removing of displayed graphics, after a new
222 // page has been loaded, to prevent the displayed URL from being out of sync 228 // page has been loaded, to prevent the displayed URL from being out of sync
223 // with what is visible on screen. 229 // with what is visible on screen.
224 virtual void ClearCompositorFrame() = 0; 230 virtual void ClearCompositorFrame() = 0;
225 231
226 // Because the associated remote WebKit instance can asynchronously 232 // Because the associated remote WebKit instance can asynchronously
227 // prevent-default on a dispatched touch event, the touch events are queued in 233 // prevent-default on a dispatched touch event, the touch events are queued in
228 // the GestureRecognizer until invocation of ProcessAckedTouchEvent releases 234 // the GestureRecognizer until invocation of ProcessAckedTouchEvent releases
229 // it to be consumed (when |ack_result| is NOT_CONSUMED OR NO_CONSUMER_EXISTS) 235 // it to be consumed (when |ack_result| is NOT_CONSUMED OR NO_CONSUMER_EXISTS)
230 // or ignored (when |ack_result| is CONSUMED). 236 // or ignored (when |ack_result| is CONSUMED).
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; 460 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_;
455 461
456 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; 462 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_;
457 463
458 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); 464 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase);
459 }; 465 };
460 466
461 } // namespace content 467 } // namespace content
462 468
463 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 469 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698