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/wm/wm_export.h" |
| 9 |
| 10 namespace aura { |
| 11 class Window; |
| 12 } |
| 13 |
| 14 namespace gfx { |
| 15 class Rect; |
| 16 } |
| 17 |
| 18 namespace wm { |
| 19 |
| 20 // Moves the window to ensure caret not in rect. |
| 21 // Returns whether the window is actually moved or not. |
| 22 WM_EXPORT bool MoveWindowToEnsureCaretNotInRect( |
| 23 aura::Window* window, |
| 24 const gfx::Rect& rect_in_screen); |
| 25 |
| 26 // Restores the window bounds when input client loses the focus on the window |
| 27 WM_EXPORT void RestoreWindowBoundsOnClientFocusLost(aura::Window* window); |
| 28 |
| 29 } // namespace wm |
| 30 |
| 31 #endif // UI_WM_CORE_IME_UTIL_H_ |
OLD | NEW |