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

Unified Diff: Source/core/frame/FrameView.cpp

Issue 870933002: Make it possible to set the display mode from the WebView API (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Using enum now Created 5 years, 11 months 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
« no previous file with comments | « Source/core/frame/FrameView.h ('k') | Source/core/frame/Settings.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/FrameView.cpp
diff --git a/Source/core/frame/FrameView.cpp b/Source/core/frame/FrameView.cpp
index 22c163374628f23f176cb034e5a11a82bb102bda..42ee865ccdf33ad45c7e0e7bdb67005d4cd23efc 100644
--- a/Source/core/frame/FrameView.cpp
+++ b/Source/core/frame/FrameView.cpp
@@ -103,6 +103,7 @@ static const double resourcePriorityUpdateDelayAfterScroll = 0.250;
FrameView::FrameView(LocalFrame* frame)
: m_frame(frame)
+ , m_displayMode(WebDisplayModeBrowser)
, m_canHaveScrollbars(true)
, m_slowRepaintObjectCount(0)
, m_hasPendingLayout(false)
@@ -1185,6 +1186,12 @@ void FrameView::addPartToUpdate(RenderEmbeddedObject& object)
m_partUpdateSet.add(&object);
}
+void FrameView::setDisplayMode(WebDisplayMode mode)
+{
+ m_displayMode = mode;
+ m_frame->document()->mediaQueryAffectingValueChanged();
+}
+
void FrameView::setMediaType(const AtomicString& mediaType)
{
ASSERT(m_frame->document());
« no previous file with comments | « Source/core/frame/FrameView.h ('k') | Source/core/frame/Settings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698