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

Unified Diff: ui/keyboard/keyboard_layout_delegate.h

Issue 2445293002: Make the virtual keyboard show up on the display with input focus. (Closed)
Patch Set: rebase & update Created 4 years, 1 month 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/keyboard/keyboard_layout_delegate.h
diff --git a/ui/keyboard/keyboard_layout_delegate.h b/ui/keyboard/keyboard_layout_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..685e83712dde41dd846d28be34e85a572e3bca0a
--- /dev/null
+++ b/ui/keyboard/keyboard_layout_delegate.h
@@ -0,0 +1,27 @@
+// Copyright (c) 2016 The Chromium Authors. All rights reserved.
oshima 2016/11/08 17:26:05 remove "(c)" Old files may have it, but it's obsol
yhanada 2016/11/14 22:48:47 Done.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_KEYBOARD_KEYBOARD_LAYOUT_DELEGATE_H_
+#define UI_KEYBOARD_KEYBOARD_LAYOUT_DELEGATE_H_
+
+#include <stdint.h>
+
+#include "ui/keyboard/keyboard_export.h"
+
+namespace keyboard {
+
+// A delegate class to control the virtual keyboard layout
+class KEYBOARD_EXPORT KeyboardLayoutDelegate {
+ public:
+ virtual ~KeyboardLayoutDelegate() {}
+
+ // If display_id != |kInvalidDisplayID|, move the keyboard to that display.
+ // If display_id == |kInvalidDisplayID|, move the keyboard to the touchable
+ // display which has the input focus, or the first touchable display.
+ virtual void MoveKeyboardToAnotherDisplayIfNeeded(int64_t display_id) = 0;
oshima 2016/11/08 17:26:05 Since the caller knows which, it's better to have
yhanada 2016/11/14 22:48:47 Done.
+};
+
+} // namespace keyboard
+
+#endif
« ui/keyboard/keyboard_controller.cc ('K') | « ui/keyboard/keyboard_controller_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698