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

Side by Side Diff: content/browser/renderer_host/test_render_view_host.h

Issue 11269022: Add Vector2d classes that represent offsets, instead of using Point. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: RenderText fixup Created 8 years, 1 month 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 #endif // defined(TOOLKIT_GTK) 81 #endif // defined(TOOLKIT_GTK)
82 82
83 // RenderWidgetHostViewPort implementation. 83 // RenderWidgetHostViewPort implementation.
84 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, 84 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view,
85 const gfx::Rect& pos) OVERRIDE {} 85 const gfx::Rect& pos) OVERRIDE {}
86 virtual void InitAsFullscreen( 86 virtual void InitAsFullscreen(
87 RenderWidgetHostView* reference_host_view) OVERRIDE {} 87 RenderWidgetHostView* reference_host_view) OVERRIDE {}
88 virtual void WasShown() OVERRIDE {} 88 virtual void WasShown() OVERRIDE {}
89 virtual void WasHidden() OVERRIDE {} 89 virtual void WasHidden() OVERRIDE {}
90 virtual void MovePluginWindows( 90 virtual void MovePluginWindows(
91 const gfx::Point& scroll_offset, 91 const gfx::Vector2d& scroll_offset,
92 const std::vector<webkit::npapi::WebPluginGeometry>& moves) OVERRIDE {} 92 const std::vector<webkit::npapi::WebPluginGeometry>& moves) OVERRIDE {}
93 virtual void Focus() OVERRIDE {} 93 virtual void Focus() OVERRIDE {}
94 virtual void Blur() OVERRIDE {} 94 virtual void Blur() OVERRIDE {}
95 virtual void SetIsLoading(bool is_loading) OVERRIDE {} 95 virtual void SetIsLoading(bool is_loading) OVERRIDE {}
96 virtual void UpdateCursor(const WebCursor& cursor) OVERRIDE {} 96 virtual void UpdateCursor(const WebCursor& cursor) OVERRIDE {}
97 virtual void TextInputStateChanged( 97 virtual void TextInputStateChanged(
98 const ViewHostMsg_TextInputState_Params& params) OVERRIDE {} 98 const ViewHostMsg_TextInputState_Params& params) OVERRIDE {}
99 virtual void ImeCancelComposition() OVERRIDE {} 99 virtual void ImeCancelComposition() OVERRIDE {}
100 virtual void DidUpdateBackingStore( 100 virtual void DidUpdateBackingStore(
101 const gfx::Rect& scroll_rect, int scroll_dx, int scroll_dy, 101 const gfx::Rect& scroll_rect, int scroll_dx, int scroll_dy,
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 virtual void AcceleratedSurfaceSetTransportDIB( 138 virtual void AcceleratedSurfaceSetTransportDIB(
139 gfx::PluginWindowHandle window, 139 gfx::PluginWindowHandle window,
140 int32 width, 140 int32 width,
141 int32 height, 141 int32 height,
142 TransportDIB::Handle transport_dib) OVERRIDE; 142 TransportDIB::Handle transport_dib) OVERRIDE;
143 #elif defined(OS_ANDROID) 143 #elif defined(OS_ANDROID)
144 virtual void StartContentIntent(const GURL&) OVERRIDE; 144 virtual void StartContentIntent(const GURL&) OVERRIDE;
145 virtual void SetCachedBackgroundColor(SkColor color) OVERRIDE {} 145 virtual void SetCachedBackgroundColor(SkColor color) OVERRIDE {}
146 virtual void SetCachedPageScaleFactorLimits(float minimum_scale, 146 virtual void SetCachedPageScaleFactorLimits(float minimum_scale,
147 float maximum_scale) OVERRIDE {} 147 float maximum_scale) OVERRIDE {}
148 virtual void UpdateFrameInfo(const gfx::Point& scroll_offset, 148 virtual void UpdateFrameInfo(const gfx::Vector2d& scroll_offset,
149 float page_scale_factor, 149 float page_scale_factor,
150 const gfx::Size& content_size) OVERRIDE {} 150 const gfx::Size& content_size) OVERRIDE {}
151 virtual void HasTouchEventHandlers(bool need_touch_events) OVERRIDE {} 151 virtual void HasTouchEventHandlers(bool need_touch_events) OVERRIDE {}
152 #elif defined(OS_WIN) && !defined(USE_AURA) 152 #elif defined(OS_WIN) && !defined(USE_AURA)
153 virtual void WillWmDestroy() OVERRIDE; 153 virtual void WillWmDestroy() OVERRIDE;
154 #endif 154 #endif
155 #if defined(OS_POSIX) || defined(USE_AURA) 155 #if defined(OS_POSIX) || defined(USE_AURA)
156 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) OVERRIDE {} 156 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) OVERRIDE {}
157 virtual gfx::Rect GetBoundsInRootWindow() OVERRIDE; 157 virtual gfx::Rect GetBoundsInRootWindow() OVERRIDE;
158 #endif 158 #endif
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 TestRenderViewHost* active_test_rvh(); 342 TestRenderViewHost* active_test_rvh();
343 TestWebContents* contents(); 343 TestWebContents* contents();
344 344
345 private: 345 private:
346 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); 346 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness);
347 }; 347 };
348 348
349 } // namespace content 349 } // namespace content
350 350
351 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ 351 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698