This adds mock-up apis for notification on EFL.
Change-Id: I85018014ee1af5e11c7fd3fa0455679bbe6b16dd
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
{
'variables': {
# The libraries brightray will be compiled to.
- 'linux_system_libraries': 'gtk+-2.0 dbus-1 x11 x11-xcb xcb xi xcursor xdamage xrandr xcomposite xext xfixes xrender xtst xscrnsaver gconf-2.0 gmodule-2.0 nss icu-i18n icu-uc'
+ 'linux_system_libraries': 'dbus-1 x11 x11-xcb xcb xi xcursor xdamage xrandr xcomposite xext xfixes xrender xtst xscrnsaver gconf-2.0 gmodule-2.0 nss icu-i18n icu-uc'
},
'includes': [
'filenames.gypi',
--- /dev/null
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Copyright (c) 2013 Patrick Reynolds <piki@github.com>. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE-CHROMIUM file.
+
+#include "browser/efl/notification_presenter_efl.h"
+
+namespace brightray {
+
+// static
+NotificationPresenter* NotificationPresenter::Create() {
+ NOTIMPLEMENTED();
+ return nullptr;
+}
+
+NotificationPresenterEfl::NotificationPresenterEfl() {
+ NOTIMPLEMENTED();
+}
+
+NotificationPresenterEfl::~NotificationPresenterEfl() {
+ NOTIMPLEMENTED();
+}
+
+Notification* NotificationPresenterEfl::CreateNotificationObject(
+ NotificationDelegate* delegate) {
+ NOTIMPLEMENTED();
+ return nullptr;
+}
+
+} // namespace brightray
--- /dev/null
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Copyright (c) 2013 Patrick Reynolds <piki@github.com>. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE-CHROMIUM file.
+
+#ifndef BRIGHTRAY_BROWSER_NOTIFICATION_PRESENTER_LINUX_H_
+#define BRIGHTRAY_BROWSER_NOTIFICATION_PRESENTER_LINUX_H_
+
+#include "browser/notification_presenter.h"
+
+namespace brightray {
+
+class NotificationPresenterEfl : public NotificationPresenter {
+ public:
+ NotificationPresenterEfl();
+ ~NotificationPresenterEfl();
+
+ private:
+ Notification* CreateNotificationObject(
+ NotificationDelegate* delegate) override;
+
+ DISALLOW_COPY_AND_ASSIGN(NotificationPresenterEfl);
+};
+
+} // namespace brightray
+
+#endif
const content::NotificationResources& notification_resources,
std::unique_ptr<content::DesktopNotificationDelegate> delegate,
base::Closure* cancel_callback) {
+#if defined(USE_EFL)
+ return;
+#else
auto presenter = browser_client_->GetNotificationPresenter();
if (!presenter)
return;
notification_resources.notification_icon,
notification_data));
}
+#endif
}
void PlatformNotificationService::DisplayPersistentNotification(
['exclude', '_aura(_browsertest|_unittest|linux)?\\.(h|cc)$'],
['exclude', '(^|/)aura/'],
['exclude', '_views\\.(h|cc)$'],
+ ['exclude', 'notification_presenter_linux\\.(h|cc)$'],
+ ['exclude', 'notify_notification\\.(h|cc)$'],
+ ['exclude', 'libnotify_loader\\.(h|cc)$'],
['exclude', '(^|/)views/'],
['exclude', '_gtk(_browsertest|_unittest)?\\.(h|cc)$'],
['exclude', '(^|/)gtk/'],
'browser/devtools_manager_delegate.h',
'browser/devtools_ui.cc',
'browser/devtools_ui.h',
+ 'browser/efl/notification_presenter_efl.h',
+ 'browser/efl/notification_presenter_efl.cc',
'browser/inspectable_web_contents.cc',
'browser/inspectable_web_contents.h',
'browser/inspectable_web_contents_delegate.h',