| 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 30 matching lines...) Expand all Loading... |
| 41 explicit TestRenderWidgetHostView(RenderWidgetHost* rwh); | 41 explicit TestRenderWidgetHostView(RenderWidgetHost* rwh); |
| 42 | 42 |
| 43 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, | 43 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, |
| 44 const gfx::Rect& pos) {} | 44 const gfx::Rect& pos) {} |
| 45 virtual RenderWidgetHost* GetRenderWidgetHost() const { return NULL; } | 45 virtual RenderWidgetHost* GetRenderWidgetHost() const { return NULL; } |
| 46 virtual void DidBecomeSelected() {} | 46 virtual void DidBecomeSelected() {} |
| 47 virtual void WasHidden() {} | 47 virtual void WasHidden() {} |
| 48 virtual void SetSize(const gfx::Size& size) {} | 48 virtual void SetSize(const gfx::Size& size) {} |
| 49 virtual gfx::NativeView GetNativeView() { return NULL; } | 49 virtual gfx::NativeView GetNativeView() { return NULL; } |
| 50 virtual void MovePluginWindows( | 50 virtual void MovePluginWindows( |
| 51 const std::vector<WebPluginGeometry>& plugin_window_moves) {} | 51 const std::vector<webkit_glue::WebPluginGeometry>& moves) {} |
| 52 #if defined(OS_WIN) | 52 #if defined(OS_WIN) |
| 53 virtual void ForwardMouseEventToRenderer(UINT message, | 53 virtual void ForwardMouseEventToRenderer(UINT message, |
| 54 WPARAM wparam, | 54 WPARAM wparam, |
| 55 LPARAM lparam) {} | 55 LPARAM lparam) {} |
| 56 #endif | 56 #endif |
| 57 virtual void Focus() {} | 57 virtual void Focus() {} |
| 58 virtual void Blur() {} | 58 virtual void Blur() {} |
| 59 virtual bool HasFocus() { return true; } | 59 virtual bool HasFocus() { return true; } |
| 60 virtual void AdvanceFocus(bool reverse) {} | 60 virtual void AdvanceFocus(bool reverse) {} |
| 61 virtual void Show() { is_showing_ = true; } | 61 virtual void Show() { is_showing_ = true; } |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 | 256 |
| 257 MockRenderProcessHostFactory rph_factory_; | 257 MockRenderProcessHostFactory rph_factory_; |
| 258 TestRenderViewHostFactory rvh_factory_; | 258 TestRenderViewHostFactory rvh_factory_; |
| 259 | 259 |
| 260 scoped_ptr<TestTabContents> contents_; | 260 scoped_ptr<TestTabContents> contents_; |
| 261 | 261 |
| 262 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); | 262 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); |
| 263 }; | 263 }; |
| 264 | 264 |
| 265 #endif // CHROME_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ | 265 #endif // CHROME_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ |
| OLD | NEW |