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

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

Issue 12321005: Enable touch based selection and editing for webpages behind a flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch Created 7 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « content/content_browser.gypi ('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/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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 size_t offset, 147 size_t offset,
148 const ui::Range& range) = 0; 148 const ui::Range& range) = 0;
149 149
150 // Notifies the View that the renderer selection bounds has changed. 150 // Notifies the View that the renderer selection bounds has changed.
151 // |start_rect| and |end_rect| are the bounds end of the selection in the 151 // |start_rect| and |end_rect| are the bounds end of the selection in the
152 // coordinate system of the render view. |start_direction| and |end_direction| 152 // coordinate system of the render view. |start_direction| and |end_direction|
153 // indicates the direction at which the selection was made on touch devices. 153 // indicates the direction at which the selection was made on touch devices.
154 virtual void SelectionBoundsChanged( 154 virtual void SelectionBoundsChanged(
155 const ViewHostMsg_SelectionBounds_Params& params) = 0; 155 const ViewHostMsg_SelectionBounds_Params& params) = 0;
156 156
157 // Notifies the view that the renderer has just show or hidden handles for
158 // touch based selection/cursor.
159 virtual void TouchEditingHandlesVisibilityChanged(bool visible) {}
jam 2013/02/22 01:08:12 note that there are no other default implementatio
varunjain 2013/02/22 01:15:18 Done.
160
157 // Notifies the view that the scroll offset has changed. 161 // Notifies the view that the scroll offset has changed.
158 virtual void ScrollOffsetChanged() = 0; 162 virtual void ScrollOffsetChanged() = 0;
159 163
160 // Allocate a backing store for this view. 164 // Allocate a backing store for this view.
161 virtual BackingStore* AllocBackingStore(const gfx::Size& size) = 0; 165 virtual BackingStore* AllocBackingStore(const gfx::Size& size) = 0;
162 166
163 // Copies the contents of the compositing surface into the given 167 // Copies the contents of the compositing surface into the given
164 // (uninitialized) PlatformCanvas if any. 168 // (uninitialized) PlatformCanvas if any.
165 // The rectangle region specified with |src_subrect| is copied from the 169 // The rectangle region specified with |src_subrect| is copied from the
166 // contents, scaled to |dst_size|, and written to |output|. 170 // contents, scaled to |dst_size|, and written to |output|.
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 #endif 285 #endif
282 286
283 #if defined(OS_WIN) && !defined(USE_AURA) 287 #if defined(OS_WIN) && !defined(USE_AURA)
284 virtual void WillWmDestroy() = 0; 288 virtual void WillWmDestroy() = 0;
285 #endif 289 #endif
286 }; 290 };
287 291
288 } // namespace content 292 } // namespace content
289 293
290 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ 294 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_
OLDNEW
« no previous file with comments | « content/content_browser.gypi ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698