OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 19 matching lines...) Expand all Loading... |
30 // | 30 // |
31 class Gtk2UI : public ui::LinuxUI { | 31 class Gtk2UI : public ui::LinuxUI { |
32 public: | 32 public: |
33 Gtk2UI(); | 33 Gtk2UI(); |
34 virtual ~Gtk2UI(); | 34 virtual ~Gtk2UI(); |
35 | 35 |
36 // ui::LinuxUI: | 36 // ui::LinuxUI: |
37 virtual bool UseNativeTheme() const OVERRIDE; | 37 virtual bool UseNativeTheme() const OVERRIDE; |
38 virtual gfx::Image* GetThemeImageNamed(int id) const OVERRIDE; | 38 virtual gfx::Image* GetThemeImageNamed(int id) const OVERRIDE; |
39 virtual bool GetColor(int id, SkColor* color) const OVERRIDE; | 39 virtual bool GetColor(int id, SkColor* color) const OVERRIDE; |
| 40 virtual ui::SelectFileDialog* CreateSelectFileDialog( |
| 41 ui::SelectFileDialog::Listener* listener, |
| 42 ui::SelectFilePolicy* policy) const OVERRIDE; |
40 | 43 |
41 private: | 44 private: |
42 typedef std::map<int, SkColor> ColorMap; | 45 typedef std::map<int, SkColor> ColorMap; |
43 typedef std::map<int, color_utils::HSL> TintMap; | 46 typedef std::map<int, color_utils::HSL> TintMap; |
44 typedef std::map<int, gfx::Image*> ImageCache; | 47 typedef std::map<int, gfx::Image*> ImageCache; |
45 | 48 |
46 // This method returns the colors webkit will use for the scrollbars. When no | 49 // This method returns the colors webkit will use for the scrollbars. When no |
47 // colors are specified by the GTK+ theme, this function averages of the | 50 // colors are specified by the GTK+ theme, this function averages of the |
48 // thumb part and of the track colors. | 51 // thumb part and of the track colors. |
49 void GetScrollbarColors(GdkColor* thumb_active_color, | 52 void GetScrollbarColors(GdkColor* thumb_active_color, |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 } // namespace libgtk2ui | 150 } // namespace libgtk2ui |
148 | 151 |
149 // Access point to the GTK2 desktop system. This should be the only symbol that | 152 // Access point to the GTK2 desktop system. This should be the only symbol that |
150 // is exported in the library; everything else should be used through the | 153 // is exported in the library; everything else should be used through the |
151 // interface, because eventually this .so will be loaded through dlopen at | 154 // interface, because eventually this .so will be loaded through dlopen at |
152 // runtime so our main binary can conditionally load GTK2 or GTK3 or EFL or | 155 // runtime so our main binary can conditionally load GTK2 or GTK3 or EFL or |
153 // QT or whatever. | 156 // QT or whatever. |
154 LIBGTK2UI_EXPORT ui::LinuxUI* BuildGtk2UI(); | 157 LIBGTK2UI_EXPORT ui::LinuxUI* BuildGtk2UI(); |
155 | 158 |
156 #endif // CHROME_BROWSER_UI_LIBGTK2UI_GTK2_UI_H_ | 159 #endif // CHROME_BROWSER_UI_LIBGTK2UI_GTK2_UI_H_ |
OLD | NEW |