Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Unified Diff: ui/wm/core/ime_util.h

Issue 2553603002: New accessibility virtual keyboard behavior in non-sticky mode. (Closed)
Patch Set: Remove unused variable Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/wm/core/ime_util.h
diff --git a/ui/wm/core/ime_util.h b/ui/wm/core/ime_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..3ec8002eb1f3b97d67208d97959572261e1def47
--- /dev/null
+++ b/ui/wm/core/ime_util.h
@@ -0,0 +1,34 @@
+// 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_H_
+#define UI_WM_CORE_IME_UTIL_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;
oshima 2017/04/17 13:24:22 I might have given you a wrong advise. sky@ mentio
+
+// Moves the window to ensure caret not in rect.
+// Returns whether the window is actually moved or not.
+WM_EXPORT bool MoveWindowToEnsureCaretNotInRect(
+ aura::Window* window,
+ const gfx::Rect& rect_in_screen);
+
+// Restores the window bounds when input client loses the focus on the window
+WM_EXPORT void RestoreWindowBoundsOnClientFocusLost(
+ aura::Window* top_level_window);
+
+} // namespace wm
+
+#endif // UI_WM_CORE_IME_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698