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

Side by Side Diff: chrome/browser/ui/views/status_icons/status_icon_win.cc

Issue 11096013: Add functionality to the Windows 8 notification display functionality to invoke a caller specified … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 2 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 #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
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
OLDNEW
« no previous file with comments | « chrome/browser/download/download_status_updater_win.cc ('k') | win8/metro_driver/chrome_app_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698