| 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 27 matching lines...) Expand all Loading... |
| 38 // TestRenderViewHostView ------------------------------------------------------ | 38 // TestRenderViewHostView ------------------------------------------------------ |
| 39 | 39 |
| 40 // Subclass the RenderViewHost's view so that we can call Show(), etc., | 40 // Subclass the RenderViewHost's view so that we can call Show(), etc., |
| 41 // without having side-effects. | 41 // without having side-effects. |
| 42 class TestRenderWidgetHostView : public RenderWidgetHostView { | 42 class TestRenderWidgetHostView : public RenderWidgetHostView { |
| 43 public: | 43 public: |
| 44 explicit TestRenderWidgetHostView(RenderWidgetHost* rwh); | 44 explicit TestRenderWidgetHostView(RenderWidgetHost* rwh); |
| 45 | 45 |
| 46 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, | 46 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, |
| 47 const gfx::Rect& pos) {} | 47 const gfx::Rect& pos) {} |
| 48 virtual void InitAsFullscreen(RenderWidgetHostView* parent_host_view) {} |
| 48 virtual RenderWidgetHost* GetRenderWidgetHost() const { return NULL; } | 49 virtual RenderWidgetHost* GetRenderWidgetHost() const { return NULL; } |
| 49 virtual void DidBecomeSelected() {} | 50 virtual void DidBecomeSelected() {} |
| 50 virtual void WasHidden() {} | 51 virtual void WasHidden() {} |
| 51 virtual void SetSize(const gfx::Size& size) {} | 52 virtual void SetSize(const gfx::Size& size) {} |
| 52 virtual gfx::NativeView GetNativeView() { return NULL; } | 53 virtual gfx::NativeView GetNativeView() { return NULL; } |
| 53 virtual void MovePluginWindows( | 54 virtual void MovePluginWindows( |
| 54 const std::vector<webkit_glue::WebPluginGeometry>& moves) {} | 55 const std::vector<webkit_glue::WebPluginGeometry>& moves) {} |
| 55 #if defined(OS_WIN) | 56 #if defined(OS_WIN) |
| 56 virtual void ForwardMouseEventToRenderer(UINT message, | 57 virtual void ForwardMouseEventToRenderer(UINT message, |
| 57 WPARAM wparam, | 58 WPARAM wparam, |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 | 304 |
| 304 MockRenderProcessHostFactory rph_factory_; | 305 MockRenderProcessHostFactory rph_factory_; |
| 305 TestRenderViewHostFactory rvh_factory_; | 306 TestRenderViewHostFactory rvh_factory_; |
| 306 | 307 |
| 307 scoped_ptr<TestTabContents> contents_; | 308 scoped_ptr<TestTabContents> contents_; |
| 308 | 309 |
| 309 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); | 310 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); |
| 310 }; | 311 }; |
| 311 | 312 |
| 312 #endif // CHROME_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ | 313 #endif // CHROME_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ |
| OLD | NEW |