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

Unified Diff: ui/base/ime/input_method.h

Issue 2259033003: New accessibility virtual keyboard behavior in non-sticky mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make patch relative to previous CL Created 4 years, 4 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/base/ime/input_method.h
diff --git a/ui/base/ime/input_method.h b/ui/base/ime/input_method.h
index cfa5583192520437d31f190346e3ced9c8a9192e..ebe8bbc8cdd887df20d4934591e960d4e4f61376 100644
--- a/ui/base/ime/input_method.h
+++ b/ui/base/ime/input_method.h
@@ -15,6 +15,7 @@
#include "build/build_config.h"
#include "ui/base/ime/text_input_mode.h"
#include "ui/base/ime/text_input_type.h"
+#include "ui/gfx/geometry/rect.h"
namespace extensions {
class InputImeApiTest;
@@ -160,6 +161,12 @@ class InputMethod {
virtual void AddObserver(InputMethodObserver* observer) = 0;
virtual void RemoveObserver(InputMethodObserver* observer) = 0;
+ // Set available screen bounds when virtual keyboard is active.
+ virtual void SetAvailableBounds(const gfx::Rect& new_bounds) {}
sky 2016/08/19 20:21:39 Can you elaborate on why we need this? AFAICT it's
hariank 2016/08/19 20:32:11 If the keyboard is closed, it is the bounds of the
+
+ // Screen bounds of window not covered by virtual keyboard if it is active.
+ gfx::Rect available_bounds_;
sky 2016/08/19 20:21:39 Again, style guide says fields should be private,
hariank 2016/08/19 20:32:11 Ok, I'll make it private and add a getter to use i
+
protected:
friend class extensions::InputImeApiTest;

Powered by Google App Engine
This is Rietveld 408576698