Chromium Code Reviews| Index: views/view.h |
| diff --git a/views/view.h b/views/view.h |
| index a026c6a8ffd3cbbce34e952b9a2b7d35e3b0d426..6492122069656c5b5043cc2190b9946535564cf6 100644 |
| --- a/views/view.h |
| +++ b/views/view.h |
| @@ -137,6 +137,12 @@ class View : public AcceleratorTarget { |
| APPLY_MIRRORING_TRANSFORMATION |
| }; |
| + enum ContentType { |
|
Ben Goodger (Google)
2011/01/28 15:27:24
I would rather you use view ids and maybe static_c
|
| + NONE, |
| + GENERIC_INPUT, |
| + URL_INPUT, |
| + }; |
| + |
| #if defined(TOUCH_UI) |
| enum TouchStatus { |
| TOUCH_STATUS_UNKNOWN = 0, // Unknown touch status. This is used to indicate |
| @@ -989,6 +995,9 @@ class View : public AcceleratorTarget { |
| // Get the theme provider from the parent widget. |
| ThemeProvider* GetThemeProvider() const; |
| + // Returns the content type of this view. |
| + virtual ContentType GetContentType() const; |
| + |
| protected: |
| // Returns whether this view can accept focus. |
| // A view can accept focus if it's enabled, focusable and visible. |