Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(417)

Side by Side Diff: chrome/browser/renderer_host/test/test_render_view_host.h

Issue 506075: Revert 34951 - Combine ViewHostMsg_{Paint,Scroll}Rect into one IPC.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 virtual void Blur() {} 57 virtual void Blur() {}
58 virtual bool HasFocus() { return true; } 58 virtual bool HasFocus() { return true; }
59 virtual void AdvanceFocus(bool reverse) {} 59 virtual void AdvanceFocus(bool reverse) {}
60 virtual void Show() { is_showing_ = true; } 60 virtual void Show() { is_showing_ = true; }
61 virtual void Hide() { is_showing_ = false; } 61 virtual void Hide() { is_showing_ = false; }
62 virtual gfx::Rect GetViewBounds() const { return gfx::Rect(); } 62 virtual gfx::Rect GetViewBounds() const { return gfx::Rect(); }
63 virtual void SetIsLoading(bool is_loading) {} 63 virtual void SetIsLoading(bool is_loading) {}
64 virtual void UpdateCursor(const WebCursor& cursor) {} 64 virtual void UpdateCursor(const WebCursor& cursor) {}
65 virtual void UpdateCursorIfOverSelf() {} 65 virtual void UpdateCursorIfOverSelf() {}
66 virtual void IMEUpdateStatus(int control, const gfx::Rect& caret_rect) {} 66 virtual void IMEUpdateStatus(int control, const gfx::Rect& caret_rect) {}
67 virtual void DidPaintBackingStoreRects( 67 virtual void DidPaintRect(const gfx::Rect& rect) {}
68 const std::vector<gfx::Rect>& rects) {} 68 virtual void DidScrollRect(const gfx::Rect& rect, int dx, int dy) {}
69 virtual void DidScrollBackingStoreRect(
70 const gfx::Rect& rect, int dx, int dy) {}
71 virtual void RenderViewGone() { delete this; } 69 virtual void RenderViewGone() { delete this; }
72 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh) { } 70 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh) { }
73 virtual void Destroy() {} 71 virtual void Destroy() {}
74 virtual void PrepareToDestroy() {} 72 virtual void PrepareToDestroy() {}
75 virtual void SetTooltipText(const std::wstring& tooltip_text) {} 73 virtual void SetTooltipText(const std::wstring& tooltip_text) {}
76 virtual BackingStore* AllocBackingStore(const gfx::Size& size); 74 virtual BackingStore* AllocBackingStore(const gfx::Size& size);
77 #if defined(OS_MACOSX) 75 #if defined(OS_MACOSX)
78 virtual void ShowPopupWithItems(gfx::Rect bounds, 76 virtual void ShowPopupWithItems(gfx::Rect bounds,
79 int item_height, 77 int item_height,
80 int selected_item, 78 int selected_item,
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 TestRenderViewHostFactory rvh_factory_; 255 TestRenderViewHostFactory rvh_factory_;
258 256
259 scoped_ptr<TestTabContents> contents_; 257 scoped_ptr<TestTabContents> contents_;
260 258
261 scoped_ptr<UserDataManager> user_data_manager_; 259 scoped_ptr<UserDataManager> user_data_manager_;
262 260
263 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); 261 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness);
264 }; 262 };
265 263
266 #endif // CHROME_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ 264 #endif // CHROME_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/resource_message_filter.cc ('k') | chrome/common/render_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698