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

Side by Side Diff: chrome/browser/ui/views/status_icons/status_icon_linux_wrapper.h

Issue 18334003: Linux status icon for Ubuntu Unity (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moved skia utils to skia_utils_gtk2 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_VIEWS_STATUS_ICONS_STATUS_ICON_LINUX_WRAPPER_H_
6 #define CHROME_BROWSER_UI_VIEWS_STATUS_ICONS_STATUS_ICON_LINUX_WRAPPER_H_
7
8 #include "base/memory/scoped_ptr.h"
9 #include "chrome/browser/status_icons/desktop_notification_balloon.h"
10 #include "chrome/browser/status_icons/status_icon.h"
11 #include "ui/linux_ui/linux_ui.h"
12
13 class StatusIconLinuxWrapper : public StatusIcon,
sky 2013/07/15 20:41:10 Description?
sidharthms 2013/07/16 01:12:05 Done.
14 public StatusIconLinux::Delegate {
15 public:
16 // StatusIcon overrides:
17 virtual void SetImage(const gfx::ImageSkia& image) OVERRIDE;
18 virtual void SetPressedImage(const gfx::ImageSkia& image) OVERRIDE;
19 virtual void SetToolTip(const string16& tool_tip) OVERRIDE;
20 virtual void SetClickActionLabel(const string16& label) OVERRIDE;
21 virtual void DisplayBalloon(const gfx::ImageSkia& icon,
22 const string16& title,
23 const string16& contents) OVERRIDE;
24
25 // StatusIconLinux::Delegate overrides:
26 virtual void OnClick() OVERRIDE;
27
28 static StatusIconLinuxWrapper* CreateWrappedStatusIcon();
29
30 protected:
31 // StatusIcon overrides:
32 // Invoked after a call to SetContextMenu() to let the platform-specific
33 // subclass update the native context menu based on the new model. If NULL is
34 // passed, subclass should destroy the native context menu.
35 virtual void UpdatePlatformContextMenu(ui::MenuModel* model) OVERRIDE;
36
37 private:
38 // A status icon wrapper should only be created by calling
39 // CreateWrappedStatusIcon().
40 explicit StatusIconLinuxWrapper(StatusIconLinux* status_icon);
41
42 // Notification balloon.
43 DesktopNotificationBalloon notification_;
44 scoped_ptr<StatusIconLinux> status_icon_;
45 };
sky 2013/07/15 20:41:10 DISALLOW_...
sidharthms 2013/07/16 01:12:05 Done.
46
47 #endif // CHROME_BROWSER_UI_VIEWS_STATUS_ICONS_STATUS_ICON_LINUX_WRAPPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698