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

Side by Side Diff: content/public/browser/render_view_host.h

Issue 267563003: Allow browser process to request selection of word around caret (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup Created 6 years, 7 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_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ 6 #define CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_
7 7
8 #include <list> 8 #include <list>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 typedef std::list<scoped_refptr<media::AudioOutputController> > 199 typedef std::list<scoped_refptr<media::AudioOutputController> >
200 AudioOutputControllerList; 200 AudioOutputControllerList;
201 typedef base::Callback<void(const AudioOutputControllerList&)> 201 typedef base::Callback<void(const AudioOutputControllerList&)>
202 GetAudioOutputControllersCallback; 202 GetAudioOutputControllersCallback;
203 virtual void GetAudioOutputControllers( 203 virtual void GetAudioOutputControllers(
204 const GetAudioOutputControllersCallback& callback) const = 0; 204 const GetAudioOutputControllersCallback& callback) const = 0;
205 205
206 // Sets the mojo handle for WebUI pages. 206 // Sets the mojo handle for WebUI pages.
207 virtual void SetWebUIHandle(mojo::ScopedMessagePipeHandle handle) = 0; 207 virtual void SetWebUIHandle(mojo::ScopedMessagePipeHandle handle) = 0;
208 208
209 // Notify the render view host to select the word around the caret.
210 virtual void SelectWordAroundCaret() = 0;
211
209 #if defined(OS_ANDROID) 212 #if defined(OS_ANDROID)
210 // Selects and zooms to the find result nearest to the point (x,y) 213 // Selects and zooms to the find result nearest to the point (x,y)
211 // defined in find-in-page coordinates. 214 // defined in find-in-page coordinates.
212 virtual void ActivateNearestFindResult(int request_id, float x, float y) = 0; 215 virtual void ActivateNearestFindResult(int request_id, float x, float y) = 0;
213 216
214 // Asks the renderer to send the rects of the current find matches. 217 // Asks the renderer to send the rects of the current find matches.
215 virtual void RequestFindMatchRects(int current_version) = 0; 218 virtual void RequestFindMatchRects(int current_version) = 0;
216 #endif 219 #endif
217 220
218 private: 221 private:
219 // This interface should only be implemented inside content. 222 // This interface should only be implemented inside content.
220 friend class RenderViewHostImpl; 223 friend class RenderViewHostImpl;
221 RenderViewHost() {} 224 RenderViewHost() {}
222 }; 225 };
223 226
224 } // namespace content 227 } // namespace content
225 228
226 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ 229 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_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