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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 virtual ServiceRegistry* GetServiceRegistry() = 0; | 181 virtual ServiceRegistry* GetServiceRegistry() = 0; |
182 | 182 |
183 // Returns the visibility state of the frame. The different visibility states | 183 // Returns the visibility state of the frame. The different visibility states |
184 // of a frame are defined in Blink. | 184 // of a frame are defined in Blink. |
185 virtual blink::WebPageVisibilityState GetVisibilityState() = 0; | 185 virtual blink::WebPageVisibilityState GetVisibilityState() = 0; |
186 | 186 |
187 // Returns whether the RenderFrame in the renderer process has been created | 187 // Returns whether the RenderFrame in the renderer process has been created |
188 // and still has a connection. This is valid for all frames. | 188 // and still has a connection. This is valid for all frames. |
189 virtual bool IsRenderFrameLive() = 0; | 189 virtual bool IsRenderFrameLive() = 0; |
190 | 190 |
| 191 #if defined(OS_ANDROID) |
| 192 // Selects and zooms to the find result nearest to the point (x,y) |
| 193 // defined in find-in-page coordinates. |
| 194 virtual void ActivateNearestFindResult(int request_id, float x, float y) = 0; |
| 195 |
| 196 // Asks the renderer process to send the rects of the current find matches. |
| 197 virtual void RequestFindMatchRects(int current_version) = 0; |
| 198 #endif |
| 199 |
191 private: | 200 private: |
192 // This interface should only be implemented inside content. | 201 // This interface should only be implemented inside content. |
193 friend class RenderFrameHostImpl; | 202 friend class RenderFrameHostImpl; |
194 RenderFrameHost() {} | 203 RenderFrameHost() {} |
195 }; | 204 }; |
196 | 205 |
197 } // namespace content | 206 } // namespace content |
198 | 207 |
199 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ | 208 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ |
OLD | NEW |