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

Side by Side Diff: chrome/browser/ui/libgtk2ui/native_theme_gtk2.h

Issue 1661673004: Enables hot-tracking for overflow extension buttons in the app menu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Restores hot-tracking of extension buttons in app menu with MD (comments) Created 4 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_LIBGTK2UI_NATIVE_THEME_GTK2_H_ 5 #ifndef CHROME_BROWSER_UI_LIBGTK2UI_NATIVE_THEME_GTK2_H_
6 #define CHROME_BROWSER_UI_LIBGTK2UI_NATIVE_THEME_GTK2_H_ 6 #define CHROME_BROWSER_UI_LIBGTK2UI_NATIVE_THEME_GTK2_H_
7 7
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 12 matching lines...) Expand all
23 // Overridden from ui::NativeThemeBase: 23 // Overridden from ui::NativeThemeBase:
24 SkColor GetSystemColor(ColorId color_id) const override; 24 SkColor GetSystemColor(ColorId color_id) const override;
25 void PaintMenuPopupBackground( 25 void PaintMenuPopupBackground(
26 SkCanvas* canvas, 26 SkCanvas* canvas,
27 const gfx::Size& size, 27 const gfx::Size& size,
28 const MenuBackgroundExtraParams& menu_background) const override; 28 const MenuBackgroundExtraParams& menu_background) const override;
29 void PaintMenuItemBackground( 29 void PaintMenuItemBackground(
30 SkCanvas* canvas, 30 SkCanvas* canvas,
31 State state, 31 State state,
32 const gfx::Rect& rect, 32 const gfx::Rect& rect,
33 const MenuListExtraParams& menu_list) const override; 33 const MenuItemExtraParams& menu_item) const override;
34 34
35 // Gets a ChromeGtkFrame theme color; returns true on success. Always returns 35 // Gets a ChromeGtkFrame theme color; returns true on success. Always returns
36 // false in GTK3. 36 // false in GTK3.
37 bool GetChromeStyleColor(const char* style_property, 37 bool GetChromeStyleColor(const char* style_property,
38 SkColor* ret_color) const; 38 SkColor* ret_color) const;
39 39
40 // Returns various widgets for theming use. 40 // Returns various widgets for theming use.
41 GtkWidget* GetWindow() const; 41 GtkWidget* GetWindow() const;
42 GtkWidget* GetEntry() const; 42 GtkWidget* GetEntry() const;
43 GtkWidget* GetLabel() const; 43 GtkWidget* GetLabel() const;
44 GtkWidget* GetButton() const; 44 GtkWidget* GetButton() const;
45 GtkWidget* GetBlueButton() const; 45 GtkWidget* GetBlueButton() const;
46 GtkWidget* GetTree() const; 46 GtkWidget* GetTree() const;
47 GtkWidget* GetTooltip() const; 47 GtkWidget* GetTooltip() const;
48 GtkWidget* GetMenu() const; 48 GtkWidget* GetMenu() const;
49 GtkWidget* GetMenuItem() const; 49 GtkWidget* GetMenuItem() const;
50 50
51 private: 51 private:
52 NativeThemeGtk2(); 52 NativeThemeGtk2();
53 ~NativeThemeGtk2() override; 53 ~NativeThemeGtk2() override;
54 54
55 DISALLOW_COPY_AND_ASSIGN(NativeThemeGtk2); 55 DISALLOW_COPY_AND_ASSIGN(NativeThemeGtk2);
56 }; 56 };
57 57
58 } // namespace libgtk2ui 58 } // namespace libgtk2ui
59 59
60 #endif // CHROME_BROWSER_UI_LIBGTK2UI_NATIVE_THEME_GTK2_H_ 60 #endif // CHROME_BROWSER_UI_LIBGTK2UI_NATIVE_THEME_GTK2_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc » ('j') | chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698