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

Side by Side Diff: content/port/browser/render_widget_host_view_port.h

Issue 186753002: Chromium plumbing to use the selection root bounds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 9 months 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
« no previous file with comments | « content/common/view_messages.h ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 size_t offset, 156 size_t offset,
157 const gfx::Range& range) = 0; 157 const gfx::Range& range) = 0;
158 158
159 // Notifies the View that the renderer selection bounds has changed. 159 // Notifies the View that the renderer selection bounds has changed.
160 // |start_rect| and |end_rect| are the bounds end of the selection in the 160 // |start_rect| and |end_rect| are the bounds end of the selection in the
161 // coordinate system of the render view. |start_direction| and |end_direction| 161 // coordinate system of the render view. |start_direction| and |end_direction|
162 // indicates the direction at which the selection was made on touch devices. 162 // indicates the direction at which the selection was made on touch devices.
163 virtual void SelectionBoundsChanged( 163 virtual void SelectionBoundsChanged(
164 const ViewHostMsg_SelectionBounds_Params& params) = 0; 164 const ViewHostMsg_SelectionBounds_Params& params) = 0;
165 165
166 #if defined(OS_ANDROID)
167 // Notifies the View that the renderer selection root bounds has changed.
168 virtual void SelectionRootBoundsChanged(const gfx::Rect& bounds) = 0;
169 #endif
170
166 // Notifies the view that the scroll offset has changed. 171 // Notifies the view that the scroll offset has changed.
167 virtual void ScrollOffsetChanged() = 0; 172 virtual void ScrollOffsetChanged() = 0;
168 173
169 // Allocate a backing store for this view. 174 // Allocate a backing store for this view.
170 virtual BackingStore* AllocBackingStore(const gfx::Size& size) = 0; 175 virtual BackingStore* AllocBackingStore(const gfx::Size& size) = 0;
171 176
172 // Copies the contents of the compositing surface into the given 177 // Copies the contents of the compositing surface into the given
173 // (uninitialized) PlatformCanvas if any. 178 // (uninitialized) PlatformCanvas if any.
174 // The rectangle region specified with |src_subrect| is copied from the 179 // The rectangle region specified with |src_subrect| is copied from the
175 // contents, scaled to |dst_size|, and written to |output|. 180 // contents, scaled to |dst_size|, and written to |output|.
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 353
349 // Returns an HWND that's given as the parent window for windowless Flash to 354 // Returns an HWND that's given as the parent window for windowless Flash to
350 // workaround crbug.com/301548. 355 // workaround crbug.com/301548.
351 virtual gfx::NativeViewId GetParentForWindowlessPlugin() const = 0; 356 virtual gfx::NativeViewId GetParentForWindowlessPlugin() const = 0;
352 #endif 357 #endif
353 }; 358 };
354 359
355 } // namespace content 360 } // namespace content
356 361
357 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ 362 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_
OLDNEW
« no previous file with comments | « content/common/view_messages.h ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698