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

Side by Side Diff: ash/shell.cc

Issue 2234033002: mash: Remove WorkspaceLayoutManagerDelegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove WmRootWindowControllerObserver::OnFullscreenStateChanged; use ShellObserver. Created 4 years, 4 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
« no previous file with comments | « ash/shell.h ('k') | ash/wm/always_on_top_controller_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 void Shell::OnShelfAlignmentChanged(WmWindow* root_window) { 446 void Shell::OnShelfAlignmentChanged(WmWindow* root_window) {
447 FOR_EACH_OBSERVER(ShellObserver, *wm_shell_->shell_observers(), 447 FOR_EACH_OBSERVER(ShellObserver, *wm_shell_->shell_observers(),
448 OnShelfAlignmentChanged(root_window)); 448 OnShelfAlignmentChanged(root_window));
449 } 449 }
450 450
451 void Shell::OnShelfAutoHideBehaviorChanged(WmWindow* root_window) { 451 void Shell::OnShelfAutoHideBehaviorChanged(WmWindow* root_window) {
452 FOR_EACH_OBSERVER(ShellObserver, *wm_shell_->shell_observers(), 452 FOR_EACH_OBSERVER(ShellObserver, *wm_shell_->shell_observers(),
453 OnShelfAutoHideBehaviorChanged(root_window)); 453 OnShelfAutoHideBehaviorChanged(root_window));
454 } 454 }
455 455
456 void Shell::NotifyFullscreenStateChange(bool is_fullscreen,
457 WmWindow* root_window) {
458 FOR_EACH_OBSERVER(ShellObserver, *wm_shell_->shell_observers(),
459 OnFullscreenStateChanged(is_fullscreen, root_window));
460 }
461
462 void Shell::CreateModalBackground(aura::Window* window) { 456 void Shell::CreateModalBackground(aura::Window* window) {
463 RootWindowControllerList controllers = GetAllRootWindowControllers(); 457 RootWindowControllerList controllers = GetAllRootWindowControllers();
464 for (RootWindowControllerList::iterator iter = controllers.begin(); 458 for (RootWindowControllerList::iterator iter = controllers.begin();
465 iter != controllers.end(); ++iter) 459 iter != controllers.end(); ++iter)
466 (*iter)->GetSystemModalLayoutManager(window)->CreateModalBackground(); 460 (*iter)->GetSystemModalLayoutManager(window)->CreateModalBackground();
467 } 461 }
468 462
469 void Shell::OnModalWindowRemoved(aura::Window* removed) { 463 void Shell::OnModalWindowRemoved(aura::Window* removed) {
470 RootWindowControllerList controllers = GetAllRootWindowControllers(); 464 RootWindowControllerList controllers = GetAllRootWindowControllers();
471 bool activated = false; 465 bool activated = false;
(...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after
1059 std::unique_ptr<ui::EventTargetIterator> Shell::GetChildIterator() const { 1053 std::unique_ptr<ui::EventTargetIterator> Shell::GetChildIterator() const {
1060 return std::unique_ptr<ui::EventTargetIterator>(); 1054 return std::unique_ptr<ui::EventTargetIterator>();
1061 } 1055 }
1062 1056
1063 ui::EventTargeter* Shell::GetEventTargeter() { 1057 ui::EventTargeter* Shell::GetEventTargeter() {
1064 NOTREACHED(); 1058 NOTREACHED();
1065 return nullptr; 1059 return nullptr;
1066 } 1060 }
1067 1061
1068 } // namespace ash 1062 } // namespace ash
OLDNEW
« no previous file with comments | « ash/shell.h ('k') | ash/wm/always_on_top_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698