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

Side by Side Diff: content/common/mac/font_descriptor.h

Issue 10696166: Remove #pragma once from content (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
« no previous file with comments | « content/common/mac/attributed_string_coder.h ('k') | content/common/mac/font_loader.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_COMMON_MAC_FONT_DESCRIPTOR_H_ 5 #ifndef CONTENT_COMMON_MAC_FONT_DESCRIPTOR_H_
6 #define CONTENT_COMMON_MAC_FONT_DESCRIPTOR_H_ 6 #define CONTENT_COMMON_MAC_FONT_DESCRIPTOR_H_
7 #pragma once
8 7
9 #include "base/string16.h" 8 #include "base/string16.h"
10 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
11 10
12 #ifdef __OBJC__ 11 #ifdef __OBJC__
13 @class NSFont; 12 @class NSFont;
14 #else 13 #else
15 class NSFont; 14 class NSFont;
16 #endif 15 #endif
17 16
18 // Container to allow serializing an NSFont over IPC. 17 // Container to allow serializing an NSFont over IPC.
19 struct CONTENT_EXPORT FontDescriptor { 18 struct CONTENT_EXPORT FontDescriptor {
20 explicit FontDescriptor(NSFont* font); 19 explicit FontDescriptor(NSFont* font);
21 FontDescriptor(string16 name, float size); 20 FontDescriptor(string16 name, float size);
22 21
23 FontDescriptor() : font_point_size(0) {} 22 FontDescriptor() : font_point_size(0) {}
24 23
25 // Return an autoreleased NSFont corresponding to the font description. 24 // Return an autoreleased NSFont corresponding to the font description.
26 NSFont* ToNSFont() const; 25 NSFont* ToNSFont() const;
27 26
28 // Name of the font. 27 // Name of the font.
29 string16 font_name; 28 string16 font_name;
30 29
31 // Size in points. 30 // Size in points.
32 float font_point_size; 31 float font_point_size;
33 }; 32 };
34 33
35 #endif // CONTENT_COMMON_MAC_FONT_DESCRIPTOR_H_ 34 #endif // CONTENT_COMMON_MAC_FONT_DESCRIPTOR_H_
OLDNEW
« no previous file with comments | « content/common/mac/attributed_string_coder.h ('k') | content/common/mac/font_loader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698