OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |