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

Unified Diff: public/web/WebContextMenuData.h

Issue 1137733004: Add an "input field type" entry to WebContextMenuData. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 7 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: public/web/WebContextMenuData.h
diff --git a/public/web/WebContextMenuData.h b/public/web/WebContextMenuData.h
index 859728aaaeb55fc769a4691184870de1b3b209d2..b369385a4d4b82aed2b2450bc9d35b0b974bcb23 100644
--- a/public/web/WebContextMenuData.h
+++ b/public/web/WebContextMenuData.h
@@ -140,6 +140,21 @@ struct WebContextMenuData {
// Whether context is editable.
bool isEditable;
+ enum InputFieldType {
+ // Not an input field.
+ InputFieldTypeNone,
+ // type = text, tel, search, number, email, url
+ InputFieldTypePlainText,
+ // type = password
+ InputFieldTypePassword,
+ // type = <etc.>
+ InputFieldTypeOther,
+ InputFieldTypeLast = InputFieldTypeOther
+ };
+
+ // If this node is an input field, the type of that field.
+ InputFieldType inputFieldType;
+
enum CheckableMenuItemFlags {
CheckableMenuItemDisabled = 0x0,
CheckableMenuItemEnabled = 0x1,
« Source/web/ContextMenuClientImpl.cpp ('K') | « Source/web/ContextMenuClientImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698