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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 virtual gfx::Rect GetViewBounds() const; | 76 virtual gfx::Rect GetViewBounds() const; |
77 virtual void SetIsLoading(bool is_loading) {} | 77 virtual void SetIsLoading(bool is_loading) {} |
78 virtual void UpdateCursor(const WebCursor& cursor) {} | 78 virtual void UpdateCursor(const WebCursor& cursor) {} |
79 virtual void UpdateCursorIfOverSelf() {} | 79 virtual void UpdateCursorIfOverSelf() {} |
80 virtual void ImeUpdateTextInputState(WebKit::WebTextInputType state, | 80 virtual void ImeUpdateTextInputState(WebKit::WebTextInputType state, |
81 const gfx::Rect& caret_rect) {} | 81 const gfx::Rect& caret_rect) {} |
82 virtual void ImeCancelComposition() {} | 82 virtual void ImeCancelComposition() {} |
83 virtual void DidUpdateBackingStore( | 83 virtual void DidUpdateBackingStore( |
84 const gfx::Rect& scroll_rect, int scroll_dx, int scroll_dy, | 84 const gfx::Rect& scroll_rect, int scroll_dx, int scroll_dy, |
85 const std::vector<gfx::Rect>& rects) {} | 85 const std::vector<gfx::Rect>& rects) {} |
86 virtual void RenderViewGone() { delete this; } | 86 virtual void RenderViewGone(base::TerminationStatus status, |
| 87 int error_code) { delete this; } |
87 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh) { } | 88 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh) { } |
88 virtual void Destroy() {} | 89 virtual void Destroy() {} |
89 virtual void PrepareToDestroy() {} | 90 virtual void PrepareToDestroy() {} |
90 virtual void SetTooltipText(const std::wstring& tooltip_text) {} | 91 virtual void SetTooltipText(const std::wstring& tooltip_text) {} |
91 virtual BackingStore* AllocBackingStore(const gfx::Size& size); | 92 virtual BackingStore* AllocBackingStore(const gfx::Size& size); |
92 #if defined(OS_MACOSX) | 93 #if defined(OS_MACOSX) |
93 virtual void SetTakesFocusOnlyOnMouseDown(bool flag) {} | 94 virtual void SetTakesFocusOnlyOnMouseDown(bool flag) {} |
94 virtual void ShowPopupWithItems(gfx::Rect bounds, | 95 virtual void ShowPopupWithItems(gfx::Rect bounds, |
95 int item_height, | 96 int item_height, |
96 double item_font_size, | 97 double item_font_size, |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 | 290 |
290 MockRenderProcessHostFactory rph_factory_; | 291 MockRenderProcessHostFactory rph_factory_; |
291 TestRenderViewHostFactory rvh_factory_; | 292 TestRenderViewHostFactory rvh_factory_; |
292 | 293 |
293 scoped_ptr<TestTabContents> contents_; | 294 scoped_ptr<TestTabContents> contents_; |
294 | 295 |
295 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); | 296 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); |
296 }; | 297 }; |
297 | 298 |
298 #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 |