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

Side by Side Diff: ui/views/controls/textfield/textfield_controller.h

Issue 1499793003: Fix classes that have too many virtuals for inline constructors. Base URL: https://chromium.googlesource.com/chromium/src.git@enable-virtuals-as-complexity
Patch Set: Finish fixing the codebase that's accessible from Linux. Created 5 years 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_CONTROLLER_H_ 5 #ifndef UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_CONTROLLER_H_
6 #define UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_CONTROLLER_H_ 6 #define UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_CONTROLLER_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 // Called when a drop of dragged data happens on the textfield. This method is 73 // Called when a drop of dragged data happens on the textfield. This method is
74 // called before regular handling of the drop. If this returns a drag 74 // called before regular handling of the drop. If this returns a drag
75 // operation other than |ui::DragDropTypes::DRAG_NONE|, regular handling is 75 // operation other than |ui::DragDropTypes::DRAG_NONE|, regular handling is
76 // skipped. 76 // skipped.
77 virtual int OnDrop(const ui::OSExchangeData& data); 77 virtual int OnDrop(const ui::OSExchangeData& data);
78 78
79 // Gives the controller a chance to modify the context menu contents. 79 // Gives the controller a chance to modify the context menu contents.
80 virtual void UpdateContextMenu(ui::SimpleMenuModel* menu_contents) {} 80 virtual void UpdateContextMenu(ui::SimpleMenuModel* menu_contents) {}
81 81
82 protected: 82 protected:
83 TextfieldController() = default;
83 virtual ~TextfieldController() {} 84 virtual ~TextfieldController() {}
84 }; 85 };
85 86
86 } // namespace views 87 } // namespace views
87 88
88 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_CONTROLLER_H_ 89 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698