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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 virtual void AccessibilitySetTextSelection( | 87 virtual void AccessibilitySetTextSelection( |
88 int acc_obj_id, int start_offset, int end_offset) = 0; | 88 int acc_obj_id, int start_offset, int end_offset) = 0; |
89 | 89 |
90 // This is called when the user has committed to the given find in page | 90 // This is called when the user has committed to the given find in page |
91 // request (e.g. by pressing enter or by clicking on the next / previous | 91 // request (e.g. by pressing enter or by clicking on the next / previous |
92 // result buttons). It triggers sending a native accessibility event on | 92 // result buttons). It triggers sending a native accessibility event on |
93 // the result object on the page, navigating assistive technology to that | 93 // the result object on the page, navigating assistive technology to that |
94 // result. | 94 // result. |
95 virtual void ActivateFindInPageResultForAccessibility(int request_id) = 0; | 95 virtual void ActivateFindInPageResultForAccessibility(int request_id) = 0; |
96 | 96 |
| 97 // Roundtrips through the renderer and compositor pipeline to ensure that any |
| 98 // changes to the contents resulting from operations executed prior to this |
| 99 // call are visible on screen. The call completes asynchronously by running |
| 100 // the supplied |callback| with a value of true upon successful completion and |
| 101 // false otherwise (when the frame is destroyed, detached, etc..). |
| 102 typedef base::Callback<void(bool)> FlushVisualStateResultCallback; |
| 103 virtual void FlushVisualState( |
| 104 const FlushVisualStateResultCallback& callback) = 0; |
| 105 |
97 // Temporary until we get rid of RenderViewHost. | 106 // Temporary until we get rid of RenderViewHost. |
98 virtual RenderViewHost* GetRenderViewHost() = 0; | 107 virtual RenderViewHost* GetRenderViewHost() = 0; |
99 | 108 |
100 // Returns the ServiceRegistry for this frame. | 109 // Returns the ServiceRegistry for this frame. |
101 virtual ServiceRegistry* GetServiceRegistry() = 0; | 110 virtual ServiceRegistry* GetServiceRegistry() = 0; |
102 | 111 |
103 // Returns the visibility state of the frame. The different visibility states | 112 // Returns the visibility state of the frame. The different visibility states |
104 // of a frame are defined in Blink. | 113 // of a frame are defined in Blink. |
105 virtual blink::WebPageVisibilityState GetVisibilityState() = 0; | 114 virtual blink::WebPageVisibilityState GetVisibilityState() = 0; |
106 | 115 |
107 private: | 116 private: |
108 // This interface should only be implemented inside content. | 117 // This interface should only be implemented inside content. |
109 friend class RenderFrameHostImpl; | 118 friend class RenderFrameHostImpl; |
110 RenderFrameHost() {} | 119 RenderFrameHost() {} |
111 }; | 120 }; |
112 | 121 |
113 } // namespace content | 122 } // namespace content |
114 | 123 |
115 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ | 124 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ |
OLD | NEW |