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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 virtual void Destroy() {} | 69 virtual void Destroy() {} |
70 virtual void PrepareToDestroy() {} | 70 virtual void PrepareToDestroy() {} |
71 virtual void SetTooltipText(const std::wstring& tooltip_text) {} | 71 virtual void SetTooltipText(const std::wstring& tooltip_text) {} |
72 virtual BackingStore* AllocBackingStore(const gfx::Size& size); | 72 virtual BackingStore* AllocBackingStore(const gfx::Size& size); |
73 virtual VideoLayer* AllocVideoLayer(const gfx::Size& size); | 73 virtual VideoLayer* AllocVideoLayer(const gfx::Size& size); |
74 #if defined(OS_MACOSX) | 74 #if defined(OS_MACOSX) |
75 virtual void ShowPopupWithItems(gfx::Rect bounds, | 75 virtual void ShowPopupWithItems(gfx::Rect bounds, |
76 int item_height, | 76 int item_height, |
77 double item_font_size, | 77 double item_font_size, |
78 int selected_item, | 78 int selected_item, |
79 const std::vector<WebMenuItem>& items) {} | 79 const std::vector<WebMenuItem>& items, |
| 80 bool right_aligned) {} |
80 virtual gfx::Rect GetWindowRect(); | 81 virtual gfx::Rect GetWindowRect(); |
81 virtual gfx::Rect GetRootWindowRect(); | 82 virtual gfx::Rect GetRootWindowRect(); |
82 virtual void SetActive(bool active); | 83 virtual void SetActive(bool active); |
83 virtual void SetWindowVisibility(bool visible) {} | 84 virtual void SetWindowVisibility(bool visible) {} |
84 virtual void WindowFrameChanged() {} | 85 virtual void WindowFrameChanged() {} |
85 virtual gfx::PluginWindowHandle AllocateFakePluginWindowHandle( | 86 virtual gfx::PluginWindowHandle AllocateFakePluginWindowHandle( |
86 bool opaque); | 87 bool opaque); |
87 virtual void DestroyFakePluginWindowHandle(gfx::PluginWindowHandle window); | 88 virtual void DestroyFakePluginWindowHandle(gfx::PluginWindowHandle window); |
88 virtual void AcceleratedSurfaceSetIOSurface(gfx::PluginWindowHandle window, | 89 virtual void AcceleratedSurfaceSetIOSurface(gfx::PluginWindowHandle window, |
89 int32 width, | 90 int32 width, |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 TestRenderViewHostFactory rvh_factory_; | 281 TestRenderViewHostFactory rvh_factory_; |
281 | 282 |
282 scoped_ptr<TestTabContents> contents_; | 283 scoped_ptr<TestTabContents> contents_; |
283 | 284 |
284 scoped_ptr<UserDataManager> user_data_manager_; | 285 scoped_ptr<UserDataManager> user_data_manager_; |
285 | 286 |
286 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); | 287 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); |
287 }; | 288 }; |
288 | 289 |
289 #endif // CHROME_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ | 290 #endif // CHROME_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ |
OLD | NEW |