| 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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 // Retrieves the list of AudioOutputController objects associated | 203 // Retrieves the list of AudioOutputController objects associated |
| 204 // with this object and passes it to the callback you specify, on | 204 // with this object and passes it to the callback you specify, on |
| 205 // the same thread on which you called the method. | 205 // the same thread on which you called the method. |
| 206 typedef std::list<scoped_refptr<media::AudioOutputController> > | 206 typedef std::list<scoped_refptr<media::AudioOutputController> > |
| 207 AudioOutputControllerList; | 207 AudioOutputControllerList; |
| 208 typedef base::Callback<void(const AudioOutputControllerList&)> | 208 typedef base::Callback<void(const AudioOutputControllerList&)> |
| 209 GetAudioOutputControllersCallback; | 209 GetAudioOutputControllersCallback; |
| 210 virtual void GetAudioOutputControllers( | 210 virtual void GetAudioOutputControllers( |
| 211 const GetAudioOutputControllersCallback& callback) const = 0; | 211 const GetAudioOutputControllersCallback& callback) const = 0; |
| 212 | 212 |
| 213 // Sets the mojo handle for WebUI pages. | |
| 214 virtual void SetWebUIHandle(mojo::ScopedMessagePipeHandle handle) = 0; | |
| 215 | |
| 216 // Notify the render view host to select the word around the caret. | 213 // Notify the render view host to select the word around the caret. |
| 217 virtual void SelectWordAroundCaret() = 0; | 214 virtual void SelectWordAroundCaret() = 0; |
| 218 | 215 |
| 219 #if defined(OS_ANDROID) | 216 #if defined(OS_ANDROID) |
| 220 // Selects and zooms to the find result nearest to the point (x,y) | 217 // Selects and zooms to the find result nearest to the point (x,y) |
| 221 // defined in find-in-page coordinates. | 218 // defined in find-in-page coordinates. |
| 222 virtual void ActivateNearestFindResult(int request_id, float x, float y) = 0; | 219 virtual void ActivateNearestFindResult(int request_id, float x, float y) = 0; |
| 223 | 220 |
| 224 // Asks the renderer to send the rects of the current find matches. | 221 // Asks the renderer to send the rects of the current find matches. |
| 225 virtual void RequestFindMatchRects(int current_version) = 0; | 222 virtual void RequestFindMatchRects(int current_version) = 0; |
| 226 #endif | 223 #endif |
| 227 | 224 |
| 228 private: | 225 private: |
| 229 // This interface should only be implemented inside content. | 226 // This interface should only be implemented inside content. |
| 230 friend class RenderViewHostImpl; | 227 friend class RenderViewHostImpl; |
| 231 RenderViewHost() {} | 228 RenderViewHost() {} |
| 232 }; | 229 }; |
| 233 | 230 |
| 234 } // namespace content | 231 } // namespace content |
| 235 | 232 |
| 236 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ | 233 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ |
| OLD | NEW |