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

Side by Side Diff: ui/views/linux_ui/status_icon_linux.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
« no previous file with comments | « chrome/browser/ui/views/status_icons/status_tray_win_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 UI_VIEWS_LINUX_UI_STATUS_ICON_LINUX_H_ 5 #ifndef UI_VIEWS_LINUX_UI_STATUS_ICON_LINUX_H_
6 #define UI_VIEWS_LINUX_UI_STATUS_ICON_LINUX_H_ 6 #define UI_VIEWS_LINUX_UI_STATUS_ICON_LINUX_H_
7 7
8 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
9 #include "ui/views/views_export.h" 9 #include "ui/views/views_export.h"
10 10
(...skipping 19 matching lines...) Expand all
30 virtual bool HasClickAction() = 0; 30 virtual bool HasClickAction() = 0;
31 31
32 protected: 32 protected:
33 virtual ~Delegate(); 33 virtual ~Delegate();
34 }; 34 };
35 35
36 StatusIconLinux(); 36 StatusIconLinux();
37 virtual ~StatusIconLinux(); 37 virtual ~StatusIconLinux();
38 38
39 virtual void SetImage(const gfx::ImageSkia& image) = 0; 39 virtual void SetImage(const gfx::ImageSkia& image) = 0;
40 virtual void SetPressedImage(const gfx::ImageSkia& image) = 0;
41 virtual void SetToolTip(const base::string16& tool_tip) = 0; 40 virtual void SetToolTip(const base::string16& tool_tip) = 0;
42 41
43 // Invoked after a call to SetContextMenu() to let the platform-specific 42 // Invoked after a call to SetContextMenu() to let the platform-specific
44 // subclass update the native context menu based on the new model. The 43 // subclass update the native context menu based on the new model. The
45 // subclass should destroy the existing native context menu on this call. 44 // subclass should destroy the existing native context menu on this call.
46 virtual void UpdatePlatformContextMenu(ui::MenuModel* model) = 0; 45 virtual void UpdatePlatformContextMenu(ui::MenuModel* model) = 0;
47 46
48 // Update all the enabled/checked states and the dynamic labels. Some status 47 // Update all the enabled/checked states and the dynamic labels. Some status
49 // icon implementations do not refresh the native menu before showing so we 48 // icon implementations do not refresh the native menu before showing so we
50 // need to manually refresh it when the menu model changes. 49 // need to manually refresh it when the menu model changes.
51 virtual void RefreshPlatformContextMenu(); 50 virtual void RefreshPlatformContextMenu();
52 51
53 Delegate* delegate() { return delegate_; } 52 Delegate* delegate() { return delegate_; }
54 void set_delegate(Delegate* delegate) { delegate_ = delegate; } 53 void set_delegate(Delegate* delegate) { delegate_ = delegate; }
55 54
56 private: 55 private:
57 Delegate* delegate_; 56 Delegate* delegate_;
58 }; 57 };
59 58
60 } // namespace views 59 } // namespace views
61 60
62 #endif // UI_LINUX_UI_STATUS_ICON_LINUX_H_ 61 #endif // UI_LINUX_UI_STATUS_ICON_LINUX_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/status_icons/status_tray_win_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698