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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |