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