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

Unified Diff: chrome/browser/ui/libgtkui/gtk_ui.h

Issue 2480203002: ui: Cleanup class/struct forward declarations (Closed)
Patch Set: Sync CL to position 430550 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
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..e12cb2637eb1fa4d351429427ae68a16714e9140 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:
@@ -170,9 +170,10 @@ class Gtk2UI : public views::LinuxUI {
// Details about the default UI font.
std::string default_font_family_;
- int default_font_size_pixels_;
- int default_font_style_; // Bitfield of gfx::Font::Style values.
- gfx::Font::Weight default_font_weight_;
+ int default_font_size_pixels_ = 0;
+ // Bitfield of gfx::Font::Style values.
+ int default_font_style_ = gfx::Font::NORMAL;
+ gfx::Font::Weight default_font_weight_ = gfx::Font::Weight::NORMAL;
gfx::FontRenderParams default_font_render_params_;
#if defined(USE_GCONF)
@@ -200,7 +201,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);
};
« no previous file with comments | « chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm ('k') | chrome/browser/ui/libgtkui/gtk_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698