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

Side by Side Diff: chrome/browser/ui/libgtkui/native_theme_gtk3.h

Issue 2585893002: Gtk3: Fix various menu colors (Closed)
Patch Set: Created 4 years 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 CHROME_BROWSER_UI_LIBGTKUI_NATIVE_THEME_GTK3_H_ 5 #ifndef CHROME_BROWSER_UI_LIBGTKUI_NATIVE_THEME_GTK3_H_
6 #define CHROME_BROWSER_UI_LIBGTKUI_NATIVE_THEME_GTK3_H_ 6 #define CHROME_BROWSER_UI_LIBGTKUI_NATIVE_THEME_GTK3_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "ui/native_theme/native_theme_base.h" 9 #include "ui/native_theme/native_theme_base.h"
10 10
(...skipping 15 matching lines...) Expand all
26 void PaintMenuItemBackground( 26 void PaintMenuItemBackground(
27 SkCanvas* canvas, 27 SkCanvas* canvas,
28 State state, 28 State state,
29 const gfx::Rect& rect, 29 const gfx::Rect& rect,
30 const MenuItemExtraParams& menu_item) const override; 30 const MenuItemExtraParams& menu_item) const override;
31 31
32 private: 32 private:
33 NativeThemeGtk3(); 33 NativeThemeGtk3();
34 ~NativeThemeGtk3() override; 34 ~NativeThemeGtk3() override;
35 35
36 SkColor LookupGtkThemeColor(ColorId color_id) const;
37
36 // Returns various widgets for theming use. 38 // Returns various widgets for theming use.
37 // TODO(thomasanderson): Remove all of these. 39 // TODO(thomasanderson): Remove all of these.
38 GtkWidget* GetWindow() const; 40 GtkWidget* GetWindow() const;
39 GtkWidget* GetEntry() const; 41 GtkWidget* GetEntry() const;
40 GtkWidget* GetLabel() const; 42 GtkWidget* GetLabel() const;
41 GtkWidget* GetButton() const; 43 GtkWidget* GetButton() const;
42 GtkWidget* GetBlueButton() const; 44 GtkWidget* GetBlueButton() const;
43 GtkWidget* GetTree() const; 45 GtkWidget* GetTree() const;
44 GtkWidget* GetTooltip() const; 46 GtkWidget* GetTooltip() const;
45 GtkWidget* GetMenu() const; 47 GtkWidget* GetMenu() const;
46 GtkWidget* GetMenuItem() const; 48 GtkWidget* GetMenuItem() const;
47 49
48 DISALLOW_COPY_AND_ASSIGN(NativeThemeGtk3); 50 DISALLOW_COPY_AND_ASSIGN(NativeThemeGtk3);
49 }; 51 };
50 52
51 } // namespace libgtkui 53 } // namespace libgtkui
52 54
53 #endif // CHROME_BROWSER_UI_LIBGTKUI_NATIVE_THEME_GTK3_H_ 55 #endif // CHROME_BROWSER_UI_LIBGTKUI_NATIVE_THEME_GTK3_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/libgtkui/native_theme_gtk3.cc » ('j') | chrome/browser/ui/libgtkui/native_theme_gtk3.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698