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

Side by Side Diff: ash/wm/resize_handle_window_targeter.cc

Issue 2222653002: Moves CustomFrameViewAsh to common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 4 years, 4 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/resize_handle_window_targeter.h ('k') | ash/wm/resize_shadow_and_cursor_unittest.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 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
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
OLDNEW
« no previous file with comments | « ash/wm/resize_handle_window_targeter.h ('k') | ash/wm/resize_shadow_and_cursor_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698