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

Unified Diff: chrome/browser/ui/libgtkui/gtk_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, 1 month 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/libgtkui/gtk_ui.cc » ('j') | chrome/browser/ui/libgtkui/gtk_ui.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/libgtkui/gtk_ui.h
diff --git a/chrome/browser/ui/libgtkui/gtk_ui.h b/chrome/browser/ui/libgtkui/gtk_ui.h
index c15bf00ed94855fbc4004b03572f017544220fa9..108c46270f268df1cf63caba742ae07e5ca22ded 100644
--- a/chrome/browser/ui/libgtkui/gtk_ui.h
+++ b/chrome/browser/ui/libgtkui/gtk_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;
Evan Stade 2016/11/03 16:38:03 seems like we should init things in the same place
oshima 2016/11/05 15:15:05 I moved default_font_xxx to the header.
DISALLOW_COPY_AND_ASSIGN(Gtk2UI);
};
« no previous file with comments | « no previous file | chrome/browser/ui/libgtkui/gtk_ui.cc » ('j') | chrome/browser/ui/libgtkui/gtk_ui.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698