Chromium Code Reviews| Index: ui/wm/core/ime_util_chromeos.h |
| diff --git a/ui/wm/core/ime_util_chromeos.h b/ui/wm/core/ime_util_chromeos.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..9dd603b78f61d65fb277e215f113fee24980f35c |
| --- /dev/null |
| +++ b/ui/wm/core/ime_util_chromeos.h |
| @@ -0,0 +1,32 @@ |
| +// Copyright 2017 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef UI_WM_CORE_IME_UTIL_CHROMEOS_H_ |
| +#define UI_WM_CORE_IME_UTIL_CHROMEOS_H_ |
| + |
| +#include "ui/aura/window.h" |
| +#include "ui/wm/wm_export.h" |
| + |
| +namespace gfx { |
| +class Rect; |
| +} |
| + |
| +namespace wm { |
| + |
| +// A property key to store the restore bounds for a window when moved by the |
| +// virtual keyboard. |
| +WM_EXPORT extern const aura::WindowProperty<gfx::Rect*>* const |
| + kVirtualKeyboardRestoreBoundsKey; |
| + |
| +// Moves the window to ensure it not it the rect if needed. |
|
sadrul
2017/05/08 15:48:48
Moves the window, if needed, to ensure it does not
yhanada
2017/05/09 03:19:14
Done.
|
| +WM_EXPORT void EnsureWindowNotInRect(aura::Window* window, |
| + const gfx::Rect& rect_in_screen); |
| + |
| +// Restores the window bounds when input client loses the focus on the window |
|
sadrul
2017/05/08 15:47:26
. at the end
yhanada
2017/05/09 03:19:14
Done.
|
| +WM_EXPORT void RestoreWindowBoundsOnClientFocusLost( |
| + aura::Window* top_level_window); |
| + |
| +} // namespace wm |
| + |
| +#endif // UI_WM_CORE_IME_UTIL_CHROMEOS_H_ |