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

Side by Side Diff: ui/views/controls/button/menu_button.h

Issue 681753004: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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_BUTTON_MENU_BUTTON_H_ 5 #ifndef UI_VIEWS_CONTROLS_BUTTON_MENU_BUTTON_H_
6 #define UI_VIEWS_CONTROLS_BUTTON_MENU_BUTTON_H_ 6 #define UI_VIEWS_CONTROLS_BUTTON_MENU_BUTTON_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 // How much padding to put on the left and right of the menu marker. 44 // How much padding to put on the left and right of the menu marker.
45 static const int kMenuMarkerPaddingLeft; 45 static const int kMenuMarkerPaddingLeft;
46 static const int kMenuMarkerPaddingRight; 46 static const int kMenuMarkerPaddingRight;
47 47
48 // Create a Button. 48 // Create a Button.
49 MenuButton(ButtonListener* listener, 49 MenuButton(ButtonListener* listener,
50 const base::string16& text, 50 const base::string16& text,
51 MenuButtonListener* menu_button_listener, 51 MenuButtonListener* menu_button_listener,
52 bool show_menu_marker); 52 bool show_menu_marker);
53 virtual ~MenuButton(); 53 ~MenuButton() override;
54 54
55 bool show_menu_marker() const { return show_menu_marker_; } 55 bool show_menu_marker() const { return show_menu_marker_; }
56 void set_menu_marker(const gfx::ImageSkia* menu_marker) { 56 void set_menu_marker(const gfx::ImageSkia* menu_marker) {
57 menu_marker_ = menu_marker; 57 menu_marker_ = menu_marker;
58 } 58 }
59 const gfx::ImageSkia* menu_marker() const { return menu_marker_; } 59 const gfx::ImageSkia* menu_marker() const { return menu_marker_; }
60 60
61 const gfx::Point& menu_offset() const { return menu_offset_; } 61 const gfx::Point& menu_offset() const { return menu_offset_; }
62 void set_menu_offset(int x, int y) { menu_offset_.SetPoint(x, y); } 62 void set_menu_offset(int x, int y) { menu_offset_.SetPoint(x, y); }
63 63
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 int pressed_lock_count_; 128 int pressed_lock_count_;
129 129
130 base::WeakPtrFactory<MenuButton> weak_factory_; 130 base::WeakPtrFactory<MenuButton> weak_factory_;
131 131
132 DISALLOW_COPY_AND_ASSIGN(MenuButton); 132 DISALLOW_COPY_AND_ASSIGN(MenuButton);
133 }; 133 };
134 134
135 } // namespace views 135 } // namespace views
136 136
137 #endif // UI_VIEWS_CONTROLS_BUTTON_MENU_BUTTON_H_ 137 #endif // UI_VIEWS_CONTROLS_BUTTON_MENU_BUTTON_H_
OLDNEW
« no previous file with comments | « ui/views/controls/button/label_button_border.h ('k') | ui/views/controls/button/menu_button_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698