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

Side by Side Diff: Source/core/inspector/InspectorController.cpp

Issue 979033003: Move code from StyleResolver to ViewportStyleResolver. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Removed stray method declaration Created 5 years, 9 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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 void InspectorController::setDeviceScaleAdjustment(float deviceScaleAdjustment) 157 void InspectorController::setDeviceScaleAdjustment(float deviceScaleAdjustment)
158 { 158 {
159 m_pageAgent->setDeviceScaleAdjustment(deviceScaleAdjustment); 159 m_pageAgent->setDeviceScaleAdjustment(deviceScaleAdjustment);
160 } 160 }
161 161
162 void InspectorController::setPreferCompositingToLCDTextEnabled(bool enabled) 162 void InspectorController::setPreferCompositingToLCDTextEnabled(bool enabled)
163 { 163 {
164 m_pageAgent->setPreferCompositingToLCDTextEnabled(enabled); 164 m_pageAgent->setPreferCompositingToLCDTextEnabled(enabled);
165 } 165 }
166 166
167 void InspectorController::setUseMobileViewportStyle(bool enabled)
168 {
169 m_pageAgent->setUseMobileViewportStyle(enabled);
170 }
171
167 void InspectorController::initializeDeferredAgents() 172 void InspectorController::initializeDeferredAgents()
168 { 173 {
169 if (m_deferredAgentsInitialized) 174 if (m_deferredAgentsInitialized)
170 return; 175 return;
171 m_deferredAgentsInitialized = true; 176 m_deferredAgentsInitialized = true;
172 177
173 InjectedScriptManager* injectedScriptManager = m_injectedScriptManager.get() ; 178 InjectedScriptManager* injectedScriptManager = m_injectedScriptManager.get() ;
174 InspectorOverlay* overlay = m_overlay.get(); 179 InspectorOverlay* overlay = m_overlay.get();
175 180
176 OwnPtrWillBeRawPtr<InspectorResourceAgent> resourceAgentPtr(InspectorResourc eAgent::create(m_pageAgent)); 181 OwnPtrWillBeRawPtr<InspectorResourceAgent> resourceAgentPtr(InspectorResourc eAgent::create(m_pageAgent));
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 m_layerTreeAgent->willAddPageOverlay(layer); 419 m_layerTreeAgent->willAddPageOverlay(layer);
415 } 420 }
416 421
417 void InspectorController::didRemovePageOverlay(const GraphicsLayer* layer) 422 void InspectorController::didRemovePageOverlay(const GraphicsLayer* layer)
418 { 423 {
419 if (m_layerTreeAgent) 424 if (m_layerTreeAgent)
420 m_layerTreeAgent->didRemovePageOverlay(layer); 425 m_layerTreeAgent->didRemovePageOverlay(layer);
421 } 426 }
422 427
423 } // namespace blink 428 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698