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

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

Issue 173803002: Redesigns the text input focus handling. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added an unittest and thread checker. Created 6 years, 8 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) 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 #ifndef UI_BASE_UI_BASE_SWITCHES_UTIL_H_ 5 #ifndef UI_BASE_UI_BASE_SWITCHES_UTIL_H_
6 #define UI_BASE_UI_BASE_SWITCHES_UTIL_H_ 6 #define UI_BASE_UI_BASE_SWITCHES_UTIL_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/auto_reset.h"
9 #include "base/macros.h"
9 #include "ui/base/ui_base_export.h" 10 #include "ui/base/ui_base_export.h"
10 11
11 namespace switches { 12 namespace switches {
12 13
14 UI_BASE_EXPORT bool IsTextInputFocusManagerEnabled();
13 UI_BASE_EXPORT bool IsTouchDragDropEnabled(); 15 UI_BASE_EXPORT bool IsTouchDragDropEnabled();
14 UI_BASE_EXPORT bool IsTouchEditingEnabled(); 16 UI_BASE_EXPORT bool IsTouchEditingEnabled();
15 17
18 class UI_BASE_EXPORT ScopedTextInputFocusManagerForTesting {
msw 2014/04/18 19:57:57 Remove this and instead append kEnableTextInputFoc
Yuki 2014/04/22 09:09:02 Done.
19 public:
20 ScopedTextInputFocusManagerForTesting();
21 ~ScopedTextInputFocusManagerForTesting();
22
23 private:
24 base::AutoReset<bool> auto_reset_;
25
26 DISALLOW_COPY_AND_ASSIGN(ScopedTextInputFocusManagerForTesting);
27 };
28
16 } // namespace switches 29 } // namespace switches
17 30
18 #endif // UI_BASE_UI_BASE_SWITCHES_UTIL_H_ 31 #endif // UI_BASE_UI_BASE_SWITCHES_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698