1 // Copyright 2018 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef UI_BASE_IME_CONSTANTS_H_ 6 #define UI_BASE_IME_CONSTANTS_H_ 7 8 #include "base/component_export.h" 9 #include "stddef.h" 10 11 namespace ui { 12 13 // The name of the property that is attach to the key event and indicates 14 // whether it was from the virtual keyboard. 15 // This is used where the key event is simulated by the virtual keyboard 16 // (e.g. IME extension API) as well as the input field implementation (e.g. 17 // Textfield). 18 COMPONENT_EXPORT(UI_BASE_IME) extern const char kPropertyFromVK[]; 19 20 // kPropertyFromVKIsMirroringIndex is an index into kPropertyFromVK 21 // and is used when the key event occurs when mirroring is detected. 22 COMPONENT_EXPORT(UI_BASE_IME) 23 extern const size_t kPropertyFromVKIsMirroringIndex; 24 COMPONENT_EXPORT(UI_BASE_IME) extern const size_t kPropertyFromVKSize; 25 26 } // namespace ui 27 28 #endif // UI_BASE_IME_CONSTANTS_H_ 29