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

Side by Side Diff: base/win/metro.h

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 #ifndef BASE_WIN_METRO_H_ 5 #ifndef BASE_WIN_METRO_H_
6 #define BASE_WIN_METRO_H_ 6 #define BASE_WIN_METRO_H_
7 7
8 #include <windows.h> 8 #include <windows.h>
9 #include <wpcapi.h> 9 #include <wpcapi.h>
10 10
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 // This function should ideally be called on the UI thread. 77 // This function should ideally be called on the UI thread.
78 BASE_EXPORT bool IsParentalControlActivityLoggingOn(); 78 BASE_EXPORT bool IsParentalControlActivityLoggingOn();
79 79
80 // Returns the type of launch and the activation params. For example if the 80 // Returns the type of launch and the activation params. For example if the
81 // the launch is for METRO_PROTOCOL then the params is a url. 81 // the launch is for METRO_PROTOCOL then the params is a url.
82 BASE_EXPORT MetroLaunchType GetMetroLaunchParams(string16* params); 82 BASE_EXPORT MetroLaunchType GetMetroLaunchParams(string16* params);
83 83
84 // Handler function for the buttons on a metro dialog box 84 // Handler function for the buttons on a metro dialog box
85 typedef void (*MetroDialogButtonPressedHandler)(); 85 typedef void (*MetroDialogButtonPressedHandler)();
86 86
87 // Handler function invoked when a metro style notification is clicked.
88 typedef void (*MetroNotificationClickedHandler)(const wchar_t* context);
89
87 // Function to display metro style notifications. 90 // Function to display metro style notifications.
88 typedef void (*MetroNotification)(const char* origin_url, 91 typedef void (*MetroNotification)(const char* origin_url,
89 const char* icon_url, 92 const char* icon_url,
90 const wchar_t* title, 93 const wchar_t* title,
91 const wchar_t* body, 94 const wchar_t* body,
92 const wchar_t* display_source, 95 const wchar_t* display_source,
93 const char* notification_id); 96 const char* notification_id,
94 97 MetroNotificationClickedHandler handler,
98 const wchar_t* handler_context);
95 99
96 } // namespace win 100 } // namespace win
97 } // namespace base 101 } // namespace base
98 102
99 #endif // BASE_WIN_METRO_H_ 103 #endif // BASE_WIN_METRO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698