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

Side by Side Diff: Source/web/WebViewImpl.cpp

Issue 24272003: [DevTools] Blink-side APIs for device metrics emulation in content. (Closed) Base URL: svn://svn.chromium.org/blink/trunk/
Patch Set: Rebase Created 7 years, 2 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/web/WebViewImpl.h ('k') | public/web/WebDevToolsAgentClient.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, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2011, 2012 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 3463 matching lines...) Expand 10 before | Expand all | Expand 10 after
3474 return true; 3474 return true;
3475 } 3475 }
3476 3476
3477 void WebViewImpl::setInspectorSetting(const WebString& key, 3477 void WebViewImpl::setInspectorSetting(const WebString& key,
3478 const WebString& value) 3478 const WebString& value)
3479 { 3479 {
3480 m_inspectorSettingsMap->set(key, value); 3480 m_inspectorSettingsMap->set(key, value);
3481 client()->didUpdateInspectorSetting(key, value); 3481 client()->didUpdateInspectorSetting(key, value);
3482 } 3482 }
3483 3483
3484 void WebViewImpl::setCompositorDeviceScaleFactorOverride(float deviceScaleFactor )
3485 {
3486 }
3487
3488 void WebViewImpl::setRootLayerScaleTransform(float rootLayerScale)
3489 {
3490 }
3491
3484 WebDevToolsAgent* WebViewImpl::devToolsAgent() 3492 WebDevToolsAgent* WebViewImpl::devToolsAgent()
3485 { 3493 {
3486 return m_devToolsAgent.get(); 3494 return m_devToolsAgent.get();
3487 } 3495 }
3488 3496
3489 WebAXObject WebViewImpl::accessibilityObject() 3497 WebAXObject WebViewImpl::accessibilityObject()
3490 { 3498 {
3491 if (!mainFrameImpl()) 3499 if (!mainFrameImpl())
3492 return WebAXObject(); 3500 return WebAXObject();
3493 3501
(...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after
4196 // the initial viewport width. 4204 // the initial viewport width.
4197 // 2. The author has disabled viewport zoom. 4205 // 2. The author has disabled viewport zoom.
4198 4206
4199 const PageScaleConstraints& constraints = m_pageScaleConstraintsSet.pageDefi nedConstraints(); 4207 const PageScaleConstraints& constraints = m_pageScaleConstraintsSet.pageDefi nedConstraints();
4200 4208
4201 return fixedLayoutSize().width == m_size.width 4209 return fixedLayoutSize().width == m_size.width
4202 || (constraints.minimumScale == constraints.maximumScale && constraints. minimumScale != -1); 4210 || (constraints.minimumScale == constraints.maximumScale && constraints. minimumScale != -1);
4203 } 4211 }
4204 4212
4205 } // namespace WebKit 4213 } // namespace WebKit
OLDNEW
« no previous file with comments | « Source/web/WebViewImpl.h ('k') | public/web/WebDevToolsAgentClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698