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

Side by Side Diff: chrome/browser/notifications/desktop_notification_service_win.cc

Issue 10537158: Add support for Ash to Notifications (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix win/mac compile Created 8 years, 6 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/notifications/desktop_notification_service.h" 5 #include "chrome/browser/notifications/desktop_notification_service.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/win/metro.h" 8 #include "base/win/metro.h"
9 #include "chrome/browser/notifications/notification.h" 9 #include "chrome/browser/notifications/notification.h"
10 #include "chrome/browser/notifications/notification_object_proxy.h"
10 #include "chrome/browser/notifications/notification_ui_manager.h" 11 #include "chrome/browser/notifications/notification_ui_manager.h"
11 #include "chrome/browser/notifications/notification_ui_manager.h" 12 #include "chrome/browser/notifications/notification_ui_manager.h"
12 13
13 typedef void (*MetroDisplayNotification)( 14 typedef void (*MetroDisplayNotification)(
14 const char* origin_url, const char* icon_url, const wchar_t* title, 15 const char* origin_url, const char* icon_url, const wchar_t* title,
15 const wchar_t* body, const wchar_t* display_source, 16 const wchar_t* body, const wchar_t* display_source,
16 const char* notification_id); 17 const char* notification_id);
17 18
18 typedef bool (*MetroCancelNotification)(const char* notification_id); 19 typedef bool (*MetroCancelNotification)(const char* notification_id);
19 20
(...skipping 27 matching lines...) Expand all
47 notification.body().c_str(), 48 notification.body().c_str(),
48 notification.display_source().c_str(), 49 notification.display_source().c_str(),
49 notification.notification_id().c_str()); 50 notification.notification_id().c_str());
50 return; 51 return;
51 } else { 52 } else {
52 NOTREACHED() << "We don't support HTML notifications in Windows 8 metro"; 53 NOTREACHED() << "We don't support HTML notifications in Windows 8 metro";
53 } 54 }
54 } 55 }
55 GetUIManager()->Add(notification, profile_); 56 GetUIManager()->Add(notification, profile_);
56 } 57 }
57
58
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698