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

Unified Diff: ash/wm/lock_window_state.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/wm/drag_window_resizer.cc ('k') | ash/wm/maximize_mode/maximize_mode_window_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/lock_window_state.cc
diff --git a/ash/wm/lock_window_state.cc b/ash/wm/lock_window_state.cc
index c14c1ca561ac2a47e6e8d00ea5b83f92d5802c0c..9398d51177e81ec5c04b80bcf4e4c1fced5f3a94 100644
--- a/ash/wm/lock_window_state.cc
+++ b/ash/wm/lock_window_state.cc
@@ -9,6 +9,7 @@
#include "ash/display/display_manager.h"
#include "ash/screen_util.h"
#include "ash/shell.h"
+#include "ash/wm/aura/wm_window_aura.h"
#include "ash/wm/common/window_animation_types.h"
#include "ash/wm/common/window_state_util.h"
#include "ash/wm/common/wm_event.h"
@@ -36,7 +37,8 @@ LockWindowState::~LockWindowState() {
void LockWindowState::OnWMEvent(wm::WindowState* window_state,
const wm::WMEvent* event) {
- aura::Window* window = window_state->aura_window();
+ aura::Window* window =
+ ash::wm::WmWindowAura::GetAuraWindow(window_state->window());
gfx::Rect bounds = window->bounds();
switch (event->type()) {
@@ -134,8 +136,7 @@ void LockWindowState::UpdateWindow(wm::WindowState* window_state,
return;
current_state_type_ = target_state;
- ::wm::SetWindowVisibilityAnimationType(
- window_state->aura_window(),
+ window_state->window()->SetVisibilityAnimationType(
wm::WINDOW_VISIBILITY_ANIMATION_TYPE_MINIMIZE);
window_state->window()->Hide();
if (window_state->IsActive())
@@ -156,9 +157,9 @@ void LockWindowState::UpdateWindow(wm::WindowState* window_state,
UpdateBounds(window_state);
window_state->NotifyPostStateTypeChange(old_state_type);
- if ((window_state->aura_window()->TargetVisibility() ||
+ if ((window_state->window()->GetTargetVisibility() ||
old_state_type == wm::WINDOW_STATE_TYPE_MINIMIZED) &&
- !window_state->aura_window()->layer()->visible()) {
+ !window_state->window()->GetLayer()->visible()) {
// The layer may be hidden if the window was previously minimized. Make
// sure it's visible.
window_state->window()->Show();
@@ -195,8 +196,8 @@ void LockWindowState::UpdateBounds(wm::WindowState* window_state) {
keyboard_controller->keyboard_visible()) {
keyboard_bounds = keyboard_controller->current_keyboard_bounds();
}
- gfx::Rect bounds =
- ScreenUtil::GetShelfDisplayBoundsInRoot(window_state->aura_window());
+ gfx::Rect bounds = ScreenUtil::GetShelfDisplayBoundsInRoot(
+ ash::wm::WmWindowAura::GetAuraWindow(window_state->window()));
bounds.set_height(bounds.height() - keyboard_bounds.height());
« no previous file with comments | « ash/wm/drag_window_resizer.cc ('k') | ash/wm/maximize_mode/maximize_mode_window_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698