OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |