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

Unified Diff: chrome/browser/extensions/api/notification/notification_api.h

Issue 12212037: Update notifications API after review. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/notification/notification_api.h
diff --git a/chrome/browser/extensions/api/notification/notification_api.h b/chrome/browser/extensions/api/notification/notification_api.h
index 37adb314829e9017b80bc4299b71ff10a82cd15e..c889b9f14465b31aac98ac58895e7659091d4126 100644
--- a/chrome/browser/extensions/api/notification/notification_api.h
+++ b/chrome/browser/extensions/api/notification/notification_api.h
@@ -5,12 +5,13 @@
#ifndef CHROME_BROWSER_EXTENSIONS_API_NOTIFICATION_NOTIFICATION_API_H_
#define CHROME_BROWSER_EXTENSIONS_API_NOTIFICATION_NOTIFICATION_API_H_
+#include <string>
+
#include "base/memory/ref_counted.h"
#include "chrome/browser/extensions/api/api_function.h"
#include "chrome/browser/extensions/extension_function.h"
#include "chrome/common/extensions/api/experimental_notification.h"
-
-#include <string>
+#include "ui/notifications/notification_types.h"
namespace extensions {
@@ -22,6 +23,8 @@ class NotificationApiFunction : public ApiFunction {
void CreateNotification(
const std::string& id,
api::experimental_notification::NotificationOptions* options);
+ ui::notifications::NotificationType MapApiTemplateTypeToType(
+ api::experimental_notification::TemplateType type);
};
class NotificationCreateFunction : public NotificationApiFunction {

Powered by Google App Engine
This is Rietveld 408576698