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

Unified Diff: mojo/services/html_viewer/webnotificationmanager_impl.cc

Issue 1093433002: html_viewer: Add a mock WebNotificationManager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
Index: mojo/services/html_viewer/webnotificationmanager_impl.cc
diff --git a/mojo/services/html_viewer/webnotificationmanager_impl.cc b/mojo/services/html_viewer/webnotificationmanager_impl.cc
new file mode 100644
index 0000000000000000000000000000000000000000..79d852d30b8bb97490ad7bb8552684bcec5572a7
--- /dev/null
+++ b/mojo/services/html_viewer/webnotificationmanager_impl.cc
@@ -0,0 +1,61 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "mojo/services/html_viewer/webnotificationmanager_impl.h"
+
+#include "base/logging.h"
+
+namespace html_viewer {
+
+WebNotificationManagerImpl::~WebNotificationManagerImpl() {}
+
+void WebNotificationManagerImpl::show(const blink::WebSerializedOrigin&,
+ const blink::WebNotificationData&,
+ blink::WebNotificationDelegate*) {
+ NOTIMPLEMENTED();
+}
+
+void WebNotificationManagerImpl::showPersistent(
+ const blink::WebSerializedOrigin&,
+ const blink::WebNotificationData&,
+ blink::WebServiceWorkerRegistration*,
+ blink::WebNotificationShowCallbacks*) {
+ NOTIMPLEMENTED();
+}
+
+void WebNotificationManagerImpl::getNotifications(
+ const blink::WebString& filterTag,
+ blink::WebServiceWorkerRegistration*,
+ blink::WebNotificationGetCallbacks*) {
+ NOTIMPLEMENTED();
+}
+
+void WebNotificationManagerImpl::close(blink::WebNotificationDelegate*) {
+ NOTIMPLEMENTED();
+}
+
+void WebNotificationManagerImpl::closePersistent(
+ const blink::WebSerializedOrigin&,
+ int64_t persistentNotificationId) {
+ NOTIMPLEMENTED();
+}
+
+void WebNotificationManagerImpl::closePersistent(
+ const blink::WebSerializedOrigin&,
+ const blink::WebString& persistentNotificationId) {
+ NOTIMPLEMENTED();
+}
+
+void WebNotificationManagerImpl::notifyDelegateDestroyed(
+ blink::WebNotificationDelegate*) {
+ NOTIMPLEMENTED();
+}
+
+blink::WebNotificationPermission WebNotificationManagerImpl::checkPermission(
+ const blink::WebSerializedOrigin&) {
+ NOTIMPLEMENTED();
+ return blink::WebNotificationPermission();
Elliot Glaysher 2015/04/15 23:10:01 This is the function that gets called fairly consi
+}
+
+} // namespace html_viewer

Powered by Google App Engine
This is Rietveld 408576698