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

Side by Side Diff: ash/mus/bridge/wm_window_mus.cc

Issue 2091263004: Moves a couple of the maximize mode classes to ash/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: feedback Created 4 years, 5 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/mus/bridge/wm_window_mus.h ('k') | ash/wm/maximize_mode/DEPS » ('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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/mus/bridge/wm_window_mus.h" 5 #include "ash/mus/bridge/wm_window_mus.h"
6 6
7 #include "ash/common/wm/container_finder.h" 7 #include "ash/common/wm/container_finder.h"
8 #include "ash/common/wm/window_state.h" 8 #include "ash/common/wm/window_state.h"
9 #include "ash/common/wm_layout_manager.h" 9 #include "ash/common/wm_layout_manager.h"
10 #include "ash/common/wm_window_observer.h" 10 #include "ash/common/wm_window_observer.h"
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after
499 } 499 }
500 500
501 ui::WindowShowState WmWindowMus::GetShowState() const { 501 ui::WindowShowState WmWindowMus::GetShowState() const {
502 return UIWindowShowStateFromMojom(GetWindowShowState(window_)); 502 return UIWindowShowStateFromMojom(GetWindowShowState(window_));
503 } 503 }
504 504
505 void WmWindowMus::SetRestoreShowState(ui::WindowShowState show_state) { 505 void WmWindowMus::SetRestoreShowState(ui::WindowShowState show_state) {
506 restore_show_state_ = show_state; 506 restore_show_state_ = show_state;
507 } 507 }
508 508
509 void WmWindowMus::SetRestoreOverrides(
510 const gfx::Rect& bounds_override,
511 ui::WindowShowState window_state_override) {
512 // TODO(sky): see http://crbug.com/623314.
513 NOTIMPLEMENTED();
514 }
515
509 void WmWindowMus::SetLockedToRoot(bool value) { 516 void WmWindowMus::SetLockedToRoot(bool value) {
510 // TODO(sky): there is no getter for this. Investigate where used. 517 // TODO(sky): there is no getter for this. Investigate where used.
511 NOTIMPLEMENTED(); 518 NOTIMPLEMENTED();
512 } 519 }
513 520
514 void WmWindowMus::SetCapture() { 521 void WmWindowMus::SetCapture() {
515 window_->SetCapture(); 522 window_->SetCapture();
516 } 523 }
517 524
518 bool WmWindowMus::HasCapture() { 525 bool WmWindowMus::HasCapture() {
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
763 void WmWindowMus::OnWindowDestroying(::mus::Window* window) { 770 void WmWindowMus::OnWindowDestroying(::mus::Window* window) {
764 FOR_EACH_OBSERVER(WmWindowObserver, observers_, OnWindowDestroying(this)); 771 FOR_EACH_OBSERVER(WmWindowObserver, observers_, OnWindowDestroying(this));
765 } 772 }
766 773
767 void WmWindowMus::OnWindowDestroyed(::mus::Window* window) { 774 void WmWindowMus::OnWindowDestroyed(::mus::Window* window) {
768 FOR_EACH_OBSERVER(WmWindowObserver, observers_, OnWindowDestroyed(this)); 775 FOR_EACH_OBSERVER(WmWindowObserver, observers_, OnWindowDestroyed(this));
769 } 776 }
770 777
771 } // namespace mus 778 } // namespace mus
772 } // namespace ash 779 } // namespace ash
OLDNEW
« no previous file with comments | « ash/mus/bridge/wm_window_mus.h ('k') | ash/wm/maximize_mode/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698