diff options
author | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-10 00:08:42 +0000 |
---|---|---|
committer | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-10 00:08:42 +0000 |
commit | da7c6b51086d02e35f7240f619704d7f4ede7493 (patch) | |
tree | 6300b59d17e275682e492861953b24bea23eab79 /base | |
parent | f58b6b6dbbec20b456b0b6f02347ff5fc5e0c2b6 (diff) | |
download | chromium_src-da7c6b51086d02e35f7240f619704d7f4ede7493.zip chromium_src-da7c6b51086d02e35f7240f619704d7f4ede7493.tar.gz chromium_src-da7c6b51086d02e35f7240f619704d7f4ede7493.tar.bz2 |
Add functionality to the Windows 8 notification display functionality to invoke a caller specified handler function
with a string parameter.
Currently the only consumer of this functionality is the download notification display code which when invoked displays
the downloaded file in the shell.
BUG=151141
R=cpu
Review URL: https://codereview.chromium.org/11096013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160988 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r-- | base/win/metro.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/base/win/metro.h b/base/win/metro.h index b401b42..41404a8 100644 --- a/base/win/metro.h +++ b/base/win/metro.h @@ -84,14 +84,18 @@ BASE_EXPORT MetroLaunchType GetMetroLaunchParams(string16* params); // Handler function for the buttons on a metro dialog box typedef void (*MetroDialogButtonPressedHandler)(); +// Handler function invoked when a metro style notification is clicked. +typedef void (*MetroNotificationClickedHandler)(const wchar_t* context); + // Function to display metro style notifications. typedef void (*MetroNotification)(const char* origin_url, const char* icon_url, const wchar_t* title, const wchar_t* body, const wchar_t* display_source, - const char* notification_id); - + const char* notification_id, + MetroNotificationClickedHandler handler, + const wchar_t* handler_context); } // namespace win } // namespace base |