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

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

Issue 1182663009: [DevTools] Disable plugins when emulating mobile. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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/DevToolsEmulator.cpp ('k') | no next file » | 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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 m_settings->setImagesEnabled(enabled); 274 m_settings->setImagesEnabled(enabled);
275 } 275 }
276 276
277 void WebSettingsImpl::setLoadWithOverviewMode(bool enabled) 277 void WebSettingsImpl::setLoadWithOverviewMode(bool enabled)
278 { 278 {
279 m_settings->setLoadWithOverviewMode(enabled); 279 m_settings->setLoadWithOverviewMode(enabled);
280 } 280 }
281 281
282 void WebSettingsImpl::setPluginsEnabled(bool enabled) 282 void WebSettingsImpl::setPluginsEnabled(bool enabled)
283 { 283 {
284 m_settings->setPluginsEnabled(enabled); 284 m_devToolsEmulator->setPluginsEnabled(enabled);
285 } 285 }
286 286
287 void WebSettingsImpl::setAvailablePointerTypes(int pointers) 287 void WebSettingsImpl::setAvailablePointerTypes(int pointers)
288 { 288 {
289 m_settings->setAvailablePointerTypes(pointers); 289 m_settings->setAvailablePointerTypes(pointers);
290 } 290 }
291 291
292 void WebSettingsImpl::setPrimaryPointerType(PointerType pointer) 292 void WebSettingsImpl::setPrimaryPointerType(PointerType pointer)
293 { 293 {
294 m_settings->setPrimaryPointerType(static_cast<blink::PointerType>(pointer)); 294 m_settings->setPrimaryPointerType(static_cast<blink::PointerType>(pointer));
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after
784 { 784 {
785 m_settings->setV8CacheOptions(static_cast<blink::V8CacheOptions>(options)); 785 m_settings->setV8CacheOptions(static_cast<blink::V8CacheOptions>(options));
786 } 786 }
787 787
788 void WebSettingsImpl::setUseMobileViewportStyle(bool enabled) 788 void WebSettingsImpl::setUseMobileViewportStyle(bool enabled)
789 { 789 {
790 m_devToolsEmulator->setUseMobileViewportStyle(enabled); 790 m_devToolsEmulator->setUseMobileViewportStyle(enabled);
791 } 791 }
792 792
793 } // namespace blink 793 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/DevToolsEmulator.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698