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

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

Issue 643193003: Support InputMethodManager#updateCursorAnchorInfo for Android 5.0 (C++ version) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Send ImeCompositionRangeChanged only when necessary Created 5 years, 10 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/ui_base_switches_util.h ('k') | ui/base/ui_base_tests.gyp » ('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 namespace switches { 10 namespace switches {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 #endif 46 #endif
47 } 47 }
48 48
49 bool IsTouchFeedbackEnabled() { 49 bool IsTouchFeedbackEnabled() {
50 static bool touch_feedback_enabled = 50 static bool touch_feedback_enabled =
51 !base::CommandLine::ForCurrentProcess()->HasSwitch( 51 !base::CommandLine::ForCurrentProcess()->HasSwitch(
52 switches::kDisableTouchFeedback); 52 switches::kDisableTouchFeedback);
53 return touch_feedback_enabled; 53 return touch_feedback_enabled;
54 } 54 }
55 55
56 #if defined(OS_ANDROID)
57 bool IsCursorAnchorInfoEnabled() {
58 return base::CommandLine::ForCurrentProcess()->HasSwitch(
59 switches::kEnableCursorAnchorInfo);
60 }
61 #endif
62
56 } // namespace switches 63 } // namespace switches
OLDNEW
« no previous file with comments | « ui/base/ui_base_switches_util.h ('k') | ui/base/ui_base_tests.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698