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

Unified Diff: chrome/browser/extensions/api/autotest_private/autotest_private_api.h

Issue 1872873002: Add autotestPrivate.getVisibleNotifications API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/autotest_private/autotest_private_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/autotest_private/autotest_private_api.h
diff --git a/chrome/browser/extensions/api/autotest_private/autotest_private_api.h b/chrome/browser/extensions/api/autotest_private/autotest_private_api.h
index 089a02333a4a8cf5c2467b6cc26855d9345eb524..092329ecf3fb62c24a3e9a47cd6179e3f6f9df28 100644
--- a/chrome/browser/extensions/api/autotest_private/autotest_private_api.h
+++ b/chrome/browser/extensions/api/autotest_private/autotest_private_api.h
@@ -10,6 +10,7 @@
#include "base/compiler_specific.h"
#include "chrome/browser/extensions/chrome_extension_function.h"
#include "extensions/browser/browser_context_keyed_api_factory.h"
+#include "ui/message_center/notification_types.h"
namespace extensions {
@@ -160,6 +161,19 @@ class AutotestPrivateSetPrimaryButtonRightFunction
bool RunSync() override;
};
+class AutotestPrivateGetVisibleNotificationsFunction
+ : public ChromeSyncExtensionFunction {
+ public:
+ DECLARE_EXTENSION_FUNCTION("autotestPrivate.getVisibleNotifications",
+ AUTOTESTPRIVATE_GETVISIBLENOTIFICATIONS)
+
+ private:
+ static std::string ConvertToString(message_center::NotificationType type);
+
+ ~AutotestPrivateGetVisibleNotificationsFunction() override {}
+ bool RunSync() override;
+};
+
// Don't kill the browser when we're in a browser test.
void SetAutotestPrivateTest();
« no previous file with comments | « no previous file | chrome/browser/extensions/api/autotest_private/autotest_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698