| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/resize_handle_window_targeter.h" | 5 #include "ash/wm/resize_handle_window_targeter.h" |
| 6 | 6 |
| 7 #include "ash/common/ash_constants.h" | 7 #include "ash/common/ash_constants.h" |
| 8 #include "ash/common/wm/window_state.h" | 8 #include "ash/common/wm/window_state.h" |
| 9 #include "ash/wm/immersive_fullscreen_controller.h" | 9 #include "ash/wm/immersive_fullscreen_controller.h" |
| 10 #include "ash/wm/window_state_aura.h" | 10 #include "ash/wm/window_state_aura.h" |
| 11 #include "ui/aura/window.h" | 11 #include "ui/aura/window.h" |
| 12 #include "ui/events/event.h" | 12 #include "ui/events/event.h" |
| 13 | 13 |
| 14 namespace ash { | 14 namespace ash { |
| 15 | 15 |
| 16 ResizeHandleWindowTargeter::ResizeHandleWindowTargeter( | 16 ResizeHandleWindowTargeter::ResizeHandleWindowTargeter( |
| 17 aura::Window* window, | 17 aura::Window* window, |
| 18 ImmersiveFullscreenController* controller) | 18 WmImmersiveFullscreenController* controller) |
| 19 : window_(window), immersive_controller_(controller) { | 19 : window_(window), immersive_controller_(controller) { |
| 20 wm::WindowState* window_state = wm::GetWindowState(window_); | 20 wm::WindowState* window_state = wm::GetWindowState(window_); |
| 21 OnPostWindowStateTypeChange(window_state, wm::WINDOW_STATE_TYPE_DEFAULT); | 21 OnPostWindowStateTypeChange(window_state, wm::WINDOW_STATE_TYPE_DEFAULT); |
| 22 window_state->AddObserver(this); | 22 window_state->AddObserver(this); |
| 23 window_->AddObserver(this); | 23 window_->AddObserver(this); |
| 24 } | 24 } |
| 25 | 25 |
| 26 ResizeHandleWindowTargeter::~ResizeHandleWindowTargeter() { | 26 ResizeHandleWindowTargeter::~ResizeHandleWindowTargeter() { |
| 27 if (window_) { | 27 if (window_) { |
| 28 window_->RemoveObserver(this); | 28 window_->RemoveObserver(this); |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 aura::WindowTargeter* targeter = | 90 aura::WindowTargeter* targeter = |
| 91 static_cast<aura::WindowTargeter*>(parent->GetEventTargeter()); | 91 static_cast<aura::WindowTargeter*>(parent->GetEventTargeter()); |
| 92 if (targeter) | 92 if (targeter) |
| 93 return targeter->SubtreeShouldBeExploredForEvent(window, event); | 93 return targeter->SubtreeShouldBeExploredForEvent(window, event); |
| 94 } | 94 } |
| 95 } | 95 } |
| 96 return aura::WindowTargeter::SubtreeShouldBeExploredForEvent(window, event); | 96 return aura::WindowTargeter::SubtreeShouldBeExploredForEvent(window, event); |
| 97 } | 97 } |
| 98 | 98 |
| 99 } // namespace ash | 99 } // namespace ash |
| OLD | NEW |