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

Side by Side Diff: content/port/browser/render_widget_host_view_port.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_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ 5 #ifndef CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_
6 #define CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ 6 #define CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/process_util.h" 9 #include "base/process_util.h"
10 #include "base/string16.h" 10 #include "base/string16.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 72
73 // Notifies the View that it has become visible. 73 // Notifies the View that it has become visible.
74 virtual void WasShown() = 0; 74 virtual void WasShown() = 0;
75 75
76 // Notifies the View that it has been hidden. 76 // Notifies the View that it has been hidden.
77 virtual void WasHidden() = 0; 77 virtual void WasHidden() = 0;
78 78
79 // Moves all plugin windows as described in the given list. 79 // Moves all plugin windows as described in the given list.
80 // |scroll_offset| is the scroll offset of the render view. 80 // |scroll_offset| is the scroll offset of the render view.
81 virtual void MovePluginWindows( 81 virtual void MovePluginWindows(
82 const gfx::Point& scroll_offset, 82 const gfx::Vector2d& scroll_offset,
83 const std::vector<webkit::npapi::WebPluginGeometry>& moves) = 0; 83 const std::vector<webkit::npapi::WebPluginGeometry>& moves) = 0;
84 84
85 // Take focus from the associated View component. 85 // Take focus from the associated View component.
86 virtual void Blur() = 0; 86 virtual void Blur() = 0;
87 87
88 // Sets the cursor to the one associated with the specified cursor_type 88 // Sets the cursor to the one associated with the specified cursor_type
89 virtual void UpdateCursor(const WebCursor& cursor) = 0; 89 virtual void UpdateCursor(const WebCursor& cursor) = 0;
90 90
91 // Indicates whether the page has finished loading. 91 // Indicates whether the page has finished loading.
92 virtual void SetIsLoading(bool is_loading) = 0; 92 virtual void SetIsLoading(bool is_loading) = 0;
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 virtual void AcceleratedSurfaceSetTransportDIB( 222 virtual void AcceleratedSurfaceSetTransportDIB(
223 gfx::PluginWindowHandle window, 223 gfx::PluginWindowHandle window,
224 int32 width, 224 int32 width,
225 int32 height, 225 int32 height,
226 TransportDIB::Handle transport_dib) = 0; 226 TransportDIB::Handle transport_dib) = 0;
227 #endif 227 #endif
228 228
229 #if defined(OS_ANDROID) 229 #if defined(OS_ANDROID)
230 virtual void SetCachedPageScaleFactorLimits(float minimum_scale, 230 virtual void SetCachedPageScaleFactorLimits(float minimum_scale,
231 float maximum_scale) = 0; 231 float maximum_scale) = 0;
232 virtual void UpdateFrameInfo(const gfx::Point& scroll_offset, 232 virtual void UpdateFrameInfo(const gfx::Vector2d& scroll_offset,
233 float page_scale_factor, 233 float page_scale_factor,
234 const gfx::Size& content_size) = 0; 234 const gfx::Size& content_size) = 0;
235 virtual void HasTouchEventHandlers(bool need_touch_events) = 0; 235 virtual void HasTouchEventHandlers(bool need_touch_events) = 0;
236 #endif 236 #endif
237 237
238 virtual void AcceleratedSurfaceNew( 238 virtual void AcceleratedSurfaceNew(
239 int32 width_in_pixel, 239 int32 width_in_pixel,
240 int32 height_in_pixel, 240 int32 height_in_pixel,
241 uint64 surface_id) {} 241 uint64 surface_id) {}
242 virtual void AcceleratedSurfaceRelease(uint64 surface_id) {} 242 virtual void AcceleratedSurfaceRelease(uint64 surface_id) {}
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 virtual BrowserAccessibilityManager* 286 virtual BrowserAccessibilityManager*
287 GetBrowserAccessibilityManager() const = 0; 287 GetBrowserAccessibilityManager() const = 0;
288 virtual void OnAccessibilityNotifications( 288 virtual void OnAccessibilityNotifications(
289 const std::vector<AccessibilityHostMsg_NotificationParams>& params) { 289 const std::vector<AccessibilityHostMsg_NotificationParams>& params) {
290 } 290 }
291 }; 291 };
292 292
293 } // namespace content 293 } // namespace content
294 294
295 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ 295 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698