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

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

Issue 979033003: Move code from StyleResolver to ViewportStyleResolver. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased Created 5 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
« no previous file with comments | « Source/web/WebDevToolsAgentImpl.h ('k') | Source/web/WebSettingsImpl.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) 2010-2011 Google Inc. All rights reserved. 2 * Copyright (C) 2010-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 591 matching lines...) Expand 10 before | Expand all | Expand 10 after
602 void WebDevToolsAgentImpl::setPreferCompositingToLCDTextEnabled(bool enabled) 602 void WebDevToolsAgentImpl::setPreferCompositingToLCDTextEnabled(bool enabled)
603 { 603 {
604 m_pageAgent->setPreferCompositingToLCDTextEnabled(enabled); 604 m_pageAgent->setPreferCompositingToLCDTextEnabled(enabled);
605 } 605 }
606 606
607 void WebDevToolsAgentImpl::setScriptEnabled(bool enabled) 607 void WebDevToolsAgentImpl::setScriptEnabled(bool enabled)
608 { 608 {
609 m_pageAgent->setScriptEnabled(enabled); 609 m_pageAgent->setScriptEnabled(enabled);
610 } 610 }
611 611
612 void WebDevToolsAgentImpl::setUseMobileViewportStyle(bool enabled)
613 {
614 m_pageAgent->setUseMobileViewportStyle(enabled);
615 }
616
612 void WebDevToolsAgentImpl::setDeviceMetricsOverride(int width, int height, float deviceScaleFactor, bool mobile, bool fitWindow, float scale, float offsetX, flo at offsetY) 617 void WebDevToolsAgentImpl::setDeviceMetricsOverride(int width, int height, float deviceScaleFactor, bool mobile, bool fitWindow, float scale, float offsetX, flo at offsetY)
613 { 618 {
614 if (!m_deviceMetricsEnabled) { 619 if (!m_deviceMetricsEnabled) {
615 m_deviceMetricsEnabled = true; 620 m_deviceMetricsEnabled = true;
616 m_webViewImpl->setBackgroundColorOverride(Color::darkGray); 621 m_webViewImpl->setBackgroundColorOverride(Color::darkGray);
617 } 622 }
618 if (mobile) 623 if (mobile)
619 enableMobileEmulation(); 624 enableMobileEmulation();
620 else 625 else
621 disableMobileEmulation(); 626 disableMobileEmulation();
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
904 if (!InspectorBackendDispatcher::getCommandName(message, &commandName)) 909 if (!InspectorBackendDispatcher::getCommandName(message, &commandName))
905 return false; 910 return false;
906 return commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kDebugger_pauseCmd) 911 return commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kDebugger_pauseCmd)
907 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kDebugger_setBreakpointCmd) 912 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kDebugger_setBreakpointCmd)
908 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kDebugger_setBreakpointByUrlCmd) 913 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kDebugger_setBreakpointByUrlCmd)
909 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kDebugger_removeBreakpointCmd) 914 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kDebugger_removeBreakpointCmd)
910 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kDebugger_setBreakpointsActiveCmd); 915 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kDebugger_setBreakpointsActiveCmd);
911 } 916 }
912 917
913 } // namespace blink 918 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/WebDevToolsAgentImpl.h ('k') | Source/web/WebSettingsImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698