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

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

Issue 18334003: Linux status icon for Ubuntu Unity (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 5 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_GTK2_UI_H_ 5 #ifndef CHROME_BROWSER_UI_LIBGTK2UI_GTK2_UI_H_
6 #define CHROME_BROWSER_UI_LIBGTK2UI_GTK2_UI_H_ 6 #define CHROME_BROWSER_UI_LIBGTK2UI_GTK2_UI_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 29 matching lines...) Expand all
40 40
41 // ui::LinuxUI: 41 // ui::LinuxUI:
42 virtual bool UseNativeTheme() const OVERRIDE; 42 virtual bool UseNativeTheme() const OVERRIDE;
43 virtual gfx::Image GetThemeImageNamed(int id) const OVERRIDE; 43 virtual gfx::Image GetThemeImageNamed(int id) const OVERRIDE;
44 virtual bool GetColor(int id, SkColor* color) const OVERRIDE; 44 virtual bool GetColor(int id, SkColor* color) const OVERRIDE;
45 virtual bool HasCustomImage(int id) const OVERRIDE; 45 virtual bool HasCustomImage(int id) const OVERRIDE;
46 virtual ui::NativeTheme* GetNativeTheme() const OVERRIDE; 46 virtual ui::NativeTheme* GetNativeTheme() const OVERRIDE;
47 virtual bool GetDefaultUsesSystemTheme() const OVERRIDE; 47 virtual bool GetDefaultUsesSystemTheme() const OVERRIDE;
48 virtual void SetDownloadCount(int count) const OVERRIDE; 48 virtual void SetDownloadCount(int count) const OVERRIDE;
49 virtual void SetProgressFraction(float percentage) const OVERRIDE; 49 virtual void SetProgressFraction(float percentage) const OVERRIDE;
50 virtual StatusIconLinux* CreateLinuxStatusIcon() const OVERRIDE;
50 51
51 private: 52 private:
52 typedef std::map<int, SkColor> ColorMap; 53 typedef std::map<int, SkColor> ColorMap;
53 typedef std::map<int, color_utils::HSL> TintMap; 54 typedef std::map<int, color_utils::HSL> TintMap;
54 typedef std::map<int, gfx::Image> ImageCache; 55 typedef std::map<int, gfx::Image> ImageCache;
55 56
56 // This method returns the colors webkit will use for the scrollbars. When no 57 // This method returns the colors webkit will use for the scrollbars. When no
57 // colors are specified by the GTK+ theme, this function averages of the 58 // colors are specified by the GTK+ theme, this function averages of the
58 // thumb part and of the track colors. 59 // thumb part and of the track colors.
59 void GetScrollbarColors(GdkColor* thumb_active_color, 60 void GetScrollbarColors(GdkColor* thumb_active_color,
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 } // namespace libgtk2ui 162 } // namespace libgtk2ui
162 163
163 // Access point to the GTK2 desktop system. This should be the only symbol that 164 // Access point to the GTK2 desktop system. This should be the only symbol that
164 // is exported in the library; everything else should be used through the 165 // is exported in the library; everything else should be used through the
165 // interface, because eventually this .so will be loaded through dlopen at 166 // interface, because eventually this .so will be loaded through dlopen at
166 // runtime so our main binary can conditionally load GTK2 or GTK3 or EFL or 167 // runtime so our main binary can conditionally load GTK2 or GTK3 or EFL or
167 // QT or whatever. 168 // QT or whatever.
168 LIBGTK2UI_EXPORT ui::LinuxUI* BuildGtk2UI(); 169 LIBGTK2UI_EXPORT ui::LinuxUI* BuildGtk2UI();
169 170
170 #endif // CHROME_BROWSER_UI_LIBGTK2UI_GTK2_UI_H_ 171 #endif // CHROME_BROWSER_UI_LIBGTK2UI_GTK2_UI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698