OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/notifications/web_notification_delegate.h" | 5 #include "chrome/browser/notifications/web_notification_delegate.h" |
6 | 6 |
7 #include "base/feature_list.h" | 7 #include "base/feature_list.h" |
8 #include "base/metrics/histogram_macros.h" | 8 #include "base/metrics/histogram_macros.h" |
9 #include "chrome/browser/notifications/notification_common.h" | 9 #include "chrome/browser/notifications/notification_common.h" |
10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
11 #include "chrome/browser/ui/browser.h" | 11 #include "chrome/browser/ui/browser.h" |
12 #include "chrome/browser/ui/browser_list.h" | 12 #include "chrome/browser/ui/browser_list.h" |
13 #include "chrome/browser/ui/browser_window.h" | 13 #include "chrome/browser/ui/browser_window.h" |
14 #include "chrome/browser/ui/exclusive_access/exclusive_access_context.h" | 14 #include "chrome/browser/ui/exclusive_access/exclusive_access_context.h" |
| 15 #include "chrome/browser/ui/exclusive_access/exclusive_access_manager.h" |
15 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 16 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
16 #include "content/public/browser/web_contents.h" | 17 #include "content/public/browser/web_contents.h" |
17 #include "ui/message_center/notifier_settings.h" | 18 #include "ui/message_center/notifier_settings.h" |
18 | 19 |
19 using message_center::NotifierId; | 20 using message_center::NotifierId; |
20 | 21 |
21 namespace features { | 22 namespace features { |
22 | 23 |
23 const base::Feature kAllowFullscreenWebNotificationsFeature{ | 24 const base::Feature kAllowFullscreenWebNotificationsFeature{ |
24 "FSNotificationsWeb", base::FEATURE_DISABLED_BY_DEFAULT | 25 "FSNotificationsWeb", base::FEATURE_DISABLED_BY_DEFAULT |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 NotifierId::WEB_PAGE, | 86 NotifierId::WEB_PAGE, |
86 NotifierId::SIZE); | 87 NotifierId::SIZE); |
87 } | 88 } |
88 return enabled; | 89 return enabled; |
89 } | 90 } |
90 } | 91 } |
91 #endif | 92 #endif |
92 | 93 |
93 return false; | 94 return false; |
94 } | 95 } |
OLD | NEW |