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

Side by Side Diff: content/browser/android/content_startup_flags.cc

Issue 235003005: Consolidate all touch/gesture related constants in content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup Created 6 years, 7 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/android/content_startup_flags.h" 5 #include "content/browser/android/content_startup_flags.h"
6 6
7 #include "base/base_switches.h" 7 #include "base/base_switches.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 if (max_render_process_count < default_maximum) 55 if (max_render_process_count < default_maximum)
56 RenderProcessHost::SetMaxRendererProcessCount(max_render_process_count); 56 RenderProcessHost::SetMaxRendererProcessCount(max_render_process_count);
57 } 57 }
58 58
59 parsed_command_line->AppendSwitch(switches::kEnableThreadedCompositing); 59 parsed_command_line->AppendSwitch(switches::kEnableThreadedCompositing);
60 parsed_command_line->AppendSwitch( 60 parsed_command_line->AppendSwitch(
61 switches::kEnableCompositingForFixedPosition); 61 switches::kEnableCompositingForFixedPosition);
62 parsed_command_line->AppendSwitch(switches::kEnableAcceleratedOverflowScroll); 62 parsed_command_line->AppendSwitch(switches::kEnableAcceleratedOverflowScroll);
63 parsed_command_line->AppendSwitch(switches::kEnableBeginFrameScheduling); 63 parsed_command_line->AppendSwitch(switches::kEnableBeginFrameScheduling);
64 64
65 parsed_command_line->AppendSwitch(switches::kDisableGestureDebounce);
66 parsed_command_line->AppendSwitch(switches::kEnableGestureTapHighlight); 65 parsed_command_line->AppendSwitch(switches::kEnableGestureTapHighlight);
67 parsed_command_line->AppendSwitch(switches::kEnablePinch); 66 parsed_command_line->AppendSwitch(switches::kEnablePinch);
68 parsed_command_line->AppendSwitch(switches::kEnableOverlayFullscreenVideo); 67 parsed_command_line->AppendSwitch(switches::kEnableOverlayFullscreenVideo);
69 parsed_command_line->AppendSwitch(switches::kEnableOverlayScrollbar); 68 parsed_command_line->AppendSwitch(switches::kEnableOverlayScrollbar);
70 parsed_command_line->AppendSwitch(switches::kEnableOverscrollNotifications); 69 parsed_command_line->AppendSwitch(switches::kEnableOverscrollNotifications);
71 parsed_command_line->AppendSwitchASCII(switches::kTouchAckTimeoutDelayMs,
72 "200");
73 70
74 // Run the GPU service as a thread in the browser instead of as a 71 // Run the GPU service as a thread in the browser instead of as a
75 // standalone process. 72 // standalone process.
76 parsed_command_line->AppendSwitch(switches::kInProcessGPU); 73 parsed_command_line->AppendSwitch(switches::kInProcessGPU);
77 parsed_command_line->AppendSwitch(switches::kDisableGpuShaderDiskCache); 74 parsed_command_line->AppendSwitch(switches::kDisableGpuShaderDiskCache);
78 75
79 parsed_command_line->AppendSwitch(switches::kEnableViewport); 76 parsed_command_line->AppendSwitch(switches::kEnableViewport);
80 parsed_command_line->AppendSwitch(switches::kEnableViewportMeta); 77 parsed_command_line->AppendSwitch(switches::kEnableViewportMeta);
81 parsed_command_line->AppendSwitch( 78 parsed_command_line->AppendSwitch(
82 switches::kMainFrameResizesAreOrientationChanges); 79 switches::kMainFrameResizesAreOrientationChanges);
(...skipping 12 matching lines...) Expand all
95 } 92 }
96 93
97 // Disable profiler timing by default. 94 // Disable profiler timing by default.
98 if (!parsed_command_line->HasSwitch(switches::kProfilerTiming)) { 95 if (!parsed_command_line->HasSwitch(switches::kProfilerTiming)) {
99 parsed_command_line->AppendSwitchASCII( 96 parsed_command_line->AppendSwitchASCII(
100 switches::kProfilerTiming, switches::kProfilerTimingDisabledValue); 97 switches::kProfilerTiming, switches::kProfilerTimingDisabledValue);
101 } 98 }
102 } 99 }
103 100
104 } // namespace content 101 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698