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

Side by Side Diff: views/controls/link.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/label.h ('k') | views/controls/menu/menu.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_LINK_H_ 5 #ifndef VIEWS_CONTROLS_LINK_H_
6 #define VIEWS_CONTROLS_LINK_H_ 6 #define VIEWS_CONTROLS_LINK_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "views/controls/label.h" 11 #include "views/controls/label.h"
12 12
13 namespace views { 13 namespace views {
14 14
15 class LinkListener; 15 class LinkListener;
16 16
17 //////////////////////////////////////////////////////////////////////////////// 17 ////////////////////////////////////////////////////////////////////////////////
18 // 18 //
19 // Link class 19 // Link class
20 // 20 //
21 // A Link is a label subclass that looks like an HTML link. It has a 21 // A Link is a label subclass that looks like an HTML link. It has a
22 // controller which is notified when a click occurs. 22 // controller which is notified when a click occurs.
23 // 23 //
24 //////////////////////////////////////////////////////////////////////////////// 24 ////////////////////////////////////////////////////////////////////////////////
25 class VIEWS_API Link : public Label { 25 class VIEWS_EXPORT Link : public Label {
26 public: 26 public:
27 Link(); 27 Link();
28 explicit Link(const std::wstring& title); 28 explicit Link(const std::wstring& title);
29 virtual ~Link(); 29 virtual ~Link();
30 30
31 const LinkListener* listener() { return listener_; } 31 const LinkListener* listener() { return listener_; }
32 void set_listener(LinkListener* listener) { listener_ = listener; } 32 void set_listener(LinkListener* listener) { listener_ = listener; }
33 33
34 // Overridden from View: 34 // Overridden from View:
35 virtual void OnEnabledChanged() OVERRIDE; 35 virtual void OnEnabledChanged() OVERRIDE;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 80
81 // The color when the link is neither highlighted nor disabled. 81 // The color when the link is neither highlighted nor disabled.
82 SkColor normal_color_; 82 SkColor normal_color_;
83 83
84 DISALLOW_COPY_AND_ASSIGN(Link); 84 DISALLOW_COPY_AND_ASSIGN(Link);
85 }; 85 };
86 86
87 } // namespace views 87 } // namespace views
88 88
89 #endif // VIEWS_CONTROLS_LINK_H_ 89 #endif // VIEWS_CONTROLS_LINK_H_
OLDNEW
« no previous file with comments | « views/controls/label.h ('k') | views/controls/menu/menu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698