OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 CHROME_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ |
6 #define CHROME_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 virtual BackingStore* AllocBackingStore(const gfx::Size& size); | 71 virtual BackingStore* AllocBackingStore(const gfx::Size& size); |
72 #if defined(OS_MACOSX) | 72 #if defined(OS_MACOSX) |
73 virtual void ShowPopupWithItems(gfx::Rect bounds, | 73 virtual void ShowPopupWithItems(gfx::Rect bounds, |
74 int item_height, | 74 int item_height, |
75 int selected_item, | 75 int selected_item, |
76 const std::vector<WebMenuItem>& items) {} | 76 const std::vector<WebMenuItem>& items) {} |
77 virtual gfx::Rect GetWindowRect(); | 77 virtual gfx::Rect GetWindowRect(); |
78 virtual gfx::Rect GetRootWindowRect(); | 78 virtual gfx::Rect GetRootWindowRect(); |
79 virtual void SetActive(bool active); | 79 virtual void SetActive(bool active); |
80 virtual void SetWindowVisibility(bool visible) {} | 80 virtual void SetWindowVisibility(bool visible) {} |
| 81 virtual gfx::PluginWindowHandle AllocateFakePluginWindowHandle(); |
| 82 virtual void DestroyFakePluginWindowHandle(gfx::PluginWindowHandle window); |
| 83 virtual void GPUPluginSetIOSurface(gfx::PluginWindowHandle window, |
| 84 int32 width, |
| 85 int32 height, |
| 86 uint64 io_surface_identifier); |
| 87 virtual void GPUPluginBuffersSwapped(gfx::PluginWindowHandle window); |
| 88 virtual void DrawGPUPluginInstances(CGLContextObj context); |
81 #endif | 89 #endif |
82 | 90 |
83 #if defined(OS_LINUX) | 91 #if defined(OS_LINUX) |
84 virtual void CreatePluginContainer(gfx::PluginWindowHandle id) { } | 92 virtual void CreatePluginContainer(gfx::PluginWindowHandle id) { } |
85 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id) { } | 93 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id) { } |
86 #endif | 94 #endif |
87 | 95 |
88 bool is_showing() const { return is_showing_; } | 96 bool is_showing() const { return is_showing_; } |
89 | 97 |
90 private: | 98 private: |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 TestRenderViewHostFactory rvh_factory_; | 262 TestRenderViewHostFactory rvh_factory_; |
255 | 263 |
256 scoped_ptr<TestTabContents> contents_; | 264 scoped_ptr<TestTabContents> contents_; |
257 | 265 |
258 scoped_ptr<UserDataManager> user_data_manager_; | 266 scoped_ptr<UserDataManager> user_data_manager_; |
259 | 267 |
260 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); | 268 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); |
261 }; | 269 }; |
262 | 270 |
263 #endif // CHROME_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ | 271 #endif // CHROME_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ |
OLD | NEW |