OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2017 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_WM_CORE_IME_UTIL_H_ | |
6 #define UI_WM_CORE_IME_UTIL_H_ | |
7 | |
8 #include "ui/aura/window.h" | |
9 #include "ui/wm/wm_export.h" | |
10 | |
11 namespace gfx { | |
12 class Rect; | |
13 } | |
14 | |
15 namespace wm { | |
16 | |
17 // A property key to store the restore bounds for a window when moved by the | |
18 // virtual keyboard. | |
19 WM_EXPORT extern const aura::WindowProperty<gfx::Rect*>* const | |
20 kVirtualKeyboardRestoreBoundsKey; | |
oshima
2017/04/17 13:24:22
I might have given you a wrong advise. sky@ mentio
| |
21 | |
22 // Moves the window to ensure caret not in rect. | |
23 // Returns whether the window is actually moved or not. | |
24 WM_EXPORT bool MoveWindowToEnsureCaretNotInRect( | |
25 aura::Window* window, | |
26 const gfx::Rect& rect_in_screen); | |
27 | |
28 // Restores the window bounds when input client loses the focus on the window | |
29 WM_EXPORT void RestoreWindowBoundsOnClientFocusLost( | |
30 aura::Window* top_level_window); | |
31 | |
32 } // namespace wm | |
33 | |
34 #endif // UI_WM_CORE_IME_UTIL_H_ | |
OLD | NEW |