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

Side by Side Diff: ui/base/theme_provider.h

Issue 7569005: Rename UI_API to UI_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 | « ui/base/text/text_elider.h ('k') | ui/base/ui_base_paths.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 UI_BASE_THEME_PROVIDER_H_ 5 #ifndef UI_BASE_THEME_PROVIDER_H_
6 #define UI_BASE_THEME_PROVIDER_H_ 6 #define UI_BASE_THEME_PROVIDER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "third_party/skia/include/core/SkColor.h" 10 #include "third_party/skia/include/core/SkColor.h"
11 #include "ui/ui_api.h" 11 #include "ui/base/ui_export.h"
12 12
13 #if defined(OS_MACOSX) 13 #if defined(OS_MACOSX)
14 #ifdef __OBJC__ 14 #ifdef __OBJC__
15 @class NSColor; 15 @class NSColor;
16 @class NSGradient; 16 @class NSGradient;
17 @class NSImage; 17 @class NSImage;
18 #else 18 #else
19 class NSColor; 19 class NSColor;
20 class NSGradient; 20 class NSGradient;
21 class NSImage; 21 class NSImage;
(...skipping 11 matching lines...) Expand all
33 33
34 //////////////////////////////////////////////////////////////////////////////// 34 ////////////////////////////////////////////////////////////////////////////////
35 // 35 //
36 // ThemeProvider 36 // ThemeProvider
37 // 37 //
38 // ThemeProvider is an abstract class that defines the API that should be 38 // ThemeProvider is an abstract class that defines the API that should be
39 // implemented to provide bitmaps and color information for a given theme. 39 // implemented to provide bitmaps and color information for a given theme.
40 // 40 //
41 //////////////////////////////////////////////////////////////////////////////// 41 ////////////////////////////////////////////////////////////////////////////////
42 42
43 class UI_API ThemeProvider { 43 class UI_EXPORT ThemeProvider {
44 public: 44 public:
45 virtual ~ThemeProvider(); 45 virtual ~ThemeProvider();
46 46
47 // TODO(beng): This dependency is horrible! 47 // TODO(beng): This dependency is horrible!
48 // Initialize the provider with the passed in profile. 48 // Initialize the provider with the passed in profile.
49 virtual void Init(Profile* profile) = 0; 49 virtual void Init(Profile* profile) = 0;
50 50
51 // Get the bitmap specified by |id|. An implementation of ThemeProvider should 51 // Get the bitmap specified by |id|. An implementation of ThemeProvider should
52 // have its own source of ids (e.g. an enum, or external resource bundle). 52 // have its own source of ids (e.g. an enum, or external resource bundle).
53 virtual SkBitmap* GetBitmapNamed(int id) const = 0; 53 virtual SkBitmap* GetBitmapNamed(int id) const = 0;
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 virtual GdkPixbuf* GetPixbufNamed(int id) const = 0; 112 virtual GdkPixbuf* GetPixbufNamed(int id) const = 0;
113 113
114 // As above, but flips it in RTL locales. 114 // As above, but flips it in RTL locales.
115 virtual GdkPixbuf* GetRTLEnabledPixbufNamed(int id) const = 0; 115 virtual GdkPixbuf* GetRTLEnabledPixbufNamed(int id) const = 0;
116 #endif 116 #endif
117 }; 117 };
118 118
119 } // namespace ui 119 } // namespace ui
120 120
121 #endif // UI_BASE_THEME_PROVIDER_H_ 121 #endif // UI_BASE_THEME_PROVIDER_H_
OLDNEW
« no previous file with comments | « ui/base/text/text_elider.h ('k') | ui/base/ui_base_paths.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698