| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "web/DevToolsEmulator.h" | 5 #include "web/DevToolsEmulator.h" |
| 6 | 6 |
| 7 #include "core/frame/FrameHost.h" | 7 #include "core/frame/FrameHost.h" |
| 8 #include "core/frame/FrameView.h" | 8 #include "core/frame/FrameView.h" |
| 9 #include "core/frame/Settings.h" | 9 #include "core/frame/Settings.h" |
| 10 #include "core/page/Page.h" | 10 #include "core/page/Page.h" |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 , m_originalMaxTouchPoints(0) | 70 , m_originalMaxTouchPoints(0) |
| 71 , m_embedderScriptEnabled(webViewImpl->page()->settings().scriptEnabled()) | 71 , m_embedderScriptEnabled(webViewImpl->page()->settings().scriptEnabled()) |
| 72 , m_scriptExecutionDisabled(false) | 72 , m_scriptExecutionDisabled(false) |
| 73 { | 73 { |
| 74 } | 74 } |
| 75 | 75 |
| 76 DevToolsEmulator::~DevToolsEmulator() | 76 DevToolsEmulator::~DevToolsEmulator() |
| 77 { | 77 { |
| 78 } | 78 } |
| 79 | 79 |
| 80 PassOwnPtrWillBeRawPtr<DevToolsEmulator> DevToolsEmulator::create(WebViewImpl* w
ebViewImpl) | 80 RawPtr<DevToolsEmulator> DevToolsEmulator::create(WebViewImpl* webViewImpl) |
| 81 { | 81 { |
| 82 return adoptPtrWillBeNoop(new DevToolsEmulator(webViewImpl)); | 82 return (new DevToolsEmulator(webViewImpl)); |
| 83 } | 83 } |
| 84 | 84 |
| 85 DEFINE_TRACE(DevToolsEmulator) | 85 DEFINE_TRACE(DevToolsEmulator) |
| 86 { | 86 { |
| 87 } | 87 } |
| 88 | 88 |
| 89 void DevToolsEmulator::setTextAutosizingEnabled(bool enabled) | 89 void DevToolsEmulator::setTextAutosizingEnabled(bool enabled) |
| 90 { | 90 { |
| 91 m_embedderTextAutosizingEnabled = enabled; | 91 m_embedderTextAutosizingEnabled = enabled; |
| 92 bool emulateMobileEnabled = m_deviceMetricsEnabled && m_emulateMobileEnabled
; | 92 bool emulateMobileEnabled = m_deviceMetricsEnabled && m_emulateMobileEnabled
; |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 m_lastPinchAnchorCss.clear(); | 370 m_lastPinchAnchorCss.clear(); |
| 371 m_lastPinchAnchorDip.clear(); | 371 m_lastPinchAnchorDip.clear(); |
| 372 } | 372 } |
| 373 return true; | 373 return true; |
| 374 } | 374 } |
| 375 | 375 |
| 376 return false; | 376 return false; |
| 377 } | 377 } |
| 378 | 378 |
| 379 } // namespace blink | 379 } // namespace blink |
| OLD | NEW |