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

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

Issue 174803002: Move root_window.* to window_event_dispatcher.* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 10 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 | Annotate | Revision Log
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/login_state_notification_blocker_chromeos .h" 5 #include "chrome/browser/notifications/login_state_notification_blocker_chromeos .h"
6 6
7 #include "ash/root_window_controller.h" 7 #include "ash/root_window_controller.h"
8 #include "ash/shell.h" 8 #include "ash/shell.h"
9 #include "ash/system/system_notifier.h" 9 #include "ash/system/system_notifier.h"
10 #include "ash/wm/window_properties.h" 10 #include "ash/wm/window_properties.h"
11 #include "chrome/browser/chrome_notification_types.h" 11 #include "chrome/browser/chrome_notification_types.h"
12 #include "content/public/browser/notification_service.h" 12 #include "content/public/browser/notification_service.h"
13 #include "ui/aura/root_window.h"
14 #include "ui/aura/window.h" 13 #include "ui/aura/window.h"
14 #include "ui/aura/window_event_dispatcher.h"
15 #include "ui/message_center/message_center.h" 15 #include "ui/message_center/message_center.h"
16 16
17 LoginStateNotificationBlockerChromeOS::LoginStateNotificationBlockerChromeOS( 17 LoginStateNotificationBlockerChromeOS::LoginStateNotificationBlockerChromeOS(
18 message_center::MessageCenter* message_center) 18 message_center::MessageCenter* message_center)
19 : NotificationBlocker(message_center), 19 : NotificationBlocker(message_center),
20 locked_(false), 20 locked_(false),
21 observing_(true) { 21 observing_(true) {
22 // This class is created in the ctor of NotificationUIManager which is created 22 // This class is created in the ctor of NotificationUIManager which is created
23 // when a notification is created, so ash::Shell should be initialized. 23 // when a notification is created, so ash::Shell should be initialized.
24 ash::Shell::GetInstance()->AddShellObserver(this); 24 ash::Shell::GetInstance()->AddShellObserver(this);
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 NotifyBlockingStateChanged(); 74 NotifyBlockingStateChanged();
75 } 75 }
76 76
77 void LoginStateNotificationBlockerChromeOS::OnUserAddingStarted() { 77 void LoginStateNotificationBlockerChromeOS::OnUserAddingStarted() {
78 NotifyBlockingStateChanged(); 78 NotifyBlockingStateChanged();
79 } 79 }
80 80
81 void LoginStateNotificationBlockerChromeOS::OnUserAddingFinished() { 81 void LoginStateNotificationBlockerChromeOS::OnUserAddingFinished() {
82 NotifyBlockingStateChanged(); 82 NotifyBlockingStateChanged();
83 } 83 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698