| OLD | NEW |
| 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/wm/aura/wm_window_aura.h" | 5 #include "ash/wm/aura/wm_window_aura.h" |
| 6 | 6 |
| 7 #include "ash/screen_util.h" | 7 #include "ash/screen_util.h" |
| 8 #include "ash/shelf/shelf_util.h" | 8 #include "ash/shelf/shelf_util.h" |
| 9 #include "ash/wm/aura/aura_layout_manager_adapter.h" | 9 #include "ash/wm/aura/aura_layout_manager_adapter.h" |
| 10 #include "ash/wm/aura/wm_globals_aura.h" | 10 #include "ash/wm/aura/wm_globals_aura.h" |
| (...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 462 } | 462 } |
| 463 | 463 |
| 464 void WmWindowAura::Activate() { | 464 void WmWindowAura::Activate() { |
| 465 ActivateWindow(window_); | 465 ActivateWindow(window_); |
| 466 } | 466 } |
| 467 | 467 |
| 468 void WmWindowAura::Deactivate() { | 468 void WmWindowAura::Deactivate() { |
| 469 DeactivateWindow(window_); | 469 DeactivateWindow(window_); |
| 470 } | 470 } |
| 471 | 471 |
| 472 void WmWindowAura::SetFullscreen() { |
| 473 window_->SetProperty(aura::client::kShowStateKey, ui::SHOW_STATE_FULLSCREEN); |
| 474 } |
| 475 |
| 472 void WmWindowAura::Maximize() { | 476 void WmWindowAura::Maximize() { |
| 473 return window_->SetProperty(aura::client::kShowStateKey, | 477 return window_->SetProperty(aura::client::kShowStateKey, |
| 474 ui::SHOW_STATE_MAXIMIZED); | 478 ui::SHOW_STATE_MAXIMIZED); |
| 475 } | 479 } |
| 476 | 480 |
| 477 void WmWindowAura::Minimize() { | 481 void WmWindowAura::Minimize() { |
| 478 window_->SetProperty(aura::client::kShowStateKey, ui::SHOW_STATE_MINIMIZED); | 482 window_->SetProperty(aura::client::kShowStateKey, ui::SHOW_STATE_MINIMIZED); |
| 479 } | 483 } |
| 480 | 484 |
| 481 void WmWindowAura::Unminimize() { | 485 void WmWindowAura::Unminimize() { |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 557 } | 561 } |
| 558 | 562 |
| 559 void WmWindowAura::OnWindowVisibilityChanging(aura::Window* window, | 563 void WmWindowAura::OnWindowVisibilityChanging(aura::Window* window, |
| 560 bool visible) { | 564 bool visible) { |
| 561 FOR_EACH_OBSERVER(WmWindowObserver, observers_, | 565 FOR_EACH_OBSERVER(WmWindowObserver, observers_, |
| 562 OnWindowVisibilityChanging(this, visible)); | 566 OnWindowVisibilityChanging(this, visible)); |
| 563 } | 567 } |
| 564 | 568 |
| 565 } // namespace wm | 569 } // namespace wm |
| 566 } // namespace ash | 570 } // namespace ash |
| OLD | NEW |