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..5e7e0b0207d0f7b747b50967196dd60a84d0f092 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,10 @@ class InputMethod { |
| virtual void AddObserver(InputMethodObserver* observer) = 0; |
| virtual void RemoveObserver(InputMethodObserver* observer) = 0; |
| + // Set available bounds and original bounds of screen when virtual keyboard is |
|
sky
2016/08/19 00:16:40
Please update this description. It isn't clear tha
hariank
2016/08/19 00:45:38
Done.
|
| + // active. |
| + virtual void set_available_bounds(gfx::Rect new_bounds){}; |
|
sky
2016/08/19 00:16:40
Virtual functions use the CamelCase naming convent
hariank
2016/08/19 00:45:38
Done.
|
| + |
| protected: |
| friend class extensions::InputImeApiTest; |
| @@ -169,6 +174,9 @@ class InputMethod { |
| // Whether the key events will be tracked. Only used for testing. |
| bool track_key_events_for_testing_; |
| + |
| + // Available bounds of screen when virtual keyboard is active. |
| + gfx::Rect available_bounds_; |
|
sky
2016/08/19 00:16:40
The style guide does not allow for protected membe
hariank
2016/08/19 00:45:38
Done.
|
| }; |
| } // namespace ui |