| 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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 const gfx::Range& range) = 0; | 230 const gfx::Range& range) = 0; |
| 231 | 231 |
| 232 // Ensures that builtin mojo bindings modules are available in |context|. | 232 // Ensures that builtin mojo bindings modules are available in |context|. |
| 233 virtual void EnsureMojoBuiltinsAreAvailable( | 233 virtual void EnsureMojoBuiltinsAreAvailable( |
| 234 v8::Isolate* isolate, | 234 v8::Isolate* isolate, |
| 235 v8::Local<v8::Context> context) = 0; | 235 v8::Local<v8::Context> context) = 0; |
| 236 | 236 |
| 237 // Adds |message| to the DevTools console. | 237 // Adds |message| to the DevTools console. |
| 238 virtual void AddMessageToConsole(ConsoleMessageLevel level, | 238 virtual void AddMessageToConsole(ConsoleMessageLevel level, |
| 239 const std::string& message) = 0; | 239 const std::string& message) = 0; |
| 240 // Forcefully detaches all connected DevTools clients. |
| 241 virtual void DetachDevToolsForTest() = 0; |
| 240 | 242 |
| 241 // Returns the PreviewsState of this frame, a bitmask of potentially several | 243 // Returns the PreviewsState of this frame, a bitmask of potentially several |
| 242 // Previews optimizations. | 244 // Previews optimizations. |
| 243 virtual PreviewsState GetPreviewsState() const = 0; | 245 virtual PreviewsState GetPreviewsState() const = 0; |
| 244 | 246 |
| 245 // Whether or not this frame is currently pasting. | 247 // Whether or not this frame is currently pasting. |
| 246 virtual bool IsPasting() const = 0; | 248 virtual bool IsPasting() const = 0; |
| 247 | 249 |
| 248 // Returns the current visibility of the frame. | 250 // Returns the current visibility of the frame. |
| 249 virtual blink::WebPageVisibilityState GetVisibilityState() const = 0; | 251 virtual blink::WebPageVisibilityState GetVisibilityState() const = 0; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 267 | 269 |
| 268 private: | 270 private: |
| 269 // This interface should only be implemented inside content. | 271 // This interface should only be implemented inside content. |
| 270 friend class RenderFrameImpl; | 272 friend class RenderFrameImpl; |
| 271 RenderFrame() {} | 273 RenderFrame() {} |
| 272 }; | 274 }; |
| 273 | 275 |
| 274 } // namespace content | 276 } // namespace content |
| 275 | 277 |
| 276 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ | 278 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ |
| OLD | NEW |