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_RENDERER_RENDER_FRAME_H_ | 5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ |
6 #define CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ | 6 #define CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 | 11 |
12 #include "base/callback_forward.h" | 12 #include "base/callback_forward.h" |
13 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
14 #include "content/common/content_export.h" | 14 #include "content/common/content_export.h" |
15 #include "content/public/common/console_message_level.h" | 15 #include "content/public/common/console_message_level.h" |
16 #include "ipc/ipc_listener.h" | 16 #include "ipc/ipc_listener.h" |
17 #include "ipc/ipc_sender.h" | 17 #include "ipc/ipc_sender.h" |
| 18 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" |
18 #include "third_party/WebKit/public/web/WebNavigationPolicy.h" | 19 #include "third_party/WebKit/public/web/WebNavigationPolicy.h" |
19 | 20 |
20 class GURL; | 21 class GURL; |
21 | 22 |
22 namespace blink { | 23 namespace blink { |
23 class WebFrame; | 24 class WebFrame; |
24 class WebLocalFrame; | 25 class WebLocalFrame; |
25 class WebPlugin; | 26 class WebPlugin; |
26 class WebURLRequest; | 27 class WebURLRequest; |
27 class WebURLResponse; | 28 class WebURLResponse; |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 // Adds |message| to the DevTools console. | 195 // Adds |message| to the DevTools console. |
195 virtual void AddMessageToConsole(ConsoleMessageLevel level, | 196 virtual void AddMessageToConsole(ConsoleMessageLevel level, |
196 const std::string& message) = 0; | 197 const std::string& message) = 0; |
197 | 198 |
198 // Whether or not this frame is using Lo-Fi. | 199 // Whether or not this frame is using Lo-Fi. |
199 virtual bool IsUsingLoFi() const = 0; | 200 virtual bool IsUsingLoFi() const = 0; |
200 | 201 |
201 // Whether or not this frame is currently pasting. | 202 // Whether or not this frame is currently pasting. |
202 virtual bool IsPasting() const = 0; | 203 virtual bool IsPasting() const = 0; |
203 | 204 |
| 205 // Returns the current visibility of the frame. |
| 206 virtual blink::WebPageVisibilityState GetVisibilityState() const = 0; |
| 207 |
204 protected: | 208 protected: |
205 ~RenderFrame() override {} | 209 ~RenderFrame() override {} |
206 | 210 |
207 private: | 211 private: |
208 // This interface should only be implemented inside content. | 212 // This interface should only be implemented inside content. |
209 friend class RenderFrameImpl; | 213 friend class RenderFrameImpl; |
210 RenderFrame() {} | 214 RenderFrame() {} |
211 }; | 215 }; |
212 | 216 |
213 } // namespace content | 217 } // namespace content |
214 | 218 |
215 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ | 219 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ |
OLD | NEW |