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

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

Issue 1226163015: CL for perf tryjob on win (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | content/renderer/gpu/render_widget_compositor.cc » ('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 447 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 458
459 #if defined(OS_ANDROID) 459 #if defined(OS_ANDROID)
460 prefs.device_supports_mouse = false; 460 prefs.device_supports_mouse = false;
461 #endif 461 #endif
462 462
463 prefs.pointer_events_max_touch_points = ui::MaxTouchPoints(); 463 prefs.pointer_events_max_touch_points = ui::MaxTouchPoints();
464 464
465 prefs.touch_adjustment_enabled = 465 prefs.touch_adjustment_enabled =
466 !command_line.HasSwitch(switches::kDisableTouchAdjustment); 466 !command_line.HasSwitch(switches::kDisableTouchAdjustment);
467 467
468 const std::string slimming_group = 468 prefs.slimming_paint_enabled = command_line.HasSwitch(
469 base::FieldTrialList::FindFullName("SlimmingPaint"); 469 switches::kEnableSlimmingPaint);
470 prefs.slimming_paint_enabled = 470
471 (command_line.HasSwitch(switches::kEnableSlimmingPaint) ||
472 !command_line.HasSwitch(switches::kDisableSlimmingPaint)) &&
473 (slimming_group != "DisableSlimmingPaint");
474 #if defined(OS_MACOSX) || defined(OS_CHROMEOS) 471 #if defined(OS_MACOSX) || defined(OS_CHROMEOS)
475 bool default_enable_scroll_animator = true; 472 bool default_enable_scroll_animator = true;
476 #else 473 #else
477 bool default_enable_scroll_animator = false; 474 bool default_enable_scroll_animator = false;
478 #endif 475 #endif
479 prefs.enable_scroll_animator = default_enable_scroll_animator; 476 prefs.enable_scroll_animator = default_enable_scroll_animator;
480 if (command_line.HasSwitch(switches::kEnableSmoothScrolling)) 477 if (command_line.HasSwitch(switches::kEnableSmoothScrolling))
481 prefs.enable_scroll_animator = true; 478 prefs.enable_scroll_animator = true;
482 if (command_line.HasSwitch(switches::kDisableSmoothScrolling)) 479 if (command_line.HasSwitch(switches::kDisableSmoothScrolling))
483 prefs.enable_scroll_animator = false; 480 prefs.enable_scroll_animator = false;
(...skipping 943 matching lines...) Expand 10 before | Expand all | Expand 10 after
1427 if (!policy->CanReadFile(GetProcess()->GetID(), file)) 1424 if (!policy->CanReadFile(GetProcess()->GetID(), file))
1428 policy->GrantReadFile(GetProcess()->GetID(), file); 1425 policy->GrantReadFile(GetProcess()->GetID(), file);
1429 } 1426 }
1430 } 1427 }
1431 1428
1432 void RenderViewHostImpl::SelectWordAroundCaret() { 1429 void RenderViewHostImpl::SelectWordAroundCaret() {
1433 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID())); 1430 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID()));
1434 } 1431 }
1435 1432
1436 } // namespace content 1433 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/renderer/gpu/render_widget_compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698