| 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> |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 virtual void EnsureMojoBuiltinsAreAvailable( | 242 virtual void EnsureMojoBuiltinsAreAvailable( |
| 243 v8::Isolate* isolate, | 243 v8::Isolate* isolate, |
| 244 v8::Local<v8::Context> context) = 0; | 244 v8::Local<v8::Context> context) = 0; |
| 245 | 245 |
| 246 // Adds |message| to the DevTools console. | 246 // Adds |message| to the DevTools console. |
| 247 virtual void AddMessageToConsole(ConsoleMessageLevel level, | 247 virtual void AddMessageToConsole(ConsoleMessageLevel level, |
| 248 const std::string& message) = 0; | 248 const std::string& message) = 0; |
| 249 // Forcefully detaches all connected DevTools clients. | 249 // Forcefully detaches all connected DevTools clients. |
| 250 virtual void DetachDevToolsForTest() = 0; | 250 virtual void DetachDevToolsForTest() = 0; |
| 251 | 251 |
| 252 // Sets the PreviewsState of this frame, a bitmask of potentially several |
| 253 // Previews optimizations. |
| 254 virtual void SetPreviewsState(PreviewsState previews_state) = 0; |
| 255 |
| 252 // Returns the PreviewsState of this frame, a bitmask of potentially several | 256 // Returns the PreviewsState of this frame, a bitmask of potentially several |
| 253 // Previews optimizations. | 257 // Previews optimizations. |
| 254 virtual PreviewsState GetPreviewsState() const = 0; | 258 virtual PreviewsState GetPreviewsState() const = 0; |
| 255 | 259 |
| 256 // Whether or not this frame is currently pasting. | 260 // Whether or not this frame is currently pasting. |
| 257 virtual bool IsPasting() const = 0; | 261 virtual bool IsPasting() const = 0; |
| 258 | 262 |
| 259 // Returns the current visibility of the frame. | 263 // Returns the current visibility of the frame. |
| 260 virtual blink::WebPageVisibilityState GetVisibilityState() const = 0; | 264 virtual blink::WebPageVisibilityState GetVisibilityState() const = 0; |
| 261 | 265 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 278 | 282 |
| 279 private: | 283 private: |
| 280 // This interface should only be implemented inside content. | 284 // This interface should only be implemented inside content. |
| 281 friend class RenderFrameImpl; | 285 friend class RenderFrameImpl; |
| 282 RenderFrame() {} | 286 RenderFrame() {} |
| 283 }; | 287 }; |
| 284 | 288 |
| 285 } // namespace content | 289 } // namespace content |
| 286 | 290 |
| 287 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ | 291 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ |
| OLD | NEW |