| 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 WebElement; | 24 class WebElement; |
| 24 class WebFrame; | 25 class WebFrame; |
| 25 class WebLocalFrame; | 26 class WebLocalFrame; |
| 26 class WebNode; | 27 class WebNode; |
| 27 class WebPlugin; | 28 class WebPlugin; |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 // Adds |message| to the DevTools console. | 197 // Adds |message| to the DevTools console. |
| 197 virtual void AddMessageToConsole(ConsoleMessageLevel level, | 198 virtual void AddMessageToConsole(ConsoleMessageLevel level, |
| 198 const std::string& message) = 0; | 199 const std::string& message) = 0; |
| 199 | 200 |
| 200 // Whether or not this frame is using Lo-Fi. | 201 // Whether or not this frame is using Lo-Fi. |
| 201 virtual bool IsUsingLoFi() const = 0; | 202 virtual bool IsUsingLoFi() const = 0; |
| 202 | 203 |
| 203 // Whether or not this frame is currently pasting. | 204 // Whether or not this frame is currently pasting. |
| 204 virtual bool IsPasting() const = 0; | 205 virtual bool IsPasting() const = 0; |
| 205 | 206 |
| 207 // Returns the current visibility of the frame. |
| 208 virtual blink::WebPageVisibilityState GetVisibilityState() const = 0; |
| 209 |
| 206 protected: | 210 protected: |
| 207 ~RenderFrame() override {} | 211 ~RenderFrame() override {} |
| 208 | 212 |
| 209 private: | 213 private: |
| 210 // This interface should only be implemented inside content. | 214 // This interface should only be implemented inside content. |
| 211 friend class RenderFrameImpl; | 215 friend class RenderFrameImpl; |
| 212 RenderFrame() {} | 216 RenderFrame() {} |
| 213 }; | 217 }; |
| 214 | 218 |
| 215 } // namespace content | 219 } // namespace content |
| 216 | 220 |
| 217 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ | 221 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ |
| OLD | NEW |