OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ |
7 | 7 |
| 8 #include <string> |
| 9 #include <vector> |
| 10 |
8 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
9 #include "base/gtest_prod_util.h" | 12 #include "base/gtest_prod_util.h" |
10 #include "build/build_config.h" | 13 #include "build/build_config.h" |
11 #include "content/browser/renderer_host/render_view_host_impl.h" | 14 #include "content/browser/renderer_host/render_view_host_impl.h" |
12 #include "content/browser/renderer_host/render_widget_host_view_base.h" | 15 #include "content/browser/renderer_host/render_widget_host_view_base.h" |
13 #include "content/public/common/page_transition_types.h" | 16 #include "content/public/common/page_transition_types.h" |
14 #include "content/public/test/test_renderer_host.h" | 17 #include "content/public/test/test_renderer_host.h" |
15 | 18 |
16 // This file provides a testing framework for mocking out the RenderProcessHost | 19 // This file provides a testing framework for mocking out the RenderProcessHost |
17 // layer. It allows you to test RenderViewHost, WebContentsImpl, | 20 // layer. It allows you to test RenderViewHost, WebContentsImpl, |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 virtual bool IsSurfaceAvailableForCopy() const OVERRIDE; | 62 virtual bool IsSurfaceAvailableForCopy() const OVERRIDE; |
60 virtual void Show() OVERRIDE; | 63 virtual void Show() OVERRIDE; |
61 virtual void Hide() OVERRIDE; | 64 virtual void Hide() OVERRIDE; |
62 virtual bool IsShowing() OVERRIDE; | 65 virtual bool IsShowing() OVERRIDE; |
63 virtual gfx::Rect GetViewBounds() const OVERRIDE; | 66 virtual gfx::Rect GetViewBounds() const OVERRIDE; |
64 #if defined(OS_MACOSX) | 67 #if defined(OS_MACOSX) |
65 virtual void SetActive(bool active) OVERRIDE; | 68 virtual void SetActive(bool active) OVERRIDE; |
66 virtual void SetTakesFocusOnlyOnMouseDown(bool flag) OVERRIDE {} | 69 virtual void SetTakesFocusOnlyOnMouseDown(bool flag) OVERRIDE {} |
67 virtual void SetWindowVisibility(bool visible) OVERRIDE {} | 70 virtual void SetWindowVisibility(bool visible) OVERRIDE {} |
68 virtual void WindowFrameChanged() OVERRIDE {} | 71 virtual void WindowFrameChanged() OVERRIDE {} |
| 72 virtual bool SupportsSpeech() const OVERRIDE; |
| 73 virtual void SpeakSelection() OVERRIDE; |
| 74 virtual bool IsSpeaking() const OVERRIDE; |
| 75 virtual void StopSpeaking() OVERRIDE; |
69 #endif // defined(OS_MACOSX) | 76 #endif // defined(OS_MACOSX) |
70 #if defined(TOOLKIT_GTK) | 77 #if defined(TOOLKIT_GTK) |
71 virtual GdkEventButton* GetLastMouseDown() OVERRIDE; | 78 virtual GdkEventButton* GetLastMouseDown() OVERRIDE; |
72 virtual gfx::NativeView BuildInputMethodsGtkMenu() OVERRIDE; | 79 virtual gfx::NativeView BuildInputMethodsGtkMenu() OVERRIDE; |
73 #endif // defined(TOOLKIT_GTK) | 80 #endif // defined(TOOLKIT_GTK) |
74 | 81 |
75 // RenderWidgetHostViewPort implementation. | 82 // RenderWidgetHostViewPort implementation. |
76 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, | 83 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, |
77 const gfx::Rect& pos) OVERRIDE {} | 84 const gfx::Rect& pos) OVERRIDE {} |
78 virtual void InitAsFullscreen( | 85 virtual void InitAsFullscreen( |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 TestRenderViewHost* active_test_rvh(); | 324 TestRenderViewHost* active_test_rvh(); |
318 TestWebContents* contents(); | 325 TestWebContents* contents(); |
319 | 326 |
320 private: | 327 private: |
321 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); | 328 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); |
322 }; | 329 }; |
323 | 330 |
324 } // namespace content | 331 } // namespace content |
325 | 332 |
326 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ | 333 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ |
OLD | NEW |