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

Unified Diff: ui/views/controls/textfield/textfield_controller.h

Issue 10535046: Add Windows commandline switch --enable-views-textfield. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove unused includes. Created 8 years, 6 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
« no previous file with comments | « ui/views/controls/textfield/textfield.cc ('k') | ui/views/controls/textfield/textfield_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/textfield/textfield_controller.h
diff --git a/ui/views/controls/textfield/textfield_controller.h b/ui/views/controls/textfield/textfield_controller.h
index a9471b12879c14fd69db6c0cacbe2790be4764e3..bc2e35fd60473d0c8f28fed0b1c2bb39742da90d 100644
--- a/ui/views/controls/textfield/textfield_controller.h
+++ b/ui/views/controls/textfield/textfield_controller.h
@@ -54,7 +54,7 @@ class VIEWS_EXPORT TextfieldController {
virtual void UpdateContextMenu(ui::SimpleMenuModel* menu_contents) {}
// Returns true if the |command_id| should be enabled in the context menu.
- virtual bool IsCommandIdEnabled(int command_id) const;
+ virtual bool IsCommandIdEnabled(int command_id) const { return false; }
sky 2012/06/07 22:26:16 It's my understanding you shouldn't do this. Only
msw 2012/06/07 23:44:06 You're right, it's in our style guide! Reverted th
// Execute context menu command specified by |command_id|.
virtual void ExecuteCommand(int command_id) {}
« no previous file with comments | « ui/views/controls/textfield/textfield.cc ('k') | ui/views/controls/textfield/textfield_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698