Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1396)

Unified Diff: content/renderer/render_frame_impl.h

Issue 2484633004: Change Lo-Fi bool to bitmask to support multiple Previews types (Closed)
Patch Set: add back previews_unspecified Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/renderer/render_frame_impl.h
diff --git a/content/renderer/render_frame_impl.h b/content/renderer/render_frame_impl.h
index e45410b181f356a413a19e3e7ddd5d8b61985fed..59e8f831b9fdd333ca24c8f5d007a5993f46f76c 100644
--- a/content/renderer/render_frame_impl.h
+++ b/content/renderer/render_frame_impl.h
@@ -436,7 +436,7 @@ class CONTENT_EXPORT RenderFrameImpl
v8::Local<v8::Context> context) override;
void AddMessageToConsole(ConsoleMessageLevel level,
const std::string& message) override;
- bool IsUsingLoFi() const override;
+ int GetPreviewsState() const override;
nasko 2016/12/08 22:19:33 PreviewsState
megjablon 2016/12/09 20:35:55 Done.
bool IsPasting() const override;
blink::WebPageVisibilityState GetVisibilityState() const override;
bool IsBrowserSideNavigationPending() override;
@@ -1279,8 +1279,9 @@ class CONTENT_EXPORT RenderFrameImpl
// lifetime is tied to the RenderFrame via the RenderFrameObserver interface.
media::RendererWebMediaPlayerDelegate* media_player_delegate_;
- // Whether or not this RenderFrame is using Lo-Fi mode.
- bool is_using_lofi_;
+ // The PreviewsState of this RenderFrame that indicates which Previews are
+ // being used.
+ int previews_state_;
nasko 2016/12/08 22:19:33 PreviewsState
megjablon 2016/12/09 20:35:55 Done.
// Effective connection type when the document of this frame was fetched.
blink::WebEffectiveConnectionType effective_connection_type_;

Powered by Google App Engine
This is Rietveld 408576698