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

Unified Diff: views/view.h

Issue 6384004: Browser should get notified if a views textfield changes focus. In addition, (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: minor change Created 9 years, 11 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: views/view.h
diff --git a/views/view.h b/views/view.h
index a026c6a8ffd3cbbce34e952b9a2b7d35e3b0d426..eedc3364604e6510899fbc9a8c977cef54cb473e 100644
--- a/views/view.h
+++ b/views/view.h
@@ -137,6 +137,15 @@ class View : public AcceleratorTarget {
APPLY_MIRRORING_TRANSFORMATION
};
+ enum VirtualKeyboardType {
+ NO_KEYBOARD,
+ REGULAR_KEYBOARD,
+ PASSWORD_KEYBOARD,
+ DATE_KEYBOARD,
+ EMAIL_KEYBOARD,
+ URL_KEYBOARD,
oshima 2011/01/27 19:58:33 The name of the enum should be more generic, such
varunjain 2011/01/27 23:01:38 Done.
+ };
+
#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.

Powered by Google App Engine
This is Rietveld 408576698