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

Side by Side Diff: chrome/browser/notifications/fullscreen_notification_blocker.cc

Issue 2736573002: chromeos: Move files in //ash/common to //ash, part 2 (Closed)
Patch Set: Created 3 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/fullscreen_notification_blocker.h" 5 #include "chrome/browser/notifications/fullscreen_notification_blocker.h"
6 6
7 #include "base/metrics/histogram_macros.h" 7 #include "base/metrics/histogram_macros.h"
8 #include "base/time/time.h" 8 #include "base/time/time.h"
9 #include "chrome/browser/chrome_notification_types.h" 9 #include "chrome/browser/chrome_notification_types.h"
10 #include "chrome/browser/fullscreen.h" 10 #include "chrome/browser/fullscreen.h"
11 #include "content/public/browser/notification_service.h" 11 #include "content/public/browser/notification_service.h"
12 #include "ui/display/types/display_constants.h" 12 #include "ui/display/types/display_constants.h"
13 #include "ui/message_center/notifier_settings.h" 13 #include "ui/message_center/notifier_settings.h"
14 14
15 #if defined(USE_ASH) 15 #if defined(USE_ASH)
16 #include "ash/common/wm/window_state.h"
17 #include "ash/root_window_controller.h" 16 #include "ash/root_window_controller.h"
18 #include "ash/shell.h" 17 #include "ash/shell.h"
19 #include "ash/system/system_notifier.h" 18 #include "ash/system/system_notifier.h"
19 #include "ash/wm/window_state.h"
20 #include "ash/wm/window_state_aura.h" 20 #include "ash/wm/window_state_aura.h"
21 #include "ui/aura/window.h" 21 #include "ui/aura/window.h"
22 #include "ui/aura/window_event_dispatcher.h" 22 #include "ui/aura/window_event_dispatcher.h"
23 #endif 23 #endif
24 24
25 using message_center::NotifierId; 25 using message_center::NotifierId;
26 26
27 namespace { 27 namespace {
28 28
29 bool DoesFullscreenModeBlockNotifications() { 29 bool DoesFullscreenModeBlockNotifications() {
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 return enabled; 91 return enabled;
92 } 92 }
93 93
94 void FullscreenNotificationBlocker::Observe( 94 void FullscreenNotificationBlocker::Observe(
95 int type, 95 int type,
96 const content::NotificationSource& source, 96 const content::NotificationSource& source,
97 const content::NotificationDetails& details) { 97 const content::NotificationDetails& details) {
98 DCHECK_EQ(chrome::NOTIFICATION_FULLSCREEN_CHANGED, type); 98 DCHECK_EQ(chrome::NOTIFICATION_FULLSCREEN_CHANGED, type);
99 CheckState(); 99 CheckState();
100 } 100 }
OLDNEW
« no previous file with comments | « chrome/browser/memory/tab_manager.cc ('k') | chrome/browser/notifications/login_state_notification_blocker_chromeos.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698