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

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

Issue 10855036: Adding selection text direction to SelectionBoundsChanged. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Synced Created 8 years, 4 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/common/view_messages.h ('k') | content/renderer/render_widget.cc » ('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"
11 #include "content/common/content_export.h" 11 #include "content/common/content_export.h"
12 #include "content/public/browser/render_widget_host_view.h" 12 #include "content/public/browser/render_widget_host_view.h"
13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h"
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h"
14 #include "ui/base/ime/text_input_type.h" 15 #include "ui/base/ime/text_input_type.h"
15 #include "ui/base/range/range.h" 16 #include "ui/base/range/range.h"
16 #include "ui/surface/transport_dib.h" 17 #include "ui/surface/transport_dib.h"
17 18
18 class WebCursor; 19 class WebCursor;
19 20
20 struct AccessibilityHostMsg_NotificationParams; 21 struct AccessibilityHostMsg_NotificationParams;
21 struct GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params; 22 struct GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params;
22 struct GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params; 23 struct GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params;
23 24
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 // the page has changed. 129 // the page has changed.
129 virtual void SetTooltipText(const string16& tooltip_text) = 0; 130 virtual void SetTooltipText(const string16& tooltip_text) = 0;
130 131
131 // Notifies the View that the renderer text selection has changed. 132 // Notifies the View that the renderer text selection has changed.
132 virtual void SelectionChanged(const string16& text, 133 virtual void SelectionChanged(const string16& text,
133 size_t offset, 134 size_t offset,
134 const ui::Range& range) = 0; 135 const ui::Range& range) = 0;
135 136
136 // Notifies the View that the renderer selection bounds has changed. 137 // Notifies the View that the renderer selection bounds has changed.
137 // |start_rect| and |end_rect| are the bounds end of the selection in the 138 // |start_rect| and |end_rect| are the bounds end of the selection in the
138 // coordinate system of the render view. 139 // coordinate system of the render view. |start_direction| and |end_direction|
140 // indicates the direction at which the selection was made on touch devices.
139 virtual void SelectionBoundsChanged(const gfx::Rect& start_rect, 141 virtual void SelectionBoundsChanged(const gfx::Rect& start_rect,
140 const gfx::Rect& end_rect) {} 142 WebKit::WebTextDirection start_direction,
143 const gfx::Rect& end_rect,
144 WebKit::WebTextDirection end_direction) {}
141 145
142 // Allocate a backing store for this view. 146 // Allocate a backing store for this view.
143 virtual BackingStore* AllocBackingStore(const gfx::Size& size) = 0; 147 virtual BackingStore* AllocBackingStore(const gfx::Size& size) = 0;
144 148
145 // Copies the contents of the compositing surface into the given 149 // Copies the contents of the compositing surface into the given
146 // (uninitialized) PlatformCanvas if any. 150 // (uninitialized) PlatformCanvas if any.
147 // The rectangle region specified with |src_subrect| is copied from the 151 // The rectangle region specified with |src_subrect| is copied from the
148 // contents, scaled to |dst_size|, and written to |output|. 152 // contents, scaled to |dst_size|, and written to |output|.
149 // |callback| is invoked with true on success, false otherwise. |output| can 153 // |callback| is invoked with true on success, false otherwise. |output| can
150 // be initialized even on failure. 154 // be initialized even on failure.
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 virtual BrowserAccessibilityManager* 268 virtual BrowserAccessibilityManager*
265 GetBrowserAccessibilityManager() const = 0; 269 GetBrowserAccessibilityManager() const = 0;
266 virtual void OnAccessibilityNotifications( 270 virtual void OnAccessibilityNotifications(
267 const std::vector<AccessibilityHostMsg_NotificationParams>& params) { 271 const std::vector<AccessibilityHostMsg_NotificationParams>& params) {
268 } 272 }
269 }; 273 };
270 274
271 } // namespace content 275 } // namespace content
272 276
273 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ 277 #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_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698