| 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_KEYBOARD_KEYBOARD_UTIL_H_ | 5 #ifndef UI_KEYBOARD_KEYBOARD_UTIL_H_ |
| 6 #define UI_KEYBOARD_KEYBOARD_UTIL_H_ | 6 #define UI_KEYBOARD_KEYBOARD_UTIL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/strings/string16.h" | |
| 11 // TODO(beng): replace with forward decl once RootWindow is renamed. | 10 // TODO(beng): replace with forward decl once RootWindow is renamed. |
| 12 #include "ui/aura/window.h" | 11 #include "ui/aura/window.h" |
| 13 #include "ui/keyboard/keyboard_export.h" | 12 #include "ui/keyboard/keyboard_export.h" |
| 14 | 13 |
| 15 struct GritResourceMap; | |
| 16 | |
| 17 namespace aura { | 14 namespace aura { |
| 18 class WindowTreeHost; | 15 class WindowTreeHost; |
| 19 } | 16 } |
| 20 | 17 |
| 21 class GURL; | 18 class GURL; |
| 22 | 19 |
| 23 namespace keyboard { | 20 namespace keyboard { |
| 24 | 21 |
| 25 // Enumeration of swipe directions. | 22 // Enumeration of swipe directions. |
| 26 enum CursorMoveDirection { | 23 enum CursorMoveDirection { |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 | 152 |
| 156 // Marks that the keyboard load has started. This is used to measure the time it | 153 // Marks that the keyboard load has started. This is used to measure the time it |
| 157 // takes to fully load the keyboard. This should be called before | 154 // takes to fully load the keyboard. This should be called before |
| 158 // MarkKeyboardLoadFinished. | 155 // MarkKeyboardLoadFinished. |
| 159 KEYBOARD_EXPORT void MarkKeyboardLoadStarted(); | 156 KEYBOARD_EXPORT void MarkKeyboardLoadStarted(); |
| 160 | 157 |
| 161 // Marks that the keyboard load has ended. This finishes measuring that the | 158 // Marks that the keyboard load has ended. This finishes measuring that the |
| 162 // keyboard is loaded. | 159 // keyboard is loaded. |
| 163 KEYBOARD_EXPORT void MarkKeyboardLoadFinished(); | 160 KEYBOARD_EXPORT void MarkKeyboardLoadFinished(); |
| 164 | 161 |
| 165 // Get the list of keyboard resources. |size| is populated with the number of | |
| 166 // resources in the returned array. | |
| 167 KEYBOARD_EXPORT const GritResourceMap* GetKeyboardExtensionResources( | |
| 168 size_t* size); | |
| 169 | |
| 170 // Sets the override content url. | 162 // Sets the override content url. |
| 171 // This is used by for input view for extension IMEs. | 163 // This is used by for input view for extension IMEs. |
| 172 KEYBOARD_EXPORT void SetOverrideContentUrl(const GURL& url); | 164 KEYBOARD_EXPORT void SetOverrideContentUrl(const GURL& url); |
| 173 | 165 |
| 174 // Gets the override content url. | 166 // Gets the override content url. |
| 175 KEYBOARD_EXPORT const GURL& GetOverrideContentUrl(); | 167 KEYBOARD_EXPORT const GURL& GetOverrideContentUrl(); |
| 176 | 168 |
| 177 // Logs the keyboard control event as a UMA stat. | 169 // Logs the keyboard control event as a UMA stat. |
| 178 void LogKeyboardControlEvent(KeyboardControlEvent event); | 170 void LogKeyboardControlEvent(KeyboardControlEvent event); |
| 179 | 171 |
| 180 } // namespace keyboard | 172 } // namespace keyboard |
| 181 | 173 |
| 182 #endif // UI_KEYBOARD_KEYBOARD_UTIL_H_ | 174 #endif // UI_KEYBOARD_KEYBOARD_UTIL_H_ |
| OLD | NEW |