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

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

Issue 464163003: Remove IDR_STATUS_TRAY_ICON_PRESSED (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated the comment Created 6 years, 3 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 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 CHROME_BROWSER_UI_VIEWS_STATUS_ICONS_STATUS_ICON_LINUX_WRAPPER_H_ 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_ 6 #define CHROME_BROWSER_UI_VIEWS_STATUS_ICONS_STATUS_ICON_LINUX_WRAPPER_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "chrome/browser/status_icons/desktop_notification_balloon.h" 9 #include "chrome/browser/status_icons/desktop_notification_balloon.h"
10 #include "chrome/browser/status_icons/status_icon.h" 10 #include "chrome/browser/status_icons/status_icon.h"
11 #include "ui/views/linux_ui/status_icon_linux.h" 11 #include "ui/views/linux_ui/status_icon_linux.h"
12 12
13 // Wrapper class for StatusIconLinux that implements the standard StatusIcon 13 // Wrapper class for StatusIconLinux that implements the standard StatusIcon
14 // interface. Also handles callbacks from StatusIconLinux. 14 // interface. Also handles callbacks from StatusIconLinux.
15 class StatusIconLinuxWrapper : public StatusIcon, 15 class StatusIconLinuxWrapper : public StatusIcon,
16 public views::StatusIconLinux::Delegate, 16 public views::StatusIconLinux::Delegate,
17 public StatusIconMenuModel::Observer { 17 public StatusIconMenuModel::Observer {
18 public: 18 public:
19 virtual ~StatusIconLinuxWrapper(); 19 virtual ~StatusIconLinuxWrapper();
20 20
21 // StatusIcon overrides: 21 // StatusIcon overrides:
22 virtual void SetImage(const gfx::ImageSkia& image) OVERRIDE; 22 virtual void SetImage(const gfx::ImageSkia& image) OVERRIDE;
23 virtual void SetPressedImage(const gfx::ImageSkia& image) OVERRIDE;
24 virtual void SetToolTip(const base::string16& tool_tip) OVERRIDE; 23 virtual void SetToolTip(const base::string16& tool_tip) OVERRIDE;
25 virtual void DisplayBalloon(const gfx::ImageSkia& icon, 24 virtual void DisplayBalloon(const gfx::ImageSkia& icon,
26 const base::string16& title, 25 const base::string16& title,
27 const base::string16& contents) OVERRIDE; 26 const base::string16& contents) OVERRIDE;
28 27
29 // StatusIconLinux::Delegate overrides: 28 // StatusIconLinux::Delegate overrides:
30 virtual void OnClick() OVERRIDE; 29 virtual void OnClick() OVERRIDE;
31 virtual bool HasClickAction() OVERRIDE; 30 virtual bool HasClickAction() OVERRIDE;
32 31
33 // StatusIconMenuModel::Observer overrides: 32 // StatusIconMenuModel::Observer overrides:
(...skipping 20 matching lines...) Expand all
54 DesktopNotificationBalloon notification_; 53 DesktopNotificationBalloon notification_;
55 54
56 scoped_ptr<views::StatusIconLinux> status_icon_; 55 scoped_ptr<views::StatusIconLinux> status_icon_;
57 56
58 StatusIconMenuModel* menu_model_; 57 StatusIconMenuModel* menu_model_;
59 58
60 DISALLOW_COPY_AND_ASSIGN(StatusIconLinuxWrapper); 59 DISALLOW_COPY_AND_ASSIGN(StatusIconLinuxWrapper);
61 }; 60 };
62 61
63 #endif // CHROME_BROWSER_UI_VIEWS_STATUS_ICONS_STATUS_ICON_LINUX_WRAPPER_H_ 62 #endif // CHROME_BROWSER_UI_VIEWS_STATUS_ICONS_STATUS_ICON_LINUX_WRAPPER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/libgtk2ui/gtk2_status_icon.cc ('k') | chrome/browser/ui/views/status_icons/status_icon_linux_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698