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

Side by Side Diff: ash/shell.cc

Issue 2906693003: [mus+ash] Removes WmWindow from screen_dimmer and video_detector (Closed)
Patch Set: [mus+ash] Removes WmWindow from screen_dimmer and video_detector Created 3 years, 7 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/shell_observer.h » ('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 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 void Shell::SetDisplayWorkAreaInsets(Window* contains, 340 void Shell::SetDisplayWorkAreaInsets(Window* contains,
341 const gfx::Insets& insets) { 341 const gfx::Insets& insets) {
342 shell_port_->SetDisplayWorkAreaInsets(WmWindow::Get(contains), insets); 342 shell_port_->SetDisplayWorkAreaInsets(WmWindow::Get(contains), insets);
343 } 343 }
344 344
345 void Shell::OnCastingSessionStartedOrStopped(bool started) { 345 void Shell::OnCastingSessionStartedOrStopped(bool started) {
346 for (auto& observer : shell_observers_) 346 for (auto& observer : shell_observers_)
347 observer.OnCastingSessionStartedOrStopped(started); 347 observer.OnCastingSessionStartedOrStopped(started);
348 } 348 }
349 349
350 void Shell::OnRootWindowAdded(WmWindow* root_window) { 350 void Shell::OnRootWindowAdded(aura::Window* root_window) {
351 for (auto& observer : shell_observers_) 351 for (auto& observer : shell_observers_)
352 observer.OnRootWindowAdded(root_window); 352 observer.OnRootWindowAdded(root_window);
353 } 353 }
354 354
355 void Shell::CreateKeyboard() { 355 void Shell::CreateKeyboard() {
356 InitKeyboard(); 356 InitKeyboard();
357 GetPrimaryRootWindowController()->ActivateKeyboard( 357 GetPrimaryRootWindowController()->ActivateKeyboard(
358 keyboard::KeyboardController::GetInstance()); 358 keyboard::KeyboardController::GetInstance());
359 } 359 }
360 360
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
506 for (auto& observer : shell_observers_) 506 for (auto& observer : shell_observers_)
507 observer.OnOverviewModeStarting(); 507 observer.OnOverviewModeStarting();
508 } 508 }
509 509
510 void Shell::NotifyOverviewModeEnded() { 510 void Shell::NotifyOverviewModeEnded() {
511 for (auto& observer : shell_observers_) 511 for (auto& observer : shell_observers_)
512 observer.OnOverviewModeEnded(); 512 observer.OnOverviewModeEnded();
513 } 513 }
514 514
515 void Shell::NotifyFullscreenStateChanged(bool is_fullscreen, 515 void Shell::NotifyFullscreenStateChanged(bool is_fullscreen,
516 WmWindow* root_window) { 516 aura::Window* root_window) {
517 for (auto& observer : shell_observers_) 517 for (auto& observer : shell_observers_)
518 observer.OnFullscreenStateChanged(is_fullscreen, root_window); 518 observer.OnFullscreenStateChanged(is_fullscreen, root_window);
519 } 519 }
520 520
521 void Shell::NotifyPinnedStateChanged(aura::Window* pinned_window) { 521 void Shell::NotifyPinnedStateChanged(aura::Window* pinned_window) {
522 for (auto& observer : shell_observers_) 522 for (auto& observer : shell_observers_)
523 observer.OnPinnedStateChanged(pinned_window); 523 observer.OnPinnedStateChanged(pinned_window);
524 } 524 }
525 525
526 void Shell::NotifyVirtualKeyboardActivated(bool activated, 526 void Shell::NotifyVirtualKeyboardActivated(bool activated,
(...skipping 742 matching lines...) Expand 10 before | Expand all | Expand 10 after
1269 void Shell::OnPrefServiceInitialized( 1269 void Shell::OnPrefServiceInitialized(
1270 std::unique_ptr<::PrefService> pref_service) { 1270 std::unique_ptr<::PrefService> pref_service) {
1271 if (!instance_) 1271 if (!instance_)
1272 return; 1272 return;
1273 // |pref_service_| is null if can't connect to Chrome (as happens when 1273 // |pref_service_| is null if can't connect to Chrome (as happens when
1274 // running mash outside of chrome --mash and chrome isn't built). 1274 // running mash outside of chrome --mash and chrome isn't built).
1275 pref_service_ = std::move(pref_service); 1275 pref_service_ = std::move(pref_service);
1276 } 1276 }
1277 1277
1278 } // namespace ash 1278 } // namespace ash
OLDNEW
« no previous file with comments | « ash/shell.h ('k') | ash/shell_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698