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

Side by Side Diff: ui/gfx/platform_font.h

Issue 7328011: Introduce ui.dll / libui.so for the component build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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
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_GFX_PLATFORM_FONT_ 5 #ifndef UI_GFX_PLATFORM_FONT_
6 #define UI_GFX_PLATFORM_FONT_ 6 #define UI_GFX_PLATFORM_FONT_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/string16.h" 12 #include "base/string16.h"
13 #include "ui/gfx/native_widget_types.h" 13 #include "ui/gfx/native_widget_types.h"
14 #include "ui/ui_api.h"
14 15
15 namespace gfx { 16 namespace gfx {
16 17
17 class Font; 18 class Font;
18 19
19 class PlatformFont : public base::RefCounted<PlatformFont> { 20 class UI_API PlatformFont : public base::RefCounted<PlatformFont> {
20 public: 21 public:
21 // Create an appropriate PlatformFont implementation. 22 // Create an appropriate PlatformFont implementation.
22 static PlatformFont* CreateDefault(); 23 static PlatformFont* CreateDefault();
23 static PlatformFont* CreateFromFont(const Font& other); 24 static PlatformFont* CreateFromFont(const Font& other);
24 static PlatformFont* CreateFromNativeFont(NativeFont native_font); 25 static PlatformFont* CreateFromNativeFont(NativeFont native_font);
25 static PlatformFont* CreateFromNameAndSize(const string16& font_name, 26 static PlatformFont* CreateFromNameAndSize(const string16& font_name,
26 int font_size); 27 int font_size);
27 28
28 // Returns a new Font derived from the existing font. 29 // Returns a new Font derived from the existing font.
29 // size_delta is the size to add to the current font. See the single 30 // size_delta is the size to add to the current font. See the single
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 virtual ~PlatformFont() {} 71 virtual ~PlatformFont() {}
71 72
72 private: 73 private:
73 friend class base::RefCounted<PlatformFont>; 74 friend class base::RefCounted<PlatformFont>;
74 }; 75 };
75 76
76 } // namespace gfx 77 } // namespace gfx
77 78
78 #endif // UI_GFX_PLATFORM_FONT_ 79 #endif // UI_GFX_PLATFORM_FONT_
79 80
OLDNEW
« no previous file with comments | « ui/gfx/path.h ('k') | ui/gfx/platform_font_win.h » ('j') | ui/ui.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698