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

Side by Side Diff: content/browser/web_contents/web_contents_impl.cc

Issue 17057003: Add command line switch to enable region based columns. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 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
« no previous file with comments | « no previous file | content/public/common/common_param_traits_macros.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 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/browser/web_contents/web_contents_impl.h" 5 #include "content/browser/web_contents/web_contents_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after
552 prefs.fullscreen_enabled = 552 prefs.fullscreen_enabled =
553 !command_line.HasSwitch(switches::kDisableFullScreen); 553 !command_line.HasSwitch(switches::kDisableFullScreen);
554 prefs.css_sticky_position_enabled = 554 prefs.css_sticky_position_enabled =
555 command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures); 555 command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures);
556 prefs.css_shaders_enabled = 556 prefs.css_shaders_enabled =
557 command_line.HasSwitch(switches::kEnableCssShaders); 557 command_line.HasSwitch(switches::kEnableCssShaders);
558 prefs.css_grid_layout_enabled = 558 prefs.css_grid_layout_enabled =
559 command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures); 559 command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures);
560 prefs.lazy_layout_enabled = 560 prefs.lazy_layout_enabled =
561 command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures); 561 command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures);
562 prefs.region_based_columns_enabled =
563 command_line.HasSwitch(switches::kEnableRegionBasedColumns);
562 prefs.threaded_html_parser = 564 prefs.threaded_html_parser =
563 !command_line.HasSwitch(switches::kDisableThreadedHTMLParser); 565 !command_line.HasSwitch(switches::kDisableThreadedHTMLParser);
564 prefs.experimental_websocket_enabled = 566 prefs.experimental_websocket_enabled =
565 command_line.HasSwitch(switches::kEnableExperimentalWebSocket); 567 command_line.HasSwitch(switches::kEnableExperimentalWebSocket);
566 prefs.pinch_virtual_viewport_enabled = 568 prefs.pinch_virtual_viewport_enabled =
567 command_line.HasSwitch(cc::switches::kEnablePinchVirtualViewport); 569 command_line.HasSwitch(cc::switches::kEnablePinchVirtualViewport);
568 570
569 #if defined(OS_ANDROID) 571 #if defined(OS_ANDROID)
570 prefs.user_gesture_required_for_media_playback = !command_line.HasSwitch( 572 prefs.user_gesture_required_for_media_playback = !command_line.HasSwitch(
571 switches::kDisableGestureRequirementForMediaPlayback); 573 switches::kDisableGestureRequirementForMediaPlayback);
(...skipping 3126 matching lines...) Expand 10 before | Expand all | Expand 10 after
3698 } 3700 }
3699 3701
3700 BrowserPluginGuestManager* 3702 BrowserPluginGuestManager*
3701 WebContentsImpl::GetBrowserPluginGuestManager() const { 3703 WebContentsImpl::GetBrowserPluginGuestManager() const {
3702 return static_cast<BrowserPluginGuestManager*>( 3704 return static_cast<BrowserPluginGuestManager*>(
3703 GetBrowserContext()->GetUserData( 3705 GetBrowserContext()->GetUserData(
3704 browser_plugin::kBrowserPluginGuestManagerKeyName)); 3706 browser_plugin::kBrowserPluginGuestManagerKeyName));
3705 } 3707 }
3706 3708
3707 } // namespace content 3709 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/public/common/common_param_traits_macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698