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

Side by Side Diff: ui/linux_ui/linux_ui.h

Issue 13497002: Crop images from custom themes before storing them into the theme pack (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 8 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
« no previous file with comments | « chrome/browser/ui/libgtk2ui/gtk2_ui.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 UI_LINUX_UI_LINUX_UI_H_ 5 #ifndef UI_LINUX_UI_LINUX_UI_H_
6 #define UI_LINUX_UI_LINUX_UI_H_ 6 #define UI_LINUX_UI_LINUX_UI_H_
7 7
8 #include "third_party/skia/include/core/SkColor.h" 8 #include "third_party/skia/include/core/SkColor.h"
9 #include "ui/linux_ui/linux_ui_export.h" 9 #include "ui/linux_ui/linux_ui_export.h"
10 #include "ui/shell_dialogs/linux_shell_dialog.h" 10 #include "ui/shell_dialogs/linux_shell_dialog.h"
(...skipping 27 matching lines...) Expand all
38 38
39 // Returns a LinuxUI instance for the toolkit used in the user's desktop 39 // Returns a LinuxUI instance for the toolkit used in the user's desktop
40 // environment. 40 // environment.
41 // 41 //
42 // Can return NULL, in case no toolkit has been set. (For example, if we're 42 // Can return NULL, in case no toolkit has been set. (For example, if we're
43 // running with the "--ash" flag.) 43 // running with the "--ash" flag.)
44 static const LinuxUI* instance(); 44 static const LinuxUI* instance();
45 45
46 // Returns an themed image per theme_provider.h 46 // Returns an themed image per theme_provider.h
47 virtual bool UseNativeTheme() const = 0; 47 virtual bool UseNativeTheme() const = 0;
48 virtual gfx::Image* GetThemeImageNamed(int id) const = 0; 48 virtual gfx::Image GetThemeImageNamed(int id) const = 0;
49 virtual bool GetColor(int id, SkColor* color) const = 0; 49 virtual bool GetColor(int id, SkColor* color) const = 0;
50 50
51 // Returns a NativeTheme that will provide system colors and draw system 51 // Returns a NativeTheme that will provide system colors and draw system
52 // style widgets. 52 // style widgets.
53 virtual NativeTheme* GetNativeTheme() const = 0; 53 virtual NativeTheme* GetNativeTheme() const = 0;
54 }; 54 };
55 55
56 } // namespace ui 56 } // namespace ui
57 57
58 #endif // UI_LINUX_UI_LINUX_UI_H_ 58 #endif // UI_LINUX_UI_LINUX_UI_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/libgtk2ui/gtk2_ui.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698