| OLD | NEW |
| 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 #include "chrome/browser/ui/views/status_icons/status_icon_win.h" | 5 #include "chrome/browser/ui/views/status_icons/status_icon_win.h" |
| 6 | 6 |
| 7 #include "base/string_number_conversions.h" | 7 #include "base/string_number_conversions.h" |
| 8 #include "base/win/metro.h" | 8 #include "base/win/metro.h" |
| 9 #include "base/win/windows_version.h" | 9 #include "base/win/windows_version.h" |
| 10 #include "third_party/skia/include/core/SkBitmap.h" | 10 #include "third_party/skia/include/core/SkBitmap.h" |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 | 192 |
| 193 HMODULE metro_module = base::win::GetMetroModule(); | 193 HMODULE metro_module = base::win::GetMetroModule(); |
| 194 DCHECK(metro_module); | 194 DCHECK(metro_module); |
| 195 | 195 |
| 196 if (metro_module) { | 196 if (metro_module) { |
| 197 base::win::MetroNotification notification = | 197 base::win::MetroNotification notification = |
| 198 reinterpret_cast<base::win::MetroNotification>( | 198 reinterpret_cast<base::win::MetroNotification>( |
| 199 ::GetProcAddress(metro_module, "DisplayNotification")); | 199 ::GetProcAddress(metro_module, "DisplayNotification")); |
| 200 DCHECK(notification); | 200 DCHECK(notification); |
| 201 notification("", "", title.c_str(), contents.c_str(), L"", | 201 notification("", "", title.c_str(), contents.c_str(), L"", |
| 202 base::IntToString(id_).c_str()); | 202 base::IntToString(id_).c_str(), NULL, NULL); |
| 203 } | 203 } |
| 204 } | 204 } |
| 205 | 205 |
| 206 void StatusIconMetro::UpdatePlatformContextMenu(ui::MenuModel* menu) { | 206 void StatusIconMetro::UpdatePlatformContextMenu(ui::MenuModel* menu) { |
| 207 DVLOG(1) << __FUNCTION__ | 207 DVLOG(1) << __FUNCTION__ |
| 208 << " This functionality is not supported in Windows 8 metro"; | 208 << " This functionality is not supported in Windows 8 metro"; |
| 209 } | 209 } |
| 210 | 210 |
| OLD | NEW |