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