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

Side by Side Diff: ash/wm/aura/wm_window_aura.cc

Issue 1921883002: Removes WindowState::aura_window() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix windows build Created 4 years, 8 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/wm/aura/wm_window_aura.h ('k') | ash/wm/common/root_window_finder.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 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
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
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
OLDNEW
« no previous file with comments | « ash/wm/aura/wm_window_aura.h ('k') | ash/wm/common/root_window_finder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698