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

Side by Side Diff: views/background.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/animation/bounds_animator.h ('k') | views/border.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_BACKGROUND_H_ 5 #ifndef VIEWS_BACKGROUND_H_
6 #define VIEWS_BACKGROUND_H_ 6 #define VIEWS_BACKGROUND_H_
7 #pragma once 7 #pragma once
8 8
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 10
11 #if defined(OS_WIN) 11 #if defined(OS_WIN)
12 #include <windows.h> 12 #include <windows.h>
13 #endif // defined(OS_WIN) 13 #endif // defined(OS_WIN)
14 14
15 #include "base/basictypes.h" 15 #include "base/basictypes.h"
16 #include "third_party/skia/include/core/SkColor.h" 16 #include "third_party/skia/include/core/SkColor.h"
17 #include "views/views_api.h" 17 #include "views/views_export.h"
18 18
19 namespace gfx { 19 namespace gfx {
20 class Canvas; 20 class Canvas;
21 } 21 }
22 22
23 namespace views { 23 namespace views {
24 24
25 class Painter; 25 class Painter;
26 class View; 26 class View;
27 27
28 ///////////////////////////////////////////////////////////////////////////// 28 /////////////////////////////////////////////////////////////////////////////
29 // 29 //
30 // Background class 30 // Background class
31 // 31 //
32 // A background implements a way for views to paint a background. The 32 // A background implements a way for views to paint a background. The
33 // background can be either solid or based on a gradient. Of course, 33 // background can be either solid or based on a gradient. Of course,
34 // Background can be subclassed to implement various effects. 34 // Background can be subclassed to implement various effects.
35 // 35 //
36 // Any View can have a background. See View::SetBackground() and 36 // Any View can have a background. See View::SetBackground() and
37 // View::OnPaintBackground() 37 // View::OnPaintBackground()
38 // 38 //
39 ///////////////////////////////////////////////////////////////////////////// 39 /////////////////////////////////////////////////////////////////////////////
40 class VIEWS_API Background { 40 class VIEWS_EXPORT Background {
41 public: 41 public:
42 Background(); 42 Background();
43 virtual ~Background(); 43 virtual ~Background();
44 44
45 // Creates a background that fills the canvas in the specified color. 45 // Creates a background that fills the canvas in the specified color.
46 static Background* CreateSolidBackground(const SkColor& color); 46 static Background* CreateSolidBackground(const SkColor& color);
47 47
48 // Creates a background that fills the canvas in the specified color. 48 // Creates a background that fills the canvas in the specified color.
49 static Background* CreateSolidBackground(int r, int g, int b) { 49 static Background* CreateSolidBackground(int r, int g, int b) {
50 return CreateSolidBackground(SkColorSetRGB(r, g, b)); 50 return CreateSolidBackground(SkColorSetRGB(r, g, b));
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 // TODO(port): Create portable replacement for HBRUSH. 94 // TODO(port): Create portable replacement for HBRUSH.
95 mutable HBRUSH native_control_brush_; 95 mutable HBRUSH native_control_brush_;
96 #endif // defined(OS_WIN) 96 #endif // defined(OS_WIN)
97 97
98 DISALLOW_COPY_AND_ASSIGN(Background); 98 DISALLOW_COPY_AND_ASSIGN(Background);
99 }; 99 };
100 100
101 } // namespace views 101 } // namespace views
102 102
103 #endif // VIEWS_BACKGROUND_H_ 103 #endif // VIEWS_BACKGROUND_H_
OLDNEW
« no previous file with comments | « views/animation/bounds_animator.h ('k') | views/border.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698