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 #ifndef ASH_WM_RESIZE_HANDLE_WINDOW_TARGETER_H_ | 5 #ifndef ASH_WM_RESIZE_HANDLE_WINDOW_TARGETER_H_ |
6 #define ASH_WM_RESIZE_HANDLE_WINDOW_TARGETER_H_ | 6 #define ASH_WM_RESIZE_HANDLE_WINDOW_TARGETER_H_ |
7 | 7 |
8 #include "ash/wm/window_state_observer.h" | 8 #include "ash/wm/window_state_observer.h" |
9 #include "ui/aura/window_observer.h" | 9 #include "ui/aura/window_observer.h" |
10 #include "ui/aura/window_targeter.h" | 10 #include "ui/aura/window_targeter.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 class ResizeHandleWindowTargeter : public wm::WindowStateObserver, | 22 class ResizeHandleWindowTargeter : public wm::WindowStateObserver, |
23 public aura::WindowObserver, | 23 public aura::WindowObserver, |
24 public aura::WindowTargeter { | 24 public aura::WindowTargeter { |
25 public: | 25 public: |
26 ResizeHandleWindowTargeter(aura::Window* window, | 26 ResizeHandleWindowTargeter(aura::Window* window, |
27 ImmersiveFullscreenController* immersive); | 27 ImmersiveFullscreenController* immersive); |
28 virtual ~ResizeHandleWindowTargeter(); | 28 virtual ~ResizeHandleWindowTargeter(); |
29 | 29 |
30 private: | 30 private: |
31 // wm::WindowStateObserver: | 31 // wm::WindowStateObserver: |
32 virtual void OnWindowShowTypeChanged(wm::WindowState* window_state, | 32 virtual void OnPostWindowShowTypeChange(wm::WindowState* window_state, |
33 wm::WindowShowType old_type) OVERRIDE; | 33 wm::WindowShowType old_type) OVERRIDE; |
34 // aura::WindowObserver: | 34 // aura::WindowObserver: |
35 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE; | 35 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE; |
36 | 36 |
37 // aura::WindowTargeter: | 37 // aura::WindowTargeter: |
38 virtual ui::EventTarget* FindTargetForLocatedEvent( | 38 virtual ui::EventTarget* FindTargetForLocatedEvent( |
39 ui::EventTarget* root, | 39 ui::EventTarget* root, |
40 ui::LocatedEvent* event) OVERRIDE; | 40 ui::LocatedEvent* event) OVERRIDE; |
41 virtual bool SubtreeShouldBeExploredForEvent( | 41 virtual bool SubtreeShouldBeExploredForEvent( |
42 ui::EventTarget* target, | 42 ui::EventTarget* target, |
43 const ui::LocatedEvent& event) OVERRIDE; | 43 const ui::LocatedEvent& event) OVERRIDE; |
44 | 44 |
45 // The targeter does not take ownership of |window_| or | 45 // The targeter does not take ownership of |window_| or |
46 // |immersive_controller_|. | 46 // |immersive_controller_|. |
47 aura::Window* window_; | 47 aura::Window* window_; |
48 gfx::Insets frame_border_inset_; | 48 gfx::Insets frame_border_inset_; |
49 ImmersiveFullscreenController* immersive_controller_; | 49 ImmersiveFullscreenController* immersive_controller_; |
50 | 50 |
51 DISALLOW_COPY_AND_ASSIGN(ResizeHandleWindowTargeter); | 51 DISALLOW_COPY_AND_ASSIGN(ResizeHandleWindowTargeter); |
52 }; | 52 }; |
53 | 53 |
54 } // namespace ash | 54 } // namespace ash |
55 | 55 |
56 #endif // ASH_WM_RESIZE_HANDLE_WINDOW_TARGETER_H_ | 56 #endif // ASH_WM_RESIZE_HANDLE_WINDOW_TARGETER_H_ |
OLD | NEW |