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

Side by Side Diff: chrome/browser/ui/cocoa/status_icons/status_icon_mac.mm

Issue 8417027: Revert 107722 - Implement notifications for the DisplayBalloon method on Linux and Mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "chrome/browser/ui/cocoa/status_icons/status_icon_mac.h" 5 #include "chrome/browser/ui/cocoa/status_icons/status_icon_mac.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/sys_string_conversions.h" 8 #include "base/sys_string_conversions.h"
9 #include "skia/ext/skia_utils_mac.h" 9 #include "skia/ext/skia_utils_mac.h"
10 #include "third_party/skia/include/core/SkBitmap.h" 10 #include "third_party/skia/include/core/SkBitmap.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 } 72 }
73 } 73 }
74 74
75 void StatusIconMac::SetToolTip(const string16& tool_tip) { 75 void StatusIconMac::SetToolTip(const string16& tool_tip) {
76 [item() setToolTip:base::SysUTF16ToNSString(tool_tip)]; 76 [item() setToolTip:base::SysUTF16ToNSString(tool_tip)];
77 } 77 }
78 78
79 void StatusIconMac::DisplayBalloon(const SkBitmap& icon, 79 void StatusIconMac::DisplayBalloon(const SkBitmap& icon,
80 const string16& title, 80 const string16& title,
81 const string16& contents) { 81 const string16& contents) {
82 notification_.DisplayBalloon(icon, title, contents); 82 // TODO(atwilson): Figure out the right UI to display here when actually
83 // needed (not yet called).
84 // http://crbug.com/74970
83 } 85 }
84 86
85 void StatusIconMac::UpdatePlatformContextMenu(ui::MenuModel* menu) { 87 void StatusIconMac::UpdatePlatformContextMenu(ui::MenuModel* menu) {
86 // TODO(atwilson): Add support for context menus for Mac when actually needed 88 // TODO(atwilson): Add support for context menus for Mac when actually needed
87 // (not yet used by anything) - http://crbug.com/37375. 89 // (not yet used by anything) - http://crbug.com/37375.
88 } 90 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/status_icons/status_icon_mac.h ('k') | chrome/browser/ui/gtk/status_icons/status_icon_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698