OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 UI_VIEWS_LINUX_UI_LINUX_UI_H_ | 5 #ifndef UI_VIEWS_LINUX_UI_LINUX_UI_H_ |
6 #define UI_VIEWS_LINUX_UI_LINUX_UI_H_ | 6 #define UI_VIEWS_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/base/ime/linux/linux_input_method_context_factory.h" | 9 #include "ui/base/ime/linux/linux_input_method_context_factory.h" |
10 #include "ui/shell_dialogs/linux_shell_dialog.h" | 10 #include "ui/shell_dialogs/linux_shell_dialog.h" |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 // progress, if available. | 79 // progress, if available. |
80 virtual void SetDownloadCount(int count) const = 0; | 80 virtual void SetDownloadCount(int count) const = 0; |
81 virtual void SetProgressFraction(float percentage) const = 0; | 81 virtual void SetProgressFraction(float percentage) const = 0; |
82 | 82 |
83 // Checks for platform support for status icons. | 83 // Checks for platform support for status icons. |
84 virtual bool IsStatusIconSupported() const = 0; | 84 virtual bool IsStatusIconSupported() const = 0; |
85 | 85 |
86 // Create a native status icon. | 86 // Create a native status icon. |
87 virtual scoped_ptr<StatusIconLinux> CreateLinuxStatusIcon( | 87 virtual scoped_ptr<StatusIconLinux> CreateLinuxStatusIcon( |
88 const gfx::ImageSkia& image, | 88 const gfx::ImageSkia& image, |
89 const string16& tool_tip) const = 0; | 89 const base::string16& tool_tip) const = 0; |
90 | 90 |
91 // Returns the icon for a given content type from the icon theme. | 91 // Returns the icon for a given content type from the icon theme. |
92 // TODO(davidben): Add an observer for the theme changing, so we can drop the | 92 // TODO(davidben): Add an observer for the theme changing, so we can drop the |
93 // caches. | 93 // caches. |
94 virtual gfx::Image GetIconForContentType( | 94 virtual gfx::Image GetIconForContentType( |
95 const std::string& content_type, int size) const = 0; | 95 const std::string& content_type, int size) const = 0; |
96 | 96 |
97 // Notifies the observer about changes about how window buttons should be | 97 // Notifies the observer about changes about how window buttons should be |
98 // laid out. If the order is anything other than the default min,max,close on | 98 // laid out. If the order is anything other than the default min,max,close on |
99 // the right, will immediately send a button change event to the observer. | 99 // the right, will immediately send a button change event to the observer. |
100 virtual void AddWindowButtonOrderObserver( | 100 virtual void AddWindowButtonOrderObserver( |
101 WindowButtonOrderObserver* observer) = 0; | 101 WindowButtonOrderObserver* observer) = 0; |
102 | 102 |
103 // Removes the observer from the LinuxUI's list. | 103 // Removes the observer from the LinuxUI's list. |
104 virtual void RemoveWindowButtonOrderObserver( | 104 virtual void RemoveWindowButtonOrderObserver( |
105 WindowButtonOrderObserver* observer) = 0; | 105 WindowButtonOrderObserver* observer) = 0; |
106 | 106 |
107 // Determines whether the user's window manager is Unity. | 107 // Determines whether the user's window manager is Unity. |
108 virtual bool UnityIsRunning() = 0; | 108 virtual bool UnityIsRunning() = 0; |
109 }; | 109 }; |
110 | 110 |
111 } // namespace views | 111 } // namespace views |
112 | 112 |
113 #endif // UI_VIEWS_LINUX_UI_LINUX_UI_H_ | 113 #endif // UI_VIEWS_LINUX_UI_LINUX_UI_H_ |
OLD | NEW |