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

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

Issue 506013: 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 DidPaintRect(const gfx::Rect& rect) {} 67 virtual void DidPaintBackingStoreRects(
68 virtual void DidScrollRect(const gfx::Rect& rect, int dx, int dy) {} 68 const std::vector<gfx::Rect>& rects) {}
69 virtual void DidScrollBackingStoreRect(
70 const gfx::Rect& rect, int dx, int dy) {}
69 virtual void RenderViewGone() { delete this; } 71 virtual void RenderViewGone() { delete this; }
70 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh) { } 72 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh) { }
71 virtual void Destroy() {} 73 virtual void Destroy() {}
72 virtual void PrepareToDestroy() {} 74 virtual void PrepareToDestroy() {}
73 virtual void SetTooltipText(const std::wstring& tooltip_text) {} 75 virtual void SetTooltipText(const std::wstring& tooltip_text) {}
74 virtual BackingStore* AllocBackingStore(const gfx::Size& size); 76 virtual BackingStore* AllocBackingStore(const gfx::Size& size);
75 #if defined(OS_MACOSX) 77 #if defined(OS_MACOSX)
76 virtual void ShowPopupWithItems(gfx::Rect bounds, 78 virtual void ShowPopupWithItems(gfx::Rect bounds,
77 int item_height, 79 int item_height,
78 int selected_item, 80 int selected_item,
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 TestRenderViewHostFactory rvh_factory_; 257 TestRenderViewHostFactory rvh_factory_;
256 258
257 scoped_ptr<TestTabContents> contents_; 259 scoped_ptr<TestTabContents> contents_;
258 260
259 scoped_ptr<UserDataManager> user_data_manager_; 261 scoped_ptr<UserDataManager> user_data_manager_;
260 262
261 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); 263 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness);
262 }; 264 };
263 265
264 #endif // CHROME_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ 266 #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