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

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

Issue 10916279: Chromium compositor change implementing page-scale driven pinch-zoom. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Rebaselined to 160422. Created 8 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
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/field_trial.h" 10 #include "base/metrics/field_trial.h"
(...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after
673 } 673 }
674 674
675 prefs.fixed_position_creates_stacking_context = !command_line.HasSwitch( 675 prefs.fixed_position_creates_stacking_context = !command_line.HasSwitch(
676 switches::kDisableFixedPositionCreatesStackingContext); 676 switches::kDisableFixedPositionCreatesStackingContext);
677 677
678 prefs.gesture_tap_highlight_enabled = command_line.HasSwitch( 678 prefs.gesture_tap_highlight_enabled = command_line.HasSwitch(
679 switches::kEnableGestureTapHighlight); 679 switches::kEnableGestureTapHighlight);
680 680
681 prefs.number_of_cpu_cores = base::SysInfo::NumberOfProcessors(); 681 prefs.number_of_cpu_cores = base::SysInfo::NumberOfProcessors();
682 682
683 prefs.apply_page_scale_factor_in_compositor =
684 command_line.HasSwitch(switches::kEnablePinchInCompositor);
685
683 content::GetContentClient()->browser()->OverrideWebkitPrefs(rvh, url, &prefs); 686 content::GetContentClient()->browser()->OverrideWebkitPrefs(rvh, url, &prefs);
684 687
685 // Disable compositing in guests until we have compositing path implemented 688 // Disable compositing in guests until we have compositing path implemented
686 // for guests. 689 // for guests.
687 if (rvh->GetProcess()->IsGuest()) 690 if (rvh->GetProcess()->IsGuest())
688 prefs.force_compositing_mode = false; 691 prefs.force_compositing_mode = false;
689 692
690 return prefs; 693 return prefs;
691 } 694 }
692 695
(...skipping 2719 matching lines...) Expand 10 before | Expand all | Expand 10 after
3412 } 3415 }
3413 } 3416 }
3414 3417
3415 content::BrowserPluginGuest* WebContentsImpl::GetBrowserPluginGuest() { 3418 content::BrowserPluginGuest* WebContentsImpl::GetBrowserPluginGuest() {
3416 return browser_plugin_guest_.get(); 3419 return browser_plugin_guest_.get();
3417 } 3420 }
3418 3421
3419 content::BrowserPluginEmbedder* WebContentsImpl::GetBrowserPluginEmbedder() { 3422 content::BrowserPluginEmbedder* WebContentsImpl::GetBrowserPluginEmbedder() {
3420 return browser_plugin_embedder_.get(); 3423 return browser_plugin_embedder_.get();
3421 } 3424 }
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698