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

Unified Diff: Source/core/inspector/PageRuntimeAgent.cpp

Issue 146683003: Settings should not call into inspector (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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
Index: Source/core/inspector/PageRuntimeAgent.cpp
diff --git a/Source/core/inspector/PageRuntimeAgent.cpp b/Source/core/inspector/PageRuntimeAgent.cpp
old mode 100644
new mode 100755
index da13c8f2b3f862d1ee9a109f6bfc615b98091bad..3428fd342b1018a9b4db001a92a7e813bc60a43f
--- a/Source/core/inspector/PageRuntimeAgent.cpp
+++ b/Source/core/inspector/PageRuntimeAgent.cpp
@@ -109,6 +109,30 @@ void PageRuntimeAgent::disable(ErrorString* errorString)
m_state->setBoolean(PageRuntimeAgentState::runtimeEnabled, false);
}
+void PageRuntimeAgent::scriptsEnabled(Frame* frame, bool isEnabled)
pfeldman 2014/01/24 16:25:21 You don't need these.
gnana 2014/01/27 16:31:07 Done.
+{
+ if (!m_enabled)
+ return;
+ ASSERT(m_frontend);
+ m_pageAgent->scriptsEnabled(isEnabled);
+}
+
+void PageRuntimeAgent::textAutosizingEnabled(Frame* frame, bool isEnabled)
+{
+ if (!m_enabled)
+ return;
+ ASSERT(m_frontend);
+ m_pageAgent->textAutosizingEnabled(isEnabled);
+}
+
+void PageRuntimeAgent::fontScaleFactor(Frame* frame, float factor)
+{
+ if (!m_enabled)
+ return;
+ ASSERT(m_frontend);
+ m_pageAgent->fontScaleFactor(factor);
+}
+
void PageRuntimeAgent::didClearWindowObjectInWorld(Frame* frame, DOMWrapperWorld* world)
{
if (world != mainThreadNormalWorld())

Powered by Google App Engine
This is Rietveld 408576698