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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/gtest_prod_util.h" | 9 #include "base/gtest_prod_util.h" |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 #if defined(TOOLKIT_GTK) | 70 #if defined(TOOLKIT_GTK) |
71 virtual GdkEventButton* GetLastMouseDown() OVERRIDE; | 71 virtual GdkEventButton* GetLastMouseDown() OVERRIDE; |
72 virtual gfx::NativeView BuildInputMethodsGtkMenu() OVERRIDE; | 72 virtual gfx::NativeView BuildInputMethodsGtkMenu() OVERRIDE; |
73 #endif // defined(TOOLKIT_GTK) | 73 #endif // defined(TOOLKIT_GTK) |
74 | 74 |
75 // RenderWidgetHostViewPort implementation. | 75 // RenderWidgetHostViewPort implementation. |
76 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, | 76 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, |
77 const gfx::Rect& pos) OVERRIDE {} | 77 const gfx::Rect& pos) OVERRIDE {} |
78 virtual void InitAsFullscreen( | 78 virtual void InitAsFullscreen( |
79 RenderWidgetHostView* reference_host_view) OVERRIDE {} | 79 RenderWidgetHostView* reference_host_view) OVERRIDE {} |
80 virtual void WasRestored() OVERRIDE {} | 80 virtual void WasShown() OVERRIDE {} |
81 virtual void WasHidden() OVERRIDE {} | 81 virtual void WasHidden() OVERRIDE {} |
82 virtual void MovePluginWindows( | 82 virtual void MovePluginWindows( |
83 const std::vector<webkit::npapi::WebPluginGeometry>& moves) OVERRIDE {} | 83 const std::vector<webkit::npapi::WebPluginGeometry>& moves) OVERRIDE {} |
84 virtual void Focus() OVERRIDE {} | 84 virtual void Focus() OVERRIDE {} |
85 virtual void Blur() OVERRIDE {} | 85 virtual void Blur() OVERRIDE {} |
86 virtual void SetIsLoading(bool is_loading) OVERRIDE {} | 86 virtual void SetIsLoading(bool is_loading) OVERRIDE {} |
87 virtual void UpdateCursor(const WebCursor& cursor) OVERRIDE {} | 87 virtual void UpdateCursor(const WebCursor& cursor) OVERRIDE {} |
88 virtual void TextInputStateChanged(ui::TextInputType state, | 88 virtual void TextInputStateChanged(ui::TextInputType state, |
89 bool can_compose_inline) OVERRIDE {} | 89 bool can_compose_inline) OVERRIDE {} |
90 virtual void ImeCancelComposition() OVERRIDE {} | 90 virtual void ImeCancelComposition() OVERRIDE {} |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 // RenderViewHostTester implementation. Note that CreateRenderView | 227 // RenderViewHostTester implementation. Note that CreateRenderView |
228 // is not specified since it is synonymous with the one from | 228 // is not specified since it is synonymous with the one from |
229 // RenderViewHostImpl, see below. | 229 // RenderViewHostImpl, see below. |
230 virtual void SendNavigate(int page_id, const GURL& url) OVERRIDE; | 230 virtual void SendNavigate(int page_id, const GURL& url) OVERRIDE; |
231 virtual void SendNavigateWithTransition(int page_id, const GURL& url, | 231 virtual void SendNavigateWithTransition(int page_id, const GURL& url, |
232 PageTransition transition) OVERRIDE; | 232 PageTransition transition) OVERRIDE; |
233 virtual void SendShouldCloseACK(bool proceed) OVERRIDE; | 233 virtual void SendShouldCloseACK(bool proceed) OVERRIDE; |
234 virtual void SetContentsMimeType(const std::string& mime_type) OVERRIDE; | 234 virtual void SetContentsMimeType(const std::string& mime_type) OVERRIDE; |
235 virtual void SimulateSwapOutACK() OVERRIDE; | 235 virtual void SimulateSwapOutACK() OVERRIDE; |
236 virtual void SimulateWasHidden() OVERRIDE; | 236 virtual void SimulateWasHidden() OVERRIDE; |
237 virtual void SimulateWasRestored() OVERRIDE; | 237 virtual void SimulateWasShown() OVERRIDE; |
238 | 238 |
239 void TestOnMsgStartDragging(const WebDropData& drop_data); | 239 void TestOnMsgStartDragging(const WebDropData& drop_data); |
240 | 240 |
241 // If set, *delete_counter is incremented when this object destructs. | 241 // If set, *delete_counter is incremented when this object destructs. |
242 void set_delete_counter(int* delete_counter) { | 242 void set_delete_counter(int* delete_counter) { |
243 delete_counter_ = delete_counter; | 243 delete_counter_ = delete_counter; |
244 } | 244 } |
245 | 245 |
246 // Sets whether the RenderView currently exists or not. This controls the | 246 // Sets whether the RenderView currently exists or not. This controls the |
247 // return value from IsRenderViewLive, which the rest of the system uses to | 247 // return value from IsRenderViewLive, which the rest of the system uses to |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 TestRenderViewHost* active_test_rvh(); | 317 TestRenderViewHost* active_test_rvh(); |
318 TestWebContents* contents(); | 318 TestWebContents* contents(); |
319 | 319 |
320 private: | 320 private: |
321 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); | 321 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); |
322 }; | 322 }; |
323 | 323 |
324 } // namespace content | 324 } // namespace content |
325 | 325 |
326 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ | 326 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ |
OLD | NEW |