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

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

Issue 8513013: Plumb the partial swap though image transport. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Now with a few compile fixes (tested Win, Mac, Linux, and Aura) Created 9 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_TEST_RENDER_VIEW_HOST_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 virtual void RenderViewGone(base::TerminationStatus status, 85 virtual void RenderViewGone(base::TerminationStatus status,
86 int error_code) OVERRIDE; 86 int error_code) OVERRIDE;
87 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh) { } 87 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh) { }
88 virtual void Destroy() OVERRIDE {} 88 virtual void Destroy() OVERRIDE {}
89 virtual void SetTooltipText(const string16& tooltip_text) OVERRIDE {} 89 virtual void SetTooltipText(const string16& tooltip_text) OVERRIDE {}
90 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE; 90 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE;
91 virtual void OnAcceleratedCompositingStateChange() OVERRIDE; 91 virtual void OnAcceleratedCompositingStateChange() OVERRIDE;
92 virtual void AcceleratedSurfaceBuffersSwapped( 92 virtual void AcceleratedSurfaceBuffersSwapped(
93 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, 93 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params,
94 int gpu_host_id) OVERRIDE; 94 int gpu_host_id) OVERRIDE;
95 virtual void AcceleratedSurfacePostSubBuffer(
96 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params,
97 int gpu_host_id) OVERRIDE;
95 #if defined(OS_MACOSX) 98 #if defined(OS_MACOSX)
96 virtual void SetTakesFocusOnlyOnMouseDown(bool flag) OVERRIDE {} 99 virtual void SetTakesFocusOnlyOnMouseDown(bool flag) OVERRIDE {}
97 virtual gfx::Rect GetViewCocoaBounds() const OVERRIDE; 100 virtual gfx::Rect GetViewCocoaBounds() const OVERRIDE;
98 virtual void SetActive(bool active) OVERRIDE; 101 virtual void SetActive(bool active) OVERRIDE;
99 virtual void SetWindowVisibility(bool visible) OVERRIDE {} 102 virtual void SetWindowVisibility(bool visible) OVERRIDE {}
100 virtual void WindowFrameChanged() OVERRIDE {} 103 virtual void WindowFrameChanged() OVERRIDE {}
101 virtual void PluginFocusChanged(bool focused, int plugin_id) OVERRIDE; 104 virtual void PluginFocusChanged(bool focused, int plugin_id) OVERRIDE;
102 virtual void StartPluginIme() OVERRIDE; 105 virtual void StartPluginIme() OVERRIDE;
103 virtual bool PostProcessEventForPluginIme( 106 virtual bool PostProcessEventForPluginIme(
104 const NativeWebKeyboardEvent& event) OVERRIDE; 107 const NativeWebKeyboardEvent& event) OVERRIDE;
(...skipping 24 matching lines...) Expand all
129 const WebKit::WebMouseWheelEvent& event) OVERRIDE { } 132 const WebKit::WebMouseWheelEvent& event) OVERRIDE { }
130 virtual void SetHasHorizontalScrollbar( 133 virtual void SetHasHorizontalScrollbar(
131 bool has_horizontal_scrollbar) OVERRIDE { } 134 bool has_horizontal_scrollbar) OVERRIDE { }
132 virtual void SetScrollOffsetPinning( 135 virtual void SetScrollOffsetPinning(
133 bool is_pinned_to_left, bool is_pinned_to_right) OVERRIDE { } 136 bool is_pinned_to_left, bool is_pinned_to_right) OVERRIDE { }
134 137
135 #if defined(UI_COMPOSITOR_IMAGE_TRANSPORT) 138 #if defined(UI_COMPOSITOR_IMAGE_TRANSPORT)
136 virtual void AcceleratedSurfaceNew( 139 virtual void AcceleratedSurfaceNew(
137 int32 width, int32 height, uint64* surface_id, 140 int32 width, int32 height, uint64* surface_id,
138 TransportDIB::Handle* surface_handle) { } 141 TransportDIB::Handle* surface_handle) { }
139 virtual void AcceleratedSurfaceBuffersSwapped(
140 uint64 surface_id,
141 int32 route_id,
142 int gpu_host_id) OVERRIDE {}
143 virtual void AcceleratedSurfaceRelease(uint64 surface_id) { } 142 virtual void AcceleratedSurfaceRelease(uint64 surface_id) { }
144 #endif 143 #endif
145 144
146 #if defined(TOOLKIT_USES_GTK) 145 #if defined(TOOLKIT_USES_GTK)
147 virtual void CreatePluginContainer(gfx::PluginWindowHandle id) { } 146 virtual void CreatePluginContainer(gfx::PluginWindowHandle id) { }
148 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id) { } 147 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id) { }
149 #endif 148 #endif
150 149
151 virtual gfx::PluginWindowHandle GetCompositingSurface() OVERRIDE; 150 virtual gfx::PluginWindowHandle GetCompositingSurface() OVERRIDE;
152 151
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 MockRenderProcessHostFactory rph_factory_; 332 MockRenderProcessHostFactory rph_factory_;
334 TestRenderViewHostFactory rvh_factory_; 333 TestRenderViewHostFactory rvh_factory_;
335 334
336 private: 335 private:
337 scoped_ptr<TestTabContents> contents_; 336 scoped_ptr<TestTabContents> contents_;
338 337
339 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); 338 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness);
340 }; 339 };
341 340
342 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ 341 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_win.cc ('k') | content/browser/renderer_host/test_render_view_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698