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

Side by Side 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 102
103 void PageRuntimeAgent::disable(ErrorString* errorString) 103 void PageRuntimeAgent::disable(ErrorString* errorString)
104 { 104 {
105 if (!m_enabled) 105 if (!m_enabled)
106 return; 106 return;
107 107
108 InspectorRuntimeAgent::disable(errorString); 108 InspectorRuntimeAgent::disable(errorString);
109 m_state->setBoolean(PageRuntimeAgentState::runtimeEnabled, false); 109 m_state->setBoolean(PageRuntimeAgentState::runtimeEnabled, false);
110 } 110 }
111 111
112 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.
113 {
114 if (!m_enabled)
115 return;
116 ASSERT(m_frontend);
117 m_pageAgent->scriptsEnabled(isEnabled);
118 }
119
120 void PageRuntimeAgent::textAutosizingEnabled(Frame* frame, bool isEnabled)
121 {
122 if (!m_enabled)
123 return;
124 ASSERT(m_frontend);
125 m_pageAgent->textAutosizingEnabled(isEnabled);
126 }
127
128 void PageRuntimeAgent::fontScaleFactor(Frame* frame, float factor)
129 {
130 if (!m_enabled)
131 return;
132 ASSERT(m_frontend);
133 m_pageAgent->fontScaleFactor(factor);
134 }
135
112 void PageRuntimeAgent::didClearWindowObjectInWorld(Frame* frame, DOMWrapperWorld * world) 136 void PageRuntimeAgent::didClearWindowObjectInWorld(Frame* frame, DOMWrapperWorld * world)
113 { 137 {
114 if (world != mainThreadNormalWorld()) 138 if (world != mainThreadNormalWorld())
115 return; 139 return;
116 140
117 m_mainWorldContextCreated = true; 141 m_mainWorldContextCreated = true;
118 142
119 if (!m_enabled) 143 if (!m_enabled)
120 return; 144 return;
121 ASSERT(m_frontend); 145 ASSERT(m_frontend);
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 m_frontend->executionContextCreated(ExecutionContextDescription::create() 209 m_frontend->executionContextCreated(ExecutionContextDescription::create()
186 .setId(executionContextId) 210 .setId(executionContextId)
187 .setIsPageContext(isPageContext) 211 .setIsPageContext(isPageContext)
188 .setName(name) 212 .setName(name)
189 .setFrameId(frameId) 213 .setFrameId(frameId)
190 .release()); 214 .release());
191 } 215 }
192 216
193 } // namespace WebCore 217 } // namespace WebCore
194 218
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698