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

Unified Diff: chrome/browser/ui/libgtk2ui/gtk2_ui.h

Issue 400193004: Unify desktop Linux and Chrome OS font rendering params. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use initializer list Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/libgtk2ui/gtk2_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/libgtk2ui/gtk2_ui.h
diff --git a/chrome/browser/ui/libgtk2ui/gtk2_ui.h b/chrome/browser/ui/libgtk2ui/gtk2_ui.h
index a750b11e1bedf44329d6d8ec2c924528c421b210..2a16c733cbc7002fe81dfb7d1d8e9984044a6118 100644
--- a/chrome/browser/ui/libgtk2ui/gtk2_ui.h
+++ b/chrome/browser/ui/libgtk2ui/gtk2_ui.h
@@ -10,6 +10,7 @@
#include "base/basictypes.h"
#include "base/compiler_specific.h"
+#include "base/memory/scoped_ptr.h"
#include "base/observer_list.h"
#include "chrome/browser/ui/libgtk2ui/gtk2_signal.h"
#include "chrome/browser/ui/libgtk2ui/gtk2_signal_registrar.h"
@@ -29,6 +30,7 @@ class SkBitmap;
namespace gfx {
class Image;
+class ScopedPangoFontDescription;
}
namespace libgtk2ui {
@@ -65,11 +67,9 @@ class Gtk2UI : public views::LinuxUI {
ui::LinuxInputMethodContextDelegate* delegate) const OVERRIDE;
// gfx::LinuxFontDelegate:
- virtual bool UseAntialiasing() const OVERRIDE;
- virtual gfx::FontRenderParams::Hinting GetHintingStyle() const OVERRIDE;
- virtual gfx::FontRenderParams::SubpixelRendering
- GetSubpixelRenderingStyle() const OVERRIDE;
- virtual std::string GetDefaultFontDescription() const OVERRIDE;
+ virtual gfx::FontRenderParams GetDefaultFontRenderParams() const OVERRIDE;
+ virtual scoped_ptr<gfx::ScopedPangoFontDescription>
+ GetDefaultPangoFontDescription() const OVERRIDE;
virtual double GetFontDPI() const OVERRIDE;
// ui::LinuxShellDialog:
@@ -227,7 +227,7 @@ class Gtk2UI : public views::LinuxUI {
SkColor inactive_selection_fg_color_;
// Pango description for the default UI font.
- std::string default_font_description_;
+ scoped_ptr<gfx::ScopedPangoFontDescription> default_font_description_;
#if defined(USE_GCONF)
// Currently, the only source of window button configuration. This will
« no previous file with comments | « no previous file | chrome/browser/ui/libgtk2ui/gtk2_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698