| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 | 97 // Roundtrips through the renderer and compositor pipeline to ensure that any |
| 98 // changes to the contents resulting from operations executed prior to this | 98 // changes to the contents resulting from operations executed prior to this |
| 99 // call are visible on screen. The call completes asynchronously by running | 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 | 100 // the supplied |callback|. |
| 101 // false otherwise (when the frame is destroyed, detached, etc..). | |
| 102 typedef base::Callback<void(bool)> VisualStateCallback; | 101 typedef base::Callback<void(bool)> VisualStateCallback; |
| 103 virtual void InsertVisualStateCallback( | 102 virtual void InsertVisualStateCallback( |
| 104 const VisualStateCallback& callback) = 0; | 103 const VisualStateCallback& callback) = 0; |
| 105 | 104 |
| 106 // Temporary until we get rid of RenderViewHost. | 105 // Temporary until we get rid of RenderViewHost. |
| 107 virtual RenderViewHost* GetRenderViewHost() = 0; | 106 virtual RenderViewHost* GetRenderViewHost() = 0; |
| 108 | 107 |
| 109 // Returns the ServiceRegistry for this frame. | 108 // Returns the ServiceRegistry for this frame. |
| 110 virtual ServiceRegistry* GetServiceRegistry() = 0; | 109 virtual ServiceRegistry* GetServiceRegistry() = 0; |
| 111 | 110 |
| 112 // Returns the visibility state of the frame. The different visibility states | 111 // Returns the visibility state of the frame. The different visibility states |
| 113 // of a frame are defined in Blink. | 112 // of a frame are defined in Blink. |
| 114 virtual blink::WebPageVisibilityState GetVisibilityState() = 0; | 113 virtual blink::WebPageVisibilityState GetVisibilityState() = 0; |
| 115 | 114 |
| 116 private: | 115 private: |
| 117 // This interface should only be implemented inside content. | 116 // This interface should only be implemented inside content. |
| 118 friend class RenderFrameHostImpl; | 117 friend class RenderFrameHostImpl; |
| 119 RenderFrameHost() {} | 118 RenderFrameHost() {} |
| 120 }; | 119 }; |
| 121 | 120 |
| 122 } // namespace content | 121 } // namespace content |
| 123 | 122 |
| 124 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ | 123 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ |
| OLD | NEW |