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

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: file restored 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 bool IsStatusIconSupported() const OVERRIDE;
51 virtual scoped_ptr<StatusIconLinux> CreateLinuxStatusIcon() const OVERRIDE;
50 52
51 private: 53 private:
52 typedef std::map<int, SkColor> ColorMap; 54 typedef std::map<int, SkColor> ColorMap;
53 typedef std::map<int, color_utils::HSL> TintMap; 55 typedef std::map<int, color_utils::HSL> TintMap;
54 typedef std::map<int, gfx::Image> ImageCache; 56 typedef std::map<int, gfx::Image> ImageCache;
55 57
56 // This method returns the colors webkit will use for the scrollbars. When no 58 // 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 59 // colors are specified by the GTK+ theme, this function averages of the
58 // thumb part and of the track colors. 60 // thumb part and of the track colors.
59 void GetScrollbarColors(GdkColor* thumb_active_color, 61 void GetScrollbarColors(GdkColor* thumb_active_color,
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 } // namespace libgtk2ui 164 } // namespace libgtk2ui
163 165
164 // Access point to the GTK2 desktop system. This should be the only symbol that 166 // Access point to the GTK2 desktop system. This should be the only symbol that
165 // is exported in the library; everything else should be used through the 167 // is exported in the library; everything else should be used through the
166 // interface, because eventually this .so will be loaded through dlopen at 168 // interface, because eventually this .so will be loaded through dlopen at
167 // runtime so our main binary can conditionally load GTK2 or GTK3 or EFL or 169 // runtime so our main binary can conditionally load GTK2 or GTK3 or EFL or
168 // QT or whatever. 170 // QT or whatever.
169 LIBGTK2UI_EXPORT ui::LinuxUI* BuildGtk2UI(); 171 LIBGTK2UI_EXPORT ui::LinuxUI* BuildGtk2UI();
170 172
171 #endif // CHROME_BROWSER_UI_LIBGTK2UI_GTK2_UI_H_ 173 #endif // CHROME_BROWSER_UI_LIBGTK2UI_GTK2_UI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698