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

Side by Side Diff: ui/base/ui_base_switches_util.cc

Issue 817653003: Update from https://crrev.com/309717 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 | « ui/base/touch/touch_enabled.cc ('k') | ui/compositor/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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "ui/base/ui_base_switches_util.h" 5 #include "ui/base/ui_base_switches_util.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "ui/base/ui_base_switches.h" 8 #include "ui/base/ui_base_switches.h"
9 9
10 using base::CommandLine;
11
10 namespace switches { 12 namespace switches {
11 13
12 bool IsTextInputFocusManagerEnabled() { 14 bool IsTextInputFocusManagerEnabled() {
13 return CommandLine::ForCurrentProcess()->HasSwitch( 15 return CommandLine::ForCurrentProcess()->HasSwitch(
14 switches::kEnableTextInputFocusManager); 16 switches::kEnableTextInputFocusManager);
15 } 17 }
16 18
17 bool IsTouchDragDropEnabled() { 19 bool IsTouchDragDropEnabled() {
18 #if defined(OS_CHROMEOS) 20 #if defined(OS_CHROMEOS)
19 return !CommandLine::ForCurrentProcess()->HasSwitch( 21 return !CommandLine::ForCurrentProcess()->HasSwitch(
(...skipping 14 matching lines...) Expand all
34 #endif 36 #endif
35 } 37 }
36 38
37 bool IsTouchFeedbackEnabled() { 39 bool IsTouchFeedbackEnabled() {
38 static bool touch_feedback_enabled = CommandLine::ForCurrentProcess()-> 40 static bool touch_feedback_enabled = CommandLine::ForCurrentProcess()->
39 HasSwitch(switches::kEnableTouchFeedback); 41 HasSwitch(switches::kEnableTouchFeedback);
40 return touch_feedback_enabled; 42 return touch_feedback_enabled;
41 } 43 }
42 44
43 } // namespace switches 45 } // namespace switches
OLDNEW
« no previous file with comments | « ui/base/touch/touch_enabled.cc ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698