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

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

Issue 2780713004: Hide compositor_frame_sink_id from RenderWidgetHostView* (Closed)
Patch Set: Added a comment in android Created 3 years, 8 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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 213
214 virtual void AccessibilityShowMenu(const gfx::Point& point); 214 virtual void AccessibilityShowMenu(const gfx::Point& point);
215 virtual gfx::Point AccessibilityOriginInScreen(const gfx::Rect& bounds); 215 virtual gfx::Point AccessibilityOriginInScreen(const gfx::Rect& bounds);
216 virtual gfx::AcceleratedWidget AccessibilityGetAcceleratedWidget(); 216 virtual gfx::AcceleratedWidget AccessibilityGetAcceleratedWidget();
217 virtual gfx::NativeViewAccessible AccessibilityGetNativeViewAccessible(); 217 virtual gfx::NativeViewAccessible AccessibilityGetNativeViewAccessible();
218 virtual void SetMainFrameAXTreeID(ui::AXTreeIDRegistry::AXTreeID id) {} 218 virtual void SetMainFrameAXTreeID(ui::AXTreeIDRegistry::AXTreeID id) {}
219 // Informs that the focused DOM node has changed. 219 // Informs that the focused DOM node has changed.
220 virtual void FocusedNodeChanged(bool is_editable_node, 220 virtual void FocusedNodeChanged(bool is_editable_node,
221 const gfx::Rect& node_bounds_in_screen) {} 221 const gfx::Rect& node_bounds_in_screen) {}
222 222
223 virtual void OnSwapCompositorFrame(uint32_t compositor_frame_sink_id, 223 // This method is called by RenderWidgetHostImpl when a new
224 const cc::LocalSurfaceId& local_surface_id, 224 // RendererCompositorFrameSink is created in the renderer. The view is
225 cc::CompositorFrame frame) {} 225 // expected not to return resources belonging to the old
226 // RendererCompositorFrameSink after this method finishes.
227 virtual void DidCreateNewRendererCompositorFrameSink() = 0;
228
229 virtual void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id,
230 cc::CompositorFrame frame) = 0;
226 231
227 virtual void OnBeginFrameDidNotSwap(const cc::BeginFrameAck& ack) {} 232 virtual void OnBeginFrameDidNotSwap(const cc::BeginFrameAck& ack) {}
228 233
229 // This method exists to allow removing of displayed graphics, after a new 234 // This method exists to allow removing of displayed graphics, after a new
230 // page has been loaded, to prevent the displayed URL from being out of sync 235 // page has been loaded, to prevent the displayed URL from being out of sync
231 // with what is visible on screen. 236 // with what is visible on screen.
232 virtual void ClearCompositorFrame() = 0; 237 virtual void ClearCompositorFrame() = 0;
233 238
234 // Because the associated remote WebKit instance can asynchronously 239 // Because the associated remote WebKit instance can asynchronously
235 // prevent-default on a dispatched touch event, the touch events are queued in 240 // prevent-default on a dispatched touch event, the touch events are queued in
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; 467 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_;
463 468
464 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; 469 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_;
465 470
466 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); 471 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase);
467 }; 472 };
468 473
469 } // namespace content 474 } // namespace content
470 475
471 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 476 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698