Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_FRAME_HOST_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ | 6 #define CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 155 virtual void AccessibilitySetSelection(int anchor_object_id, | 155 virtual void AccessibilitySetSelection(int anchor_object_id, |
| 156 int anchor_offset, | 156 int anchor_offset, |
| 157 int focus_object_id, | 157 int focus_object_id, |
| 158 int focus_offset) = 0; | 158 int focus_offset) = 0; |
| 159 | 159 |
| 160 // This is called when the user has committed to the given find in page | 160 // This is called when the user has committed to the given find in page |
| 161 // request (e.g. by pressing enter or by clicking on the next / previous | 161 // request (e.g. by pressing enter or by clicking on the next / previous |
| 162 // result buttons). It triggers sending a native accessibility event on | 162 // result buttons). It triggers sending a native accessibility event on |
| 163 // the result object on the page, navigating assistive technology to that | 163 // the result object on the page, navigating assistive technology to that |
| 164 // result. | 164 // result. |
| 165 virtual void ActivateFindInPageResultForAccessibility(int request_id) = 0; | 165 virtual void ActivateFindInPageResultForAccessibility(int request_id) = 0; |
|
ncarter (slow)
2016/04/06 19:08:03
Is this method on your road map? Should it move to
paulmeyer
2016/04/07 17:36:15
As far as I know, no. ActivateNearestFindResult()
ncarter (slow)
2016/04/07 18:19:14
Acknowledged.
| |
| 166 | 166 |
| 167 // Roundtrips through the renderer and compositor pipeline to ensure that any | 167 // Roundtrips through the renderer and compositor pipeline to ensure that any |
| 168 // changes to the contents resulting from operations executed prior to this | 168 // changes to the contents resulting from operations executed prior to this |
| 169 // call are visible on screen. The call completes asynchronously by running | 169 // call are visible on screen. The call completes asynchronously by running |
| 170 // the supplied |callback| with a value of true upon successful completion and | 170 // the supplied |callback| with a value of true upon successful completion and |
| 171 // false otherwise (when the frame is destroyed, detached, etc..). | 171 // false otherwise (when the frame is destroyed, detached, etc..). |
| 172 typedef base::Callback<void(bool)> VisualStateCallback; | 172 typedef base::Callback<void(bool)> VisualStateCallback; |
| 173 virtual void InsertVisualStateCallback( | 173 virtual void InsertVisualStateCallback( |
| 174 const VisualStateCallback& callback) = 0; | 174 const VisualStateCallback& callback) = 0; |
| 175 | 175 |
| 176 // Temporary until we get rid of RenderViewHost. | 176 // Temporary until we get rid of RenderViewHost. |
| 177 virtual RenderViewHost* GetRenderViewHost() = 0; | 177 virtual RenderViewHost* GetRenderViewHost() = 0; |
| 178 | 178 |
| 179 // Returns the ServiceRegistry for this frame. | 179 // Returns the ServiceRegistry for this frame. |
| 180 virtual ServiceRegistry* GetServiceRegistry() = 0; | 180 virtual ServiceRegistry* GetServiceRegistry() = 0; |
| 181 | 181 |
| 182 // Returns the visibility state of the frame. The different visibility states | 182 // Returns the visibility state of the frame. The different visibility states |
| 183 // of a frame are defined in Blink. | 183 // of a frame are defined in Blink. |
| 184 virtual blink::WebPageVisibilityState GetVisibilityState() = 0; | 184 virtual blink::WebPageVisibilityState GetVisibilityState() = 0; |
| 185 | 185 |
| 186 // Returns whether the RenderFrame in the renderer process has been created | 186 // Returns whether the RenderFrame in the renderer process has been created |
| 187 // and still has a connection. This is valid for all frames. | 187 // and still has a connection. This is valid for all frames. |
| 188 virtual bool IsRenderFrameLive() = 0; | 188 virtual bool IsRenderFrameLive() = 0; |
| 189 | 189 |
| 190 // Get the number of proxies to this frame, in all processes. Exposed for | 190 // Get the number of proxies to this frame, in all processes. Exposed for |
| 191 // use by resource metrics. | 191 // use by resource metrics. |
| 192 virtual int GetProxyCount() = 0; | 192 virtual int GetProxyCount() = 0; |
| 193 | 193 |
| 194 #if defined(OS_ANDROID) | |
| 195 // Selects and zooms to the find result nearest to the point (x,y) | |
| 196 // defined in find-in-page coordinates. | |
| 197 virtual void ActivateNearestFindResult(int request_id, float x, float y) = 0; | |
| 198 | |
| 199 // Asks the renderer process to send the rects of the current find matches. | |
| 200 virtual void RequestFindMatchRects(int current_version) = 0; | |
| 201 #endif | |
| 202 | |
| 203 private: | 194 private: |
| 204 // This interface should only be implemented inside content. | 195 // This interface should only be implemented inside content. |
| 205 friend class RenderFrameHostImpl; | 196 friend class RenderFrameHostImpl; |
| 206 RenderFrameHost() {} | 197 RenderFrameHost() {} |
| 207 }; | 198 }; |
| 208 | 199 |
| 209 } // namespace content | 200 } // namespace content |
| 210 | 201 |
| 211 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ | 202 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ |
| OLD | NEW |