| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |