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

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

Issue 351303003: [DevTools] Switch from DIP to CSS pixels in device mode. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed comments Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/inspector/InspectorController.h ('k') | Source/core/inspector/InspectorPageAgent.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 // Overlay should not consume events. 372 // Overlay should not consume events.
373 m_overlay->handleKeyboardEvent(event); 373 m_overlay->handleKeyboardEvent(event);
374 return false; 374 return false;
375 } 375 }
376 376
377 void InspectorController::requestPageScaleFactor(float scale, const IntPoint& or igin) 377 void InspectorController::requestPageScaleFactor(float scale, const IntPoint& or igin)
378 { 378 {
379 m_inspectorClient->requestPageScaleFactor(scale, origin); 379 m_inspectorClient->requestPageScaleFactor(scale, origin);
380 } 380 }
381 381
382 void InspectorController::deviceOrPageScaleFactorChanged()
383 {
384 m_pageAgent->deviceOrPageScaleFactorChanged();
385 }
386
382 bool InspectorController::deviceEmulationEnabled() 387 bool InspectorController::deviceEmulationEnabled()
383 { 388 {
384 if (InspectorPageAgent* pageAgent = m_instrumentingAgents->inspectorPageAgen t()) 389 if (InspectorPageAgent* pageAgent = m_instrumentingAgents->inspectorPageAgen t())
385 return pageAgent->deviceMetricsOverrideEnabled(); 390 return pageAgent->deviceMetricsOverrideEnabled();
386 return false; 391 return false;
387 } 392 }
388 393
389 void InspectorController::resume() 394 void InspectorController::resume()
390 { 395 {
391 if (InspectorDebuggerAgent* debuggerAgent = m_instrumentingAgents->inspector DebuggerAgent()) { 396 if (InspectorDebuggerAgent* debuggerAgent = m_instrumentingAgents->inspector DebuggerAgent()) {
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 m_layerTreeAgent->willAddPageOverlay(layer); 477 m_layerTreeAgent->willAddPageOverlay(layer);
473 } 478 }
474 479
475 void InspectorController::didRemovePageOverlay(const GraphicsLayer* layer) 480 void InspectorController::didRemovePageOverlay(const GraphicsLayer* layer)
476 { 481 {
477 if (m_layerTreeAgent) 482 if (m_layerTreeAgent)
478 m_layerTreeAgent->didRemovePageOverlay(layer); 483 m_layerTreeAgent->didRemovePageOverlay(layer);
479 } 484 }
480 485
481 } // namespace WebCore 486 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorController.h ('k') | Source/core/inspector/InspectorPageAgent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698