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

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
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 // Notifies the View that the renderer selection root bounds has changed.
167 virtual void SelectionRootBoundsChanged(const gfx::Rect& bounds) = 0;
168
166 // Notifies the view that the scroll offset has changed. 169 // Notifies the view that the scroll offset has changed.
167 virtual void ScrollOffsetChanged() = 0; 170 virtual void ScrollOffsetChanged() = 0;
168 171
169 // Allocate a backing store for this view. 172 // Allocate a backing store for this view.
170 virtual BackingStore* AllocBackingStore(const gfx::Size& size) = 0; 173 virtual BackingStore* AllocBackingStore(const gfx::Size& size) = 0;
171 174
172 // Copies the contents of the compositing surface into the given 175 // Copies the contents of the compositing surface into the given
173 // (uninitialized) PlatformCanvas if any. 176 // (uninitialized) PlatformCanvas if any.
174 // The rectangle region specified with |src_subrect| is copied from the 177 // The rectangle region specified with |src_subrect| is copied from the
175 // contents, scaled to |dst_size|, and written to |output|. 178 // contents, scaled to |dst_size|, and written to |output|.
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 349
347 // Returns an HWND that's given as the parent window for windowless Flash to 350 // Returns an HWND that's given as the parent window for windowless Flash to
348 // workaround crbug.com/301548. 351 // workaround crbug.com/301548.
349 virtual gfx::NativeViewId GetParentForWindowlessPlugin() const = 0; 352 virtual gfx::NativeViewId GetParentForWindowlessPlugin() const = 0;
350 #endif 353 #endif
351 }; 354 };
352 355
353 } // namespace content 356 } // namespace content
354 357
355 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ 358 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698