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

Side by Side Diff: views/controls/label.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/image_view.h ('k') | views/controls/link.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_LABEL_H_ 5 #ifndef VIEWS_CONTROLS_LABEL_H_
6 #define VIEWS_CONTROLS_LABEL_H_ 6 #define VIEWS_CONTROLS_LABEL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/gtest_prod_util.h" 11 #include "base/gtest_prod_util.h"
12 #include "googleurl/src/gurl.h" 12 #include "googleurl/src/gurl.h"
13 #include "third_party/skia/include/core/SkColor.h" 13 #include "third_party/skia/include/core/SkColor.h"
14 #include "ui/gfx/font.h" 14 #include "ui/gfx/font.h"
15 #include "views/view.h" 15 #include "views/view.h"
16 16
17 namespace views { 17 namespace views {
18 18
19 ///////////////////////////////////////////////////////////////////////////// 19 /////////////////////////////////////////////////////////////////////////////
20 // 20 //
21 // Label class 21 // Label class
22 // 22 //
23 // A label is a view subclass that can display a string. 23 // A label is a view subclass that can display a string.
24 // 24 //
25 ///////////////////////////////////////////////////////////////////////////// 25 /////////////////////////////////////////////////////////////////////////////
26 class VIEWS_API Label : public View { 26 class VIEWS_EXPORT Label : public View {
27 public: 27 public:
28 enum Alignment { ALIGN_LEFT = 0, 28 enum Alignment { ALIGN_LEFT = 0,
29 ALIGN_CENTER, 29 ALIGN_CENTER,
30 ALIGN_RIGHT }; 30 ALIGN_RIGHT };
31 31
32 // The following enum is used to indicate whether using the Chrome UI's 32 // The following enum is used to indicate whether using the Chrome UI's
33 // alignment as the label's alignment, or autodetecting the label's 33 // alignment as the label's alignment, or autodetecting the label's
34 // alignment. 34 // alignment.
35 // 35 //
36 // If the label text originates from the Chrome UI, we should use the Chrome 36 // If the label text originates from the Chrome UI, we should use the Chrome
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 // allows this view to reserve space for a focus border that it otherwise 259 // allows this view to reserve space for a focus border that it otherwise
260 // might not have because it is not itself focusable. 260 // might not have because it is not itself focusable.
261 bool has_focus_border_; 261 bool has_focus_border_;
262 262
263 DISALLOW_COPY_AND_ASSIGN(Label); 263 DISALLOW_COPY_AND_ASSIGN(Label);
264 }; 264 };
265 265
266 } // namespace views 266 } // namespace views
267 267
268 #endif // VIEWS_CONTROLS_LABEL_H_ 268 #endif // VIEWS_CONTROLS_LABEL_H_
OLDNEW
« no previous file with comments | « views/controls/image_view.h ('k') | views/controls/link.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698