Chromium Code Reviews| Index: views/view.h |
| diff --git a/views/view.h b/views/view.h |
| index a026c6a8ffd3cbbce34e952b9a2b7d35e3b0d426..72ccd2d9830780c2829441aead2585cbc3e03502 100644 |
| --- a/views/view.h |
| +++ b/views/view.h |
| @@ -137,6 +137,15 @@ class View : public AcceleratorTarget { |
| APPLY_MIRRORING_TRANSFORMATION |
| }; |
| + enum VirtualKeyboardType { |
|
rjkroege
2011/01/27 00:04:22
I think that this does not belong here. The extens
varunjain
2011/01/27 00:19:34
moved NO_KEYBOARD
I thought we decided in the disc
|
| + REGULAR_KEYBOARD, |
| + PASSWORD_KEYBOARD, |
| + DATE_KEYBOARD, |
| + EMAIL_KEYBOARD, |
| + URL_KEYBOARD, |
| + NO_KEYBOARD, |
| + }; |
| + |
| #if defined(TOUCH_UI) |
| enum TouchStatus { |
| TOUCH_STATUS_UNKNOWN = 0, // Unknown touch status. This is used to indicate |
| @@ -989,6 +998,9 @@ class View : public AcceleratorTarget { |
| // Get the theme provider from the parent widget. |
| ThemeProvider* GetThemeProvider() const; |
| + // Returns the virtual keyboard type this view requires. |
| + virtual VirtualKeyboardType GetVirtualKeyboardType(); |
| + |
| protected: |
| // Returns whether this view can accept focus. |
| // A view can accept focus if it's enabled, focusable and visible. |