| 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 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/linux_ui/status_icon_linux.h" |
| 10 #include "ui/shell_dialogs/linux_shell_dialog.h" | 11 #include "ui/shell_dialogs/linux_shell_dialog.h" |
| 11 | 12 |
| 12 // The main entrypoint into Linux toolkit specific code. GTK code should only | 13 // The main entrypoint into Linux toolkit specific code. GTK code should only |
| 13 // be executed behind this interface. | 14 // be executed behind this interface. |
| 14 | 15 |
| 15 namespace gfx { | 16 namespace gfx { |
| 16 class Image; | 17 class Image; |
| 17 } | 18 } |
| 18 | 19 |
| 19 namespace ui { | 20 namespace ui { |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 virtual NativeTheme* GetNativeTheme() const = 0; | 55 virtual NativeTheme* GetNativeTheme() const = 0; |
| 55 | 56 |
| 56 // Returns whether we should be using the native theme provided by this | 57 // Returns whether we should be using the native theme provided by this |
| 57 // object by default. | 58 // object by default. |
| 58 virtual bool GetDefaultUsesSystemTheme() const = 0; | 59 virtual bool GetDefaultUsesSystemTheme() const = 0; |
| 59 | 60 |
| 60 // Sets visual properties in the desktop environment related to download | 61 // Sets visual properties in the desktop environment related to download |
| 61 // progress, if available. | 62 // progress, if available. |
| 62 virtual void SetDownloadCount(int count) const = 0; | 63 virtual void SetDownloadCount(int count) const = 0; |
| 63 virtual void SetProgressFraction(float percentage) const = 0; | 64 virtual void SetProgressFraction(float percentage) const = 0; |
| 65 |
| 66 // Create a native status icon. |
| 67 virtual StatusIconLinux* CreateLinuxStatusIcon() const = 0; |
| 64 }; | 68 }; |
| 65 | 69 |
| 66 } // namespace ui | 70 } // namespace ui |
| 67 | 71 |
| 68 #endif // UI_LINUX_UI_LINUX_UI_H_ | 72 #endif // UI_LINUX_UI_LINUX_UI_H_ |
| OLD | NEW |