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

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

Issue 1415513002: Remove plumbing for inert-visual-viewport flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Worked on review comments Created 5 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
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 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 GpuProcessHost::gpu_enabled() && 426 GpuProcessHost::gpu_enabled() &&
427 !command_line.HasSwitch(switches::kDisableAccelerated2dCanvas); 427 !command_line.HasSwitch(switches::kDisableAccelerated2dCanvas);
428 prefs.antialiased_2d_canvas_disabled = 428 prefs.antialiased_2d_canvas_disabled =
429 command_line.HasSwitch(switches::kDisable2dCanvasAntialiasing); 429 command_line.HasSwitch(switches::kDisable2dCanvasAntialiasing);
430 prefs.antialiased_clips_2d_canvas_enabled = 430 prefs.antialiased_clips_2d_canvas_enabled =
431 command_line.HasSwitch(switches::kEnable2dCanvasClipAntialiasing); 431 command_line.HasSwitch(switches::kEnable2dCanvasClipAntialiasing);
432 prefs.accelerated_2d_canvas_msaa_sample_count = 432 prefs.accelerated_2d_canvas_msaa_sample_count =
433 atoi(command_line.GetSwitchValueASCII( 433 atoi(command_line.GetSwitchValueASCII(
434 switches::kAcceleratedCanvas2dMSAASampleCount).c_str()); 434 switches::kAcceleratedCanvas2dMSAASampleCount).c_str());
435 435
436 prefs.inert_visual_viewport =
437 command_line.HasSwitch(switches::kInertVisualViewport);
438
439 prefs.pinch_overlay_scrollbar_thickness = 10; 436 prefs.pinch_overlay_scrollbar_thickness = 10;
440 prefs.use_solid_color_scrollbars = ui::IsOverlayScrollbarEnabled(); 437 prefs.use_solid_color_scrollbars = ui::IsOverlayScrollbarEnabled();
441 438
442 #if defined(OS_ANDROID) 439 #if defined(OS_ANDROID)
443 // On Android, user gestures are normally required, unless that requirement 440 // On Android, user gestures are normally required, unless that requirement
444 // is disabled with a command-line switch or the equivalent field trial is 441 // is disabled with a command-line switch or the equivalent field trial is
445 // is set to "Enabled". 442 // is set to "Enabled".
446 const std::string autoplay_group_name = base::FieldTrialList::FindFullName( 443 const std::string autoplay_group_name = base::FieldTrialList::FindFullName(
447 "MediaElementAutoplay"); 444 "MediaElementAutoplay");
448 prefs.user_gesture_required_for_media_playback = !command_line.HasSwitch( 445 prefs.user_gesture_required_for_media_playback = !command_line.HasSwitch(
(...skipping 1014 matching lines...) Expand 10 before | Expand all | Expand 10 after
1463 } else { 1460 } else {
1464 render_view_ready_on_process_launch_ = true; 1461 render_view_ready_on_process_launch_ = true;
1465 } 1462 }
1466 } 1463 }
1467 1464
1468 void RenderViewHostImpl::RenderViewReady() { 1465 void RenderViewHostImpl::RenderViewReady() {
1469 delegate_->RenderViewReady(this); 1466 delegate_->RenderViewReady(this);
1470 } 1467 }
1471 1468
1472 } // namespace content 1469 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698