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

Side by Side Diff: chrome/browser/status_icons/status_icon.h

Issue 252513004: Reland r265807: "Moves the notification icon out of th..." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Disable tray size test on Vista since it won't have any effect on a new icon. Created 6 years, 8 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 | Annotate | Revision Log
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 CHROME_BROWSER_STATUS_ICONS_STATUS_ICON_H_ 5 #ifndef CHROME_BROWSER_STATUS_ICONS_STATUS_ICON_H_
6 #define CHROME_BROWSER_STATUS_ICONS_STATUS_ICON_H_ 6 #define CHROME_BROWSER_STATUS_ICONS_STATUS_ICON_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/observer_list.h" 10 #include "base/observer_list.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 // Returns true if there are registered click observers. 54 // Returns true if there are registered click observers.
55 bool HasObservers() const; 55 bool HasObservers() const;
56 56
57 // Dispatches a click event to the observers. 57 // Dispatches a click event to the observers.
58 void DispatchClickEvent(); 58 void DispatchClickEvent();
59 #if defined(OS_WIN) 59 #if defined(OS_WIN)
60 void DispatchBalloonClickEvent(); 60 void DispatchBalloonClickEvent();
61 #endif 61 #endif
62 62
63 // Attempts to make the status icon directly visible on system UI. Currently
64 // this only applies to Windows, where status icons are hidden by default
65 // inside an overflow window.
66 // WARNING: This currently uses undocumented Windows APIs and spawns a worker
67 // thread to do it. Use sparingly.
68 virtual void ForceVisible();
69
63 protected: 70 protected:
64 // Invoked after a call to SetContextMenu() to let the platform-specific 71 // Invoked after a call to SetContextMenu() to let the platform-specific
65 // subclass update the native context menu based on the new model. If NULL is 72 // subclass update the native context menu based on the new model. If NULL is
66 // passed, subclass should destroy the native context menu. 73 // passed, subclass should destroy the native context menu.
67 virtual void UpdatePlatformContextMenu(StatusIconMenuModel* model) = 0; 74 virtual void UpdatePlatformContextMenu(StatusIconMenuModel* model) = 0;
68 75
69 private: 76 private:
70 ObserverList<StatusIconObserver> observers_; 77 ObserverList<StatusIconObserver> observers_;
71 78
72 // Context menu, if any. 79 // Context menu, if any.
73 scoped_ptr<StatusIconMenuModel> context_menu_contents_; 80 scoped_ptr<StatusIconMenuModel> context_menu_contents_;
74 81
75 DISALLOW_COPY_AND_ASSIGN(StatusIcon); 82 DISALLOW_COPY_AND_ASSIGN(StatusIcon);
76 }; 83 };
77 84
78 #endif // CHROME_BROWSER_STATUS_ICONS_STATUS_ICON_H_ 85 #endif // CHROME_BROWSER_STATUS_ICONS_STATUS_ICON_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698