Chromium Code Reviews| OLD | NEW |
|---|---|
| 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_ |
| OLD | NEW |