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 "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 // If any state that affects the webkit preferences changed, this method must | 209 // If any state that affects the webkit preferences changed, this method must |
210 // be called. This triggers recomputing preferences. | 210 // be called. This triggers recomputing preferences. |
211 virtual void OnWebkitPreferencesChanged() = 0; | 211 virtual void OnWebkitPreferencesChanged() = 0; |
212 | 212 |
213 // Passes a list of Webkit preferences to the renderer. | 213 // Passes a list of Webkit preferences to the renderer. |
214 virtual void UpdateWebkitPreferences(const WebPreferences& prefs) = 0; | 214 virtual void UpdateWebkitPreferences(const WebPreferences& prefs) = 0; |
215 | 215 |
216 // Notify the render view host to select the word around the caret. | 216 // Notify the render view host to select the word around the caret. |
217 virtual void SelectWordAroundCaret() = 0; | 217 virtual void SelectWordAroundCaret() = 0; |
218 | 218 |
219 #if defined(OS_ANDROID) | |
220 // Selects and zooms to the find result nearest to the point (x,y) | |
221 // defined in find-in-page coordinates. | |
222 virtual void ActivateNearestFindResult(int request_id, float x, float y) = 0; | |
223 | |
224 // Asks the renderer to send the rects of the current find matches. | |
225 virtual void RequestFindMatchRects(int current_version) = 0; | |
226 #endif | |
227 | |
228 private: | 219 private: |
229 // This interface should only be implemented inside content. | 220 // This interface should only be implemented inside content. |
230 friend class RenderViewHostImpl; | 221 friend class RenderViewHostImpl; |
231 RenderViewHost() {} | 222 RenderViewHost() {} |
232 }; | 223 }; |
233 | 224 |
234 } // namespace content | 225 } // namespace content |
235 | 226 |
236 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ | 227 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ |
OLD | NEW |