Chromium Code Reviews| 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; |