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

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

Issue 8375027: Implement notifications for the DisplayBalloon method on Linux and Mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixing profile usage. 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 // TODO(atwilson): Figure out the right UI to display here when actually 82 notification_.DisplayBalloon(icon, title, contents);
Andrew T Wilson (Slow) 2011/10/26 22:20:26 I think we need to have identical behavior across
Leandro GraciĆ” Gil 2011/10/26 23:10:02 Done.
83 // needed (not yet called).
84 // http://crbug.com/74970
85 } 83 }
86 84
87 void StatusIconMac::UpdatePlatformContextMenu(ui::MenuModel* menu) { 85 void StatusIconMac::UpdatePlatformContextMenu(ui::MenuModel* menu) {
88 // TODO(atwilson): Add support for context menus for Mac when actually needed 86 // TODO(atwilson): Add support for context menus for Mac when actually needed
89 // (not yet used by anything) - http://crbug.com/37375. 87 // (not yet used by anything) - http://crbug.com/37375.
90 } 88 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698