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

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

Issue 929733002: Fix Pango font rendering with HiDPi displays on Linux. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Pango font rendering with HiDPi displays on Linux Created 5 years, 9 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_LINUX_FONT_DELEGATE_H_ 5 #ifndef UI_GFX_LINUX_FONT_DELEGATE_H_
6 #define UI_GFX_LINUX_FONT_DELEGATE_H_ 6 #define UI_GFX_LINUX_FONT_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 10 matching lines...) Expand all
21 // Sets the dynamically loaded singleton that provides font preferences. 21 // Sets the dynamically loaded singleton that provides font preferences.
22 // This pointer is not owned, and if this method is called a second time, 22 // This pointer is not owned, and if this method is called a second time,
23 // the first instance is not deleted. 23 // the first instance is not deleted.
24 static void SetInstance(LinuxFontDelegate* instance); 24 static void SetInstance(LinuxFontDelegate* instance);
25 25
26 // Returns a LinuxFontDelegate instance for the toolkit used in 26 // Returns a LinuxFontDelegate instance for the toolkit used in
27 // the user's desktop environment. 27 // the user's desktop environment.
28 // 28 //
29 // Can return NULL, in case no toolkit has been set. (For example, if we're 29 // Can return NULL, in case no toolkit has been set. (For example, if we're
30 // running with the "--ash" flag.) 30 // running with the "--ash" flag.)
31 static const LinuxFontDelegate* instance(); 31 static LinuxFontDelegate* instance();
Daniel Erat 2015/03/19 17:11:44 this can remain const, no?
stapelberg 2015/03/19 17:20:56 Done.
32 32
33 // Returns the default font rendering settings. 33 // Returns the default font rendering settings.
34 virtual FontRenderParams GetDefaultFontRenderParams() const = 0; 34 virtual FontRenderParams GetDefaultFontRenderParams() const = 0;
35 35
36 // Returns details about the default UI font. |style_out| holds a bitfield of 36 // Returns details about the default UI font. |style_out| holds a bitfield of
37 // gfx::Font::Style values. 37 // gfx::Font::Style values.
38 virtual void GetDefaultFontDescription( 38 virtual void GetDefaultFontDescription(
39 std::string* family_out, 39 std::string* family_out,
40 int* size_pixels_out, 40 int* size_pixels_out,
41 int* style_out, 41 int* style_out,
42 FontRenderParams* params_out) const = 0; 42 FontRenderParams* params_out) const = 0;
43 }; 43 };
44 44
45 } // namespace gfx 45 } // namespace gfx
46 46
47 #endif // UI_GFX_LINUX_FONT_DELEGATE_H_ 47 #endif // UI_GFX_LINUX_FONT_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698