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

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

Issue 17494005: linux_aura: Three fixes for switching themes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup Created 7 years, 6 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 | Annotate | Revision Log
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 24 matching lines...) Expand all
35 35
36 // ui::LinuxShellDialog: 36 // ui::LinuxShellDialog:
37 virtual ui::SelectFileDialog* CreateSelectFileDialog( 37 virtual ui::SelectFileDialog* CreateSelectFileDialog(
38 ui::SelectFileDialog::Listener* listener, 38 ui::SelectFileDialog::Listener* listener,
39 ui::SelectFilePolicy* policy) const OVERRIDE; 39 ui::SelectFilePolicy* policy) const OVERRIDE;
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 ui::NativeTheme* GetNativeTheme() const OVERRIDE; 46 virtual ui::NativeTheme* GetNativeTheme() const OVERRIDE;
47 virtual bool GetDefaultUsesSystemTheme() const OVERRIDE;
46 48
47 private: 49 private:
48 typedef std::map<int, SkColor> ColorMap; 50 typedef std::map<int, SkColor> ColorMap;
49 typedef std::map<int, color_utils::HSL> TintMap; 51 typedef std::map<int, color_utils::HSL> TintMap;
50 typedef std::map<int, gfx::Image> ImageCache; 52 typedef std::map<int, gfx::Image> ImageCache;
51 53
52 // This method returns the colors webkit will use for the scrollbars. When no 54 // This method returns the colors webkit will use for the scrollbars. When no
53 // colors are specified by the GTK+ theme, this function averages of the 55 // colors are specified by the GTK+ theme, this function averages of the
54 // thumb part and of the track colors. 56 // thumb part and of the track colors.
55 void GetScrollbarColors(GdkColor* thumb_active_color, 57 void GetScrollbarColors(GdkColor* thumb_active_color,
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 } // namespace libgtk2ui 159 } // namespace libgtk2ui
158 160
159 // Access point to the GTK2 desktop system. This should be the only symbol that 161 // Access point to the GTK2 desktop system. This should be the only symbol that
160 // is exported in the library; everything else should be used through the 162 // is exported in the library; everything else should be used through the
161 // interface, because eventually this .so will be loaded through dlopen at 163 // interface, because eventually this .so will be loaded through dlopen at
162 // runtime so our main binary can conditionally load GTK2 or GTK3 or EFL or 164 // runtime so our main binary can conditionally load GTK2 or GTK3 or EFL or
163 // QT or whatever. 165 // QT or whatever.
164 LIBGTK2UI_EXPORT ui::LinuxUI* BuildGtk2UI(); 166 LIBGTK2UI_EXPORT ui::LinuxUI* BuildGtk2UI();
165 167
166 #endif // CHROME_BROWSER_UI_LIBGTK2UI_GTK2_UI_H_ 168 #endif // CHROME_BROWSER_UI_LIBGTK2UI_GTK2_UI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698