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

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

Issue 2441043002: [linux] Allow font to use below 1.0f scale (Closed)
Patch Set: Allow font to use below 1.0f scale Created 4 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 side-by-side diff with in-line comments
Download patch
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 e883e658594795a1dd8a390ef7624b9160c9a5fb..5f4b67c776342381092e9166fc56cc536105546e 100644
--- a/chrome/browser/ui/libgtk2ui/gtk2_ui.h
+++ b/chrome/browser/ui/libgtk2ui/gtk2_ui.h
@@ -105,7 +105,7 @@ class Gtk2UI : public views::LinuxUI {
std::vector<ui::TextEditCommandAuraLinux>* commands) override;
// ui::Views::LinuxUI:
- void UpdateDeviceScaleFactor(float device_scale_factor) override;
+ void UpdateDeviceScaleFactor() override;
float GetDeviceScaleFactor() const override;
private:
@@ -200,7 +200,7 @@ class Gtk2UI : public views::LinuxUI {
// instance.
NativeThemeGetter native_theme_overrider_;
- float device_scale_factor_;
+ float device_scale_factor_ = 1.0f;
DISALLOW_COPY_AND_ASSIGN(Gtk2UI);
};

Powered by Google App Engine
This is Rietveld 408576698