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 #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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 | 53 |
54 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, | 54 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, |
55 const gfx::Rect& pos) {} | 55 const gfx::Rect& pos) {} |
56 virtual void InitAsFullscreen(RenderWidgetHostView* parent_host_view) {} | 56 virtual void InitAsFullscreen(RenderWidgetHostView* parent_host_view) {} |
57 virtual RenderWidgetHost* GetRenderWidgetHost() const { return NULL; } | 57 virtual RenderWidgetHost* GetRenderWidgetHost() const { return NULL; } |
58 virtual void DidBecomeSelected() {} | 58 virtual void DidBecomeSelected() {} |
59 virtual void WasHidden() {} | 59 virtual void WasHidden() {} |
60 virtual void SetSize(const gfx::Size& size) {} | 60 virtual void SetSize(const gfx::Size& size) {} |
61 virtual gfx::NativeView GetNativeView() { return NULL; } | 61 virtual gfx::NativeView GetNativeView() { return NULL; } |
62 virtual void MovePluginWindows( | 62 virtual void MovePluginWindows( |
63 const std::vector<webkit_glue::WebPluginGeometry>& moves) {} | 63 const std::vector<webkit::npapi::WebPluginGeometry>& moves) {} |
64 #if defined(OS_WIN) | 64 #if defined(OS_WIN) |
65 virtual void ForwardMouseEventToRenderer(UINT message, | 65 virtual void ForwardMouseEventToRenderer(UINT message, |
66 WPARAM wparam, | 66 WPARAM wparam, |
67 LPARAM lparam) {} | 67 LPARAM lparam) {} |
68 #endif | 68 #endif |
69 virtual void Focus() {} | 69 virtual void Focus() {} |
70 virtual void Blur() {} | 70 virtual void Blur() {} |
71 virtual bool HasFocus() { return true; } | 71 virtual bool HasFocus() { return true; } |
72 virtual void AdvanceFocus(bool reverse) {} | 72 virtual void AdvanceFocus(bool reverse) {} |
73 virtual void Show() { is_showing_ = true; } | 73 virtual void Show() { is_showing_ = true; } |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 | 290 |
291 MockRenderProcessHostFactory rph_factory_; | 291 MockRenderProcessHostFactory rph_factory_; |
292 TestRenderViewHostFactory rvh_factory_; | 292 TestRenderViewHostFactory rvh_factory_; |
293 | 293 |
294 scoped_ptr<TestTabContents> contents_; | 294 scoped_ptr<TestTabContents> contents_; |
295 | 295 |
296 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); | 296 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); |
297 }; | 297 }; |
298 | 298 |
299 #endif // CHROME_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ | 299 #endif // CHROME_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ |
OLD | NEW |