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 <string> | 5 #include <string> |
6 | 6 |
7 #include "win8/metro_driver/stdafx.h" | 7 #include "win8/metro_driver/stdafx.h" |
8 #include "win8/metro_driver/toast_notification_handler.h" | 8 #include "win8/metro_driver/toast_notification_handler.h" |
9 | 9 |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/path_service.h" | 12 #include "base/path_service.h" |
13 #include "base/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
14 // TODO(ananta) | 14 // TODO(ananta) |
15 // Refactor the chrome_util and shell_util code from chrome into a common lib | 15 // Refactor the chrome_util and shell_util code from chrome into a common lib |
16 #include "win8/delegate_execute/chrome_util.h" | 16 #include "win8/delegate_execute/chrome_util.h" |
17 #include "win8/metro_driver/winrt_utils.h" | 17 #include "win8/metro_driver/winrt_utils.h" |
18 | 18 |
19 typedef winfoundtn::ITypedEventHandler< | 19 typedef winfoundtn::ITypedEventHandler< |
20 winui::Notifications::ToastNotification*, IInspectable*> | 20 winui::Notifications::ToastNotification*, IInspectable*> |
21 ToastActivationHandler; | 21 ToastActivationHandler; |
22 | 22 |
23 typedef winfoundtn::ITypedEventHandler< | 23 typedef winfoundtn::ITypedEventHandler< |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 // etc to ChromeAppView which would enable it to ensure that the | 240 // etc to ChromeAppView which would enable it to ensure that the |
241 // correct tab in chrome is activated. | 241 // correct tab in chrome is activated. |
242 DVLOG(1) << __FUNCTION__; | 242 DVLOG(1) << __FUNCTION__; |
243 | 243 |
244 if (notification_info_.notification_handler) { | 244 if (notification_info_.notification_handler) { |
245 notification_info_.notification_handler( | 245 notification_info_.notification_handler( |
246 notification_info_.notification_context.c_str()); | 246 notification_info_.notification_context.c_str()); |
247 } | 247 } |
248 return S_OK; | 248 return S_OK; |
249 } | 249 } |
OLD | NEW |