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

Side by Side Diff: ash/shell.cc

Issue 2898743002: Draggable peeking/fullscreen launcher with transparent background. (Closed)
Patch Set: Rebased to resolve merge conflicts, Refactored to use observers, addressed comments, and disabled a… Created 3 years, 6 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "ash/shell.h" 5 #include "ash/shell.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 return app_list_->GetTargetVisibility(); 479 return app_list_->GetTargetVisibility();
480 } 480 }
481 481
482 void Shell::UpdateAfterLoginStatusChange(LoginStatus status) { 482 void Shell::UpdateAfterLoginStatusChange(LoginStatus status) {
483 for (WmWindow* root_window : shell_port_->GetAllRootWindows()) { 483 for (WmWindow* root_window : shell_port_->GetAllRootWindows()) {
484 root_window->GetRootWindowController()->UpdateAfterLoginStatusChange( 484 root_window->GetRootWindowController()->UpdateAfterLoginStatusChange(
485 status); 485 status);
486 } 486 }
487 } 487 }
488 488
489 void Shell::NotifyAppListShownOrDismissed(bool shown,
490 aura::Window* root_window) {
491 for (auto& observer : shell_observers_)
492 observer.OnAppListShownOrDismissed(shown, root_window);
493 }
494
489 void Shell::NotifyMaximizeModeStarted() { 495 void Shell::NotifyMaximizeModeStarted() {
490 for (auto& observer : shell_observers_) 496 for (auto& observer : shell_observers_)
491 observer.OnMaximizeModeStarted(); 497 observer.OnMaximizeModeStarted();
492 } 498 }
493 499
494 void Shell::NotifyMaximizeModeEnding() { 500 void Shell::NotifyMaximizeModeEnding() {
495 for (auto& observer : shell_observers_) 501 for (auto& observer : shell_observers_)
496 observer.OnMaximizeModeEnding(); 502 observer.OnMaximizeModeEnding();
497 } 503 }
498 504
(...skipping 766 matching lines...) Expand 10 before | Expand all | Expand 10 after
1265 void Shell::OnPrefServiceInitialized( 1271 void Shell::OnPrefServiceInitialized(
1266 std::unique_ptr<::PrefService> pref_service) { 1272 std::unique_ptr<::PrefService> pref_service) {
1267 if (!instance_) 1273 if (!instance_)
1268 return; 1274 return;
1269 // |pref_service_| is null if can't connect to Chrome (as happens when 1275 // |pref_service_| is null if can't connect to Chrome (as happens when
1270 // running mash outside of chrome --mash and chrome isn't built). 1276 // running mash outside of chrome --mash and chrome isn't built).
1271 pref_service_ = std::move(pref_service); 1277 pref_service_ = std::move(pref_service);
1272 } 1278 }
1273 1279
1274 } // namespace ash 1280 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698