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

Side by Side Diff: gfx/platform_font_gtk.h

Issue 3522004: FBTF: Move ctors/dtors into implementation files. Adds ctors/dtors to non-POD structs. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 2 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 GFX_PLATFORM_FONT_GTK_ 5 #ifndef GFX_PLATFORM_FONT_GTK_
6 #define GFX_PLATFORM_FONT_GTK_ 6 #define GFX_PLATFORM_FONT_GTK_
7 #pragma once 7 #pragma once
8 8
9 #include "base/scoped_ptr.h" 9 #include "base/scoped_ptr.h"
10 #include "gfx/platform_font.h" 10 #include "gfx/platform_font.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 virtual int GetFontSize() const; 46 virtual int GetFontSize() const;
47 virtual NativeFont GetNativeFont() const; 47 virtual NativeFont GetNativeFont() const;
48 48
49 private: 49 private:
50 // Create a new instance of this object with the specified properties. Called 50 // Create a new instance of this object with the specified properties. Called
51 // from DeriveFont. 51 // from DeriveFont.
52 PlatformFontGtk(SkTypeface* typeface, 52 PlatformFontGtk(SkTypeface* typeface,
53 const std::wstring& name, 53 const std::wstring& name,
54 int size, 54 int size,
55 int style); 55 int style);
56 virtual ~PlatformFontGtk() {} 56 virtual ~PlatformFontGtk();
57 57
58 // Initialize this object. 58 // Initialize this object.
59 void InitWithNameAndSize(const std::wstring& font_name, int font_size); 59 void InitWithNameAndSize(const std::wstring& font_name, int font_size);
60 void InitWithTypefaceNameSizeAndStyle(SkTypeface* typeface, 60 void InitWithTypefaceNameSizeAndStyle(SkTypeface* typeface,
61 const std::wstring& name, 61 const std::wstring& name,
62 int size, 62 int size,
63 int style); 63 int style);
64 void InitFromPlatformFont(const PlatformFontGtk* other); 64 void InitFromPlatformFont(const PlatformFontGtk* other);
65 65
66 // Potentially slow call to get pango metrics (average width, underline info). 66 // Potentially slow call to get pango metrics (average width, underline info).
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 double underline_thickness_; 102 double underline_thickness_;
103 103
104 // The default font, used for the default constructor. 104 // The default font, used for the default constructor.
105 static Font* default_font_; 105 static Font* default_font_;
106 }; 106 };
107 107
108 } // namespace gfx 108 } // namespace gfx
109 109
110 #endif // GFX_PLATFORM_FONT_GTK_ 110 #endif // GFX_PLATFORM_FONT_GTK_
111 111
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698