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

Side by Side Diff: third_party/WebKit/Source/core/inspector/DevToolsHost.cpp

Issue 1774943003: blink: Rename platform/ methods to prefix with get when they collide. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clash-platform: rebase-yayyyyyyyy Created 4 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) 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com>
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 m_frontendFrame = nullptr; 162 m_frontendFrame = nullptr;
163 } 163 }
164 164
165 float DevToolsHost::zoomFactor() 165 float DevToolsHost::zoomFactor()
166 { 166 {
167 if (!m_frontendFrame) 167 if (!m_frontendFrame)
168 return 1; 168 return 1;
169 float zoomFactor = m_frontendFrame->pageZoomFactor(); 169 float zoomFactor = m_frontendFrame->pageZoomFactor();
170 // Cancel the device scale factor applied to the zoom factor in 170 // Cancel the device scale factor applied to the zoom factor in
171 // use-zoom-for-dsf mode. 171 // use-zoom-for-dsf mode.
172 const HostWindow* hostWindow = m_frontendFrame->view()->hostWindow(); 172 const HostWindow* hostWindow = m_frontendFrame->view()->getHostWindow();
173 float windowToViewportRatio = hostWindow->windowToViewportScalar(1.0f); 173 float windowToViewportRatio = hostWindow->windowToViewportScalar(1.0f);
174 return zoomFactor / windowToViewportRatio; 174 return zoomFactor / windowToViewportRatio;
175 } 175 }
176 176
177 void DevToolsHost::setInjectedScriptForOrigin(const String& origin, const String & script) 177 void DevToolsHost::setInjectedScriptForOrigin(const String& origin, const String & script)
178 { 178 {
179 if (m_client) 179 if (m_client)
180 m_client->setInjectedScriptForOrigin(origin, script); 180 m_client->setInjectedScriptForOrigin(origin, script);
181 } 181 }
182 182
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 { 240 {
241 return m_client && m_client->isUnderTest(); 241 return m_client && m_client->isUnderTest();
242 } 242 }
243 243
244 bool DevToolsHost::isHostedMode() 244 bool DevToolsHost::isHostedMode()
245 { 245 {
246 return false; 246 return false;
247 } 247 }
248 248
249 } // namespace blink 249 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698