OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |