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

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

Issue 27072003: Remove 2 members from webpreference (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | « chrome/browser/about_flags.cc ('k') | 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 559 matching lines...) Expand 10 before | Expand all | Expand 10 after
570 command_line.HasSwitch(switches::kEnableAcceleratedFilters); 570 command_line.HasSwitch(switches::kEnableAcceleratedFilters);
571 prefs.accelerated_compositing_for_3d_transforms_enabled = 571 prefs.accelerated_compositing_for_3d_transforms_enabled =
572 prefs.accelerated_compositing_for_animation_enabled = 572 prefs.accelerated_compositing_for_animation_enabled =
573 !command_line.HasSwitch(switches::kDisableAcceleratedLayers); 573 !command_line.HasSwitch(switches::kDisableAcceleratedLayers);
574 prefs.accelerated_compositing_for_plugins_enabled = 574 prefs.accelerated_compositing_for_plugins_enabled =
575 !command_line.HasSwitch(switches::kDisableAcceleratedPlugins); 575 !command_line.HasSwitch(switches::kDisableAcceleratedPlugins);
576 prefs.accelerated_compositing_for_video_enabled = 576 prefs.accelerated_compositing_for_video_enabled =
577 !command_line.HasSwitch(switches::kDisableAcceleratedVideo); 577 !command_line.HasSwitch(switches::kDisableAcceleratedVideo);
578 prefs.fullscreen_enabled = 578 prefs.fullscreen_enabled =
579 !command_line.HasSwitch(switches::kDisableFullScreen); 579 !command_line.HasSwitch(switches::kDisableFullScreen);
580 prefs.css_sticky_position_enabled =
581 command_line.HasSwitch(switches::kEnableExperimentalWebPlatformFeatures);
582 prefs.css_shaders_enabled =
583 command_line.HasSwitch(switches::kEnableCssShaders);
584 prefs.lazy_layout_enabled = 580 prefs.lazy_layout_enabled =
585 command_line.HasSwitch(switches::kEnableExperimentalWebPlatformFeatures); 581 command_line.HasSwitch(switches::kEnableExperimentalWebPlatformFeatures);
586 prefs.region_based_columns_enabled = 582 prefs.region_based_columns_enabled =
587 command_line.HasSwitch(switches::kEnableRegionBasedColumns); 583 command_line.HasSwitch(switches::kEnableRegionBasedColumns);
588 prefs.threaded_html_parser = 584 prefs.threaded_html_parser =
589 !command_line.HasSwitch(switches::kDisableThreadedHTMLParser); 585 !command_line.HasSwitch(switches::kDisableThreadedHTMLParser);
590 prefs.experimental_websocket_enabled = 586 prefs.experimental_websocket_enabled =
591 command_line.HasSwitch(switches::kEnableExperimentalWebSocket); 587 command_line.HasSwitch(switches::kEnableExperimentalWebSocket);
592 if (command_line.HasSwitch(cc::switches::kEnablePinchVirtualViewport)) { 588 if (command_line.HasSwitch(cc::switches::kEnablePinchVirtualViewport)) {
593 prefs.pinch_virtual_viewport_enabled = true; 589 prefs.pinch_virtual_viewport_enabled = true;
(...skipping 3236 matching lines...) Expand 10 before | Expand all | Expand 10 after
3830 } 3826 }
3831 3827
3832 void WebContentsImpl::OnFrameRemoved( 3828 void WebContentsImpl::OnFrameRemoved(
3833 RenderViewHostImpl* render_view_host, 3829 RenderViewHostImpl* render_view_host,
3834 int64 frame_id) { 3830 int64 frame_id) {
3835 FOR_EACH_OBSERVER(WebContentsObserver, observers_, 3831 FOR_EACH_OBSERVER(WebContentsObserver, observers_,
3836 FrameDetached(render_view_host, frame_id)); 3832 FrameDetached(render_view_host, frame_id));
3837 } 3833 }
3838 3834
3839 } // namespace content 3835 } // namespace content
OLDNEW
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | content/public/common/common_param_traits_macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698