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

Side by Side Diff: content/browser/renderer_host/render_view_host_impl.cc

Issue 1150663003: Remove --enable-region-based-columns command line flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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
« 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/renderer_host/render_view_host_impl.h" 5 #include "content/browser/renderer_host/render_view_host_impl.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 command_line.HasSwitch(switches::kDisable2dCanvasAntialiasing); 427 command_line.HasSwitch(switches::kDisable2dCanvasAntialiasing);
428 prefs.antialiased_clips_2d_canvas_enabled = 428 prefs.antialiased_clips_2d_canvas_enabled =
429 command_line.HasSwitch(switches::kEnable2dCanvasClipAntialiasing); 429 command_line.HasSwitch(switches::kEnable2dCanvasClipAntialiasing);
430 prefs.accelerated_2d_canvas_msaa_sample_count = 430 prefs.accelerated_2d_canvas_msaa_sample_count =
431 atoi(command_line.GetSwitchValueASCII( 431 atoi(command_line.GetSwitchValueASCII(
432 switches::kAcceleratedCanvas2dMSAASampleCount).c_str()); 432 switches::kAcceleratedCanvas2dMSAASampleCount).c_str());
433 // Text blobs rely on impl-side painting for proper LCD handling. 433 // Text blobs rely on impl-side painting for proper LCD handling.
434 prefs.text_blobs_enabled = command_line.HasSwitch(switches::kForceTextBlobs) 434 prefs.text_blobs_enabled = command_line.HasSwitch(switches::kForceTextBlobs)
435 || (content::IsImplSidePaintingEnabled() && 435 || (content::IsImplSidePaintingEnabled() &&
436 !command_line.HasSwitch(switches::kDisableTextBlobs)); 436 !command_line.HasSwitch(switches::kDisableTextBlobs));
437 prefs.region_based_columns_enabled =
438 command_line.HasSwitch(switches::kEnableRegionBasedColumns);
439 437
440 if (IsPinchVirtualViewportEnabled()) { 438 if (IsPinchVirtualViewportEnabled()) {
441 prefs.pinch_virtual_viewport_enabled = true; 439 prefs.pinch_virtual_viewport_enabled = true;
442 prefs.pinch_overlay_scrollbar_thickness = 10; 440 prefs.pinch_overlay_scrollbar_thickness = 10;
443 } 441 }
444 prefs.use_solid_color_scrollbars = ui::IsOverlayScrollbarEnabled(); 442 prefs.use_solid_color_scrollbars = ui::IsOverlayScrollbarEnabled();
445 443
446 #if defined(OS_ANDROID) 444 #if defined(OS_ANDROID)
447 // On Android, user gestures are normally required, unless that requirement 445 // On Android, user gestures are normally required, unless that requirement
448 // is disabled with a command-line switch or the equivalent field trial is 446 // is disabled with a command-line switch or the equivalent field trial is
(...skipping 975 matching lines...) Expand 10 before | Expand all | Expand 10 after
1424 if (!policy->CanReadFile(GetProcess()->GetID(), file)) 1422 if (!policy->CanReadFile(GetProcess()->GetID(), file))
1425 policy->GrantReadFile(GetProcess()->GetID(), file); 1423 policy->GrantReadFile(GetProcess()->GetID(), file);
1426 } 1424 }
1427 } 1425 }
1428 1426
1429 void RenderViewHostImpl::SelectWordAroundCaret() { 1427 void RenderViewHostImpl::SelectWordAroundCaret() {
1430 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID())); 1428 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID()));
1431 } 1429 }
1432 1430
1433 } // namespace content 1431 } // 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