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" |
11 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
12 #include "ipc/ipc_listener.h" | 12 #include "ipc/ipc_listener.h" |
13 #include "ipc/ipc_sender.h" | 13 #include "ipc/ipc_sender.h" |
| 14 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" |
14 #include "ui/gfx/geometry/rect.h" | 15 #include "ui/gfx/geometry/rect.h" |
15 #include "ui/gfx/native_widget_types.h" | 16 #include "ui/gfx/native_widget_types.h" |
16 #include "url/gurl.h" | 17 #include "url/gurl.h" |
17 | 18 |
18 namespace base { | 19 namespace base { |
19 class Value; | 20 class Value; |
20 } | 21 } |
21 | 22 |
22 namespace content { | 23 namespace content { |
23 class RenderProcessHost; | 24 class RenderProcessHost; |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 // the result object on the page, navigating assistive technology to that | 93 // the result object on the page, navigating assistive technology to that |
93 // result. | 94 // result. |
94 virtual void ActivateFindInPageResultForAccessibility(int request_id) = 0; | 95 virtual void ActivateFindInPageResultForAccessibility(int request_id) = 0; |
95 | 96 |
96 // Temporary until we get rid of RenderViewHost. | 97 // Temporary until we get rid of RenderViewHost. |
97 virtual RenderViewHost* GetRenderViewHost() = 0; | 98 virtual RenderViewHost* GetRenderViewHost() = 0; |
98 | 99 |
99 // Returns the ServiceRegistry for this frame. | 100 // Returns the ServiceRegistry for this frame. |
100 virtual ServiceRegistry* GetServiceRegistry() = 0; | 101 virtual ServiceRegistry* GetServiceRegistry() = 0; |
101 | 102 |
| 103 // Returns the visibility state of the frame. The different visibility states |
| 104 // of a frame are defined in Blink. |
| 105 virtual blink::WebPageVisibilityState GetVisibilityState() = 0; |
| 106 |
102 private: | 107 private: |
103 // This interface should only be implemented inside content. | 108 // This interface should only be implemented inside content. |
104 friend class RenderFrameHostImpl; | 109 friend class RenderFrameHostImpl; |
105 RenderFrameHost() {} | 110 RenderFrameHost() {} |
106 }; | 111 }; |
107 | 112 |
108 } // namespace content | 113 } // namespace content |
109 | 114 |
110 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ | 115 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ |
OLD | NEW |