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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
222 | 222 |
223 // Ensures that builtin mojo bindings modules are available in |context|. | 223 // Ensures that builtin mojo bindings modules are available in |context|. |
224 virtual void EnsureMojoBuiltinsAreAvailable( | 224 virtual void EnsureMojoBuiltinsAreAvailable( |
225 v8::Isolate* isolate, | 225 v8::Isolate* isolate, |
226 v8::Local<v8::Context> context) = 0; | 226 v8::Local<v8::Context> context) = 0; |
227 | 227 |
228 // Adds |message| to the DevTools console. | 228 // Adds |message| to the DevTools console. |
229 virtual void AddMessageToConsole(ConsoleMessageLevel level, | 229 virtual void AddMessageToConsole(ConsoleMessageLevel level, |
230 const std::string& message) = 0; | 230 const std::string& message) = 0; |
231 | 231 |
232 // Whether or not this frame is using Lo-Fi. | 232 // The PreviewsState of this frame. |
233 virtual bool IsUsingLoFi() const = 0; | 233 virtual int GetPreviewsState() const = 0; |
nasko
2016/12/08 22:19:33
PreviewsState
megjablon
2016/12/09 20:35:55
Done.
| |
234 | 234 |
235 // Whether or not this frame is currently pasting. | 235 // Whether or not this frame is currently pasting. |
236 virtual bool IsPasting() const = 0; | 236 virtual bool IsPasting() const = 0; |
237 | 237 |
238 // Returns the current visibility of the frame. | 238 // Returns the current visibility of the frame. |
239 virtual blink::WebPageVisibilityState GetVisibilityState() const = 0; | 239 virtual blink::WebPageVisibilityState GetVisibilityState() const = 0; |
240 | 240 |
241 // If PlzNavigate is enabled, returns true in between teh time that Blink | 241 // If PlzNavigate is enabled, returns true in between teh time that Blink |
242 // requests navigation until the browser responds with the result. | 242 // requests navigation until the browser responds with the result. |
243 virtual bool IsBrowserSideNavigationPending() = 0; | 243 virtual bool IsBrowserSideNavigationPending() = 0; |
244 | 244 |
245 protected: | 245 protected: |
246 ~RenderFrame() override {} | 246 ~RenderFrame() override {} |
247 | 247 |
248 private: | 248 private: |
249 // This interface should only be implemented inside content. | 249 // This interface should only be implemented inside content. |
250 friend class RenderFrameImpl; | 250 friend class RenderFrameImpl; |
251 RenderFrame() {} | 251 RenderFrame() {} |
252 }; | 252 }; |
253 | 253 |
254 } // namespace content | 254 } // namespace content |
255 | 255 |
256 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ | 256 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ |
OLD | NEW |