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

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

Issue 149303003: [Refactor] Move the logic to update bounds for show type from WorkspaceLayoutManager to DefaultState (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: handle show_inactive Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « ash/wm/panels/panel_layout_manager.cc ('k') | ash/wm/resize_handle_window_targeter.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 #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
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_
OLDNEW
« no previous file with comments | « ash/wm/panels/panel_layout_manager.cc ('k') | ash/wm/resize_handle_window_targeter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698