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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 virtual gfx::Rect GetViewBounds() const; | 74 virtual gfx::Rect GetViewBounds() const; |
75 virtual void SetIsLoading(bool is_loading) {} | 75 virtual void SetIsLoading(bool is_loading) {} |
76 virtual void UpdateCursor(const WebCursor& cursor) {} | 76 virtual void UpdateCursor(const WebCursor& cursor) {} |
77 virtual void UpdateCursorIfOverSelf() {} | 77 virtual void UpdateCursorIfOverSelf() {} |
78 virtual void ImeUpdateTextInputState(WebKit::WebTextInputType state, | 78 virtual void ImeUpdateTextInputState(WebKit::WebTextInputType state, |
79 const gfx::Rect& caret_rect) {} | 79 const gfx::Rect& caret_rect) {} |
80 virtual void ImeCancelComposition() {} | 80 virtual void ImeCancelComposition() {} |
81 virtual void DidUpdateBackingStore( | 81 virtual void DidUpdateBackingStore( |
82 const gfx::Rect& scroll_rect, int scroll_dx, int scroll_dy, | 82 const gfx::Rect& scroll_rect, int scroll_dx, int scroll_dy, |
83 const std::vector<gfx::Rect>& rects) {} | 83 const std::vector<gfx::Rect>& rects) {} |
84 virtual void RenderViewGone() { delete this; } | 84 virtual void RenderViewGone(base::TerminationStatus status, |
| 85 int error_code) { delete this; } |
85 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh) { } | 86 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh) { } |
86 virtual void Destroy() {} | 87 virtual void Destroy() {} |
87 virtual void PrepareToDestroy() {} | 88 virtual void PrepareToDestroy() {} |
88 virtual void SetTooltipText(const std::wstring& tooltip_text) {} | 89 virtual void SetTooltipText(const std::wstring& tooltip_text) {} |
89 virtual BackingStore* AllocBackingStore(const gfx::Size& size); | 90 virtual BackingStore* AllocBackingStore(const gfx::Size& size); |
90 virtual VideoLayer* AllocVideoLayer(const gfx::Size& size); | 91 virtual VideoLayer* AllocVideoLayer(const gfx::Size& size); |
91 #if defined(OS_MACOSX) | 92 #if defined(OS_MACOSX) |
92 virtual void ShowPopupWithItems(gfx::Rect bounds, | 93 virtual void ShowPopupWithItems(gfx::Rect bounds, |
93 int item_height, | 94 int item_height, |
94 double item_font_size, | 95 double item_font_size, |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 | 275 |
275 MockRenderProcessHostFactory rph_factory_; | 276 MockRenderProcessHostFactory rph_factory_; |
276 TestRenderViewHostFactory rvh_factory_; | 277 TestRenderViewHostFactory rvh_factory_; |
277 | 278 |
278 scoped_ptr<TestTabContents> contents_; | 279 scoped_ptr<TestTabContents> contents_; |
279 | 280 |
280 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); | 281 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); |
281 }; | 282 }; |
282 | 283 |
283 #endif // CHROME_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ | 284 #endif // CHROME_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ |
OLD | NEW |