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

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

Issue 18334003: Linux status icon for Ubuntu Unity (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: file restored Created 7 years, 5 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
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/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
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 // Checks for platform support for status icons.
67 virtual bool IsStatusIconSupported() const = 0;
68
69 // Create a native status icon.
70 virtual scoped_ptr<StatusIconLinux> CreateLinuxStatusIcon() const = 0;
64 }; 71 };
65 72
66 } // namespace ui 73 } // namespace ui
67 74
68 #endif // UI_LINUX_UI_LINUX_UI_H_ 75 #endif // UI_LINUX_UI_LINUX_UI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698