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

Side by Side Diff: views/controls/button/button.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/context_menu_controller.h ('k') | views/controls/button/button_dropdown.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_H_ 5 #ifndef VIEWS_CONTROLS_BUTTON_BUTTON_H_
6 #define VIEWS_CONTROLS_BUTTON_BUTTON_H_ 6 #define VIEWS_CONTROLS_BUTTON_BUTTON_H_
7 #pragma once 7 #pragma once
8 8
9 #include "views/view.h" 9 #include "views/view.h"
10 10
11 namespace views { 11 namespace views {
12 12
13 class Button; 13 class Button;
14 class Event; 14 class Event;
15 15
16 // An interface implemented by an object to let it know that a button was 16 // An interface implemented by an object to let it know that a button was
17 // pressed. 17 // pressed.
18 class VIEWS_API ButtonListener { 18 class VIEWS_EXPORT ButtonListener {
19 public: 19 public:
20 virtual void ButtonPressed(Button* sender, const views::Event& event) = 0; 20 virtual void ButtonPressed(Button* sender, const views::Event& event) = 0;
21 21
22 protected: 22 protected:
23 virtual ~ButtonListener() {} 23 virtual ~ButtonListener() {}
24 }; 24 };
25 25
26 // A View representing a button. Depending on the specific type, the button 26 // A View representing a button. Depending on the specific type, the button
27 // could be implemented by a native control or custom rendered. 27 // could be implemented by a native control or custom rendered.
28 class VIEWS_API Button : public View { 28 class VIEWS_EXPORT Button : public View {
29 public: 29 public:
30 virtual ~Button(); 30 virtual ~Button();
31 31
32 void SetTooltipText(const std::wstring& tooltip_text); 32 void SetTooltipText(const std::wstring& tooltip_text);
33 33
34 int tag() const { return tag_; } 34 int tag() const { return tag_; }
35 void set_tag(int tag) { tag_ = tag; } 35 void set_tag(int tag) { tag_ = tag; }
36 36
37 int mouse_event_flags() const { return mouse_event_flags_; } 37 int mouse_event_flags() const { return mouse_event_flags_; }
38 38
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 70
71 // Event flags present when the button was clicked. 71 // Event flags present when the button was clicked.
72 int mouse_event_flags_; 72 int mouse_event_flags_;
73 73
74 DISALLOW_COPY_AND_ASSIGN(Button); 74 DISALLOW_COPY_AND_ASSIGN(Button);
75 }; 75 };
76 76
77 } // namespace views 77 } // namespace views
78 78
79 #endif // VIEWS_CONTROLS_BUTTON_BUTTON_H_ 79 #endif // VIEWS_CONTROLS_BUTTON_BUTTON_H_
OLDNEW
« no previous file with comments | « views/context_menu_controller.h ('k') | views/controls/button/button_dropdown.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698