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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: ui/base/ui_base_switches_util.h
diff --git a/ui/base/ui_base_switches_util.h b/ui/base/ui_base_switches_util.h
index 92badcc4ce0291f3f0b52c5a5426597d7550eb38..6dd8ddd274218979775e15e7adefdb309c94111d 100644
--- a/ui/base/ui_base_switches_util.h
+++ b/ui/base/ui_base_switches_util.h
@@ -5,14 +5,27 @@
#ifndef UI_BASE_UI_BASE_SWITCHES_UTIL_H_
#define UI_BASE_UI_BASE_SWITCHES_UTIL_H_
-#include "base/compiler_specific.h"
+#include "base/auto_reset.h"
+#include "base/macros.h"
#include "ui/base/ui_base_export.h"
namespace switches {
+UI_BASE_EXPORT bool IsTextInputFocusManagerEnabled();
UI_BASE_EXPORT bool IsTouchDragDropEnabled();
UI_BASE_EXPORT bool IsTouchEditingEnabled();
+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.
+ public:
+ ScopedTextInputFocusManagerForTesting();
+ ~ScopedTextInputFocusManagerForTesting();
+
+ private:
+ base::AutoReset<bool> auto_reset_;
+
+ DISALLOW_COPY_AND_ASSIGN(ScopedTextInputFocusManagerForTesting);
+};
+
} // namespace switches
#endif // UI_BASE_UI_BASE_SWITCHES_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698