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

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

Issue 10815069: Add CSS variables feature flag to chrome://flags. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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
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/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 prefs.accelerated_plugins_enabled = 480 prefs.accelerated_plugins_enabled =
481 !command_line.HasSwitch(switches::kDisableAcceleratedPlugins); 481 !command_line.HasSwitch(switches::kDisableAcceleratedPlugins);
482 prefs.accelerated_video_enabled = 482 prefs.accelerated_video_enabled =
483 !command_line.HasSwitch(switches::kDisableAcceleratedVideo); 483 !command_line.HasSwitch(switches::kDisableAcceleratedVideo);
484 prefs.fullscreen_enabled = 484 prefs.fullscreen_enabled =
485 !command_line.HasSwitch(switches::kDisableFullScreen); 485 !command_line.HasSwitch(switches::kDisableFullScreen);
486 prefs.css_regions_enabled = 486 prefs.css_regions_enabled =
487 command_line.HasSwitch(switches::kEnableCssRegions); 487 command_line.HasSwitch(switches::kEnableCssRegions);
488 prefs.css_shaders_enabled = 488 prefs.css_shaders_enabled =
489 command_line.HasSwitch(switches::kEnableCssShaders); 489 command_line.HasSwitch(switches::kEnableCssShaders);
490 prefs.css_variables_enabled =
491 command_line.HasSwitch(switches::kEnableCssVariables);
490 prefs.device_supports_touch = 492 prefs.device_supports_touch =
491 ui::GetDisplayLayout() == ui::LAYOUT_TOUCH; 493 ui::GetDisplayLayout() == ui::LAYOUT_TOUCH;
492 #if defined(OS_ANDROID) 494 #if defined(OS_ANDROID)
493 prefs.device_supports_mouse = false; 495 prefs.device_supports_mouse = false;
494 #endif 496 #endif
495 497
496 #if defined(OS_MACOSX) 498 #if defined(OS_MACOSX)
497 bool default_enable_scroll_animator = true; 499 bool default_enable_scroll_animator = true;
498 #else 500 #else
499 // On CrOS, the launcher always passes in the --enable flag. 501 // On CrOS, the launcher always passes in the --enable flag.
(...skipping 2617 matching lines...) Expand 10 before | Expand all | Expand 10 after
3117 browser_plugin_host()->embedder_render_process_host(); 3119 browser_plugin_host()->embedder_render_process_host();
3118 *embedder_container_id = browser_plugin_host()->instance_id(); 3120 *embedder_container_id = browser_plugin_host()->instance_id();
3119 int embedder_process_id = 3121 int embedder_process_id =
3120 embedder_render_process_host ? embedder_render_process_host->GetID() : -1; 3122 embedder_render_process_host ? embedder_render_process_host->GetID() : -1;
3121 if (embedder_process_id != -1) { 3123 if (embedder_process_id != -1) {
3122 *embedder_channel_name = 3124 *embedder_channel_name =
3123 StringPrintf("%d.r%d", render_view_host->GetProcess()->GetID(), 3125 StringPrintf("%d.r%d", render_view_host->GetProcess()->GetID(),
3124 embedder_process_id); 3126 embedder_process_id);
3125 } 3127 }
3126 } 3128 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698