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

Side by Side Diff: views/controls/button/button_dropdown.h

Issue 7550038: Rename VIEWS_API to VIEWS_EXPORT. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « views/controls/button/button.h ('k') | views/controls/button/checkbox.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 VIEWS_CONTROLS_BUTTON_BUTTON_DROPDOWN_H_ 5 #ifndef VIEWS_CONTROLS_BUTTON_BUTTON_DROPDOWN_H_
6 #define VIEWS_CONTROLS_BUTTON_BUTTON_DROPDOWN_H_ 6 #define VIEWS_CONTROLS_BUTTON_BUTTON_DROPDOWN_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/task.h" 9 #include "base/task.h"
10 #include "views/controls/button/image_button.h" 10 #include "views/controls/button/image_button.h"
11 11
12 namespace ui { 12 namespace ui {
13 class MenuModel; 13 class MenuModel;
14 } // namespace ui 14 } // namespace ui
15 15
16 namespace views { 16 namespace views {
17 17
18 //////////////////////////////////////////////////////////////////////////////// 18 ////////////////////////////////////////////////////////////////////////////////
19 // 19 //
20 // ButtonDropDown 20 // ButtonDropDown
21 // 21 //
22 // A button class that when pressed (and held) or pressed (and drag down) will 22 // A button class that when pressed (and held) or pressed (and drag down) will
23 // display a menu 23 // display a menu
24 // 24 //
25 //////////////////////////////////////////////////////////////////////////////// 25 ////////////////////////////////////////////////////////////////////////////////
26 class VIEWS_API ButtonDropDown : public ImageButton { 26 class VIEWS_EXPORT ButtonDropDown : public ImageButton {
27 public: 27 public:
28 // The button's class name. 28 // The button's class name.
29 static const char kViewClassName[]; 29 static const char kViewClassName[];
30 30
31 ButtonDropDown(ButtonListener* listener, ui::MenuModel* model); 31 ButtonDropDown(ButtonListener* listener, ui::MenuModel* model);
32 virtual ~ButtonDropDown(); 32 virtual ~ButtonDropDown();
33 33
34 // Overridden from views::View 34 // Overridden from views::View
35 virtual bool OnMousePressed(const MouseEvent& event) OVERRIDE; 35 virtual bool OnMousePressed(const MouseEvent& event) OVERRIDE;
36 virtual bool OnMouseDragged(const MouseEvent& event) OVERRIDE; 36 virtual bool OnMouseDragged(const MouseEvent& event) OVERRIDE;
(...skipping 27 matching lines...) Expand all
64 64
65 // A factory for tasks that show the dropdown context menu for the button. 65 // A factory for tasks that show the dropdown context menu for the button.
66 ScopedRunnableMethodFactory<ButtonDropDown> show_menu_factory_; 66 ScopedRunnableMethodFactory<ButtonDropDown> show_menu_factory_;
67 67
68 DISALLOW_COPY_AND_ASSIGN(ButtonDropDown); 68 DISALLOW_COPY_AND_ASSIGN(ButtonDropDown);
69 }; 69 };
70 70
71 } // namespace views 71 } // namespace views
72 72
73 #endif // VIEWS_CONTROLS_BUTTON_BUTTON_DROPDOWN_H_ 73 #endif // VIEWS_CONTROLS_BUTTON_BUTTON_DROPDOWN_H_
OLDNEW
« no previous file with comments | « views/controls/button/button.h ('k') | views/controls/button/checkbox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698