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

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

Issue 645513008: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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/power_button_controller.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 #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"
11 #include "ui/gfx/geometry/insets.h" 11 #include "ui/gfx/geometry/insets.h"
12 12
13 namespace ash { 13 namespace ash {
14 14
15 class ImmersiveFullscreenController; 15 class ImmersiveFullscreenController;
16 16
17 // To allow easy resize, the resize handles should slightly overlap the content 17 // To allow easy resize, the resize handles should slightly overlap the content
18 // area of non-maximized and non-fullscreen windows. For immersive fullscreen 18 // area of non-maximized and non-fullscreen windows. For immersive fullscreen
19 // windows, this targeter makes sure that touch-events towards the top of the 19 // windows, this targeter makes sure that touch-events towards the top of the
20 // screen are targeted to the window itself (instead of a child window that may 20 // screen are targeted to the window itself (instead of a child window that may
21 // otherwise have been targeted) when the top-of-window views are not revealed. 21 // otherwise have been targeted) when the top-of-window views are not revealed.
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 ~ResizeHandleWindowTargeter() override;
29 29
30 private: 30 private:
31 // wm::WindowStateObserver: 31 // wm::WindowStateObserver:
32 virtual void OnPostWindowStateTypeChange( 32 void OnPostWindowStateTypeChange(wm::WindowState* window_state,
33 wm::WindowState* window_state, 33 wm::WindowStateType old_type) override;
34 wm::WindowStateType old_type) override;
35 // aura::WindowObserver: 34 // aura::WindowObserver:
36 virtual void OnWindowDestroying(aura::Window* window) override; 35 void OnWindowDestroying(aura::Window* window) override;
37 36
38 // aura::WindowTargeter: 37 // aura::WindowTargeter:
39 virtual ui::EventTarget* FindTargetForLocatedEvent( 38 ui::EventTarget* FindTargetForLocatedEvent(ui::EventTarget* root,
40 ui::EventTarget* root, 39 ui::LocatedEvent* event) override;
41 ui::LocatedEvent* event) override; 40 bool SubtreeShouldBeExploredForEvent(ui::EventTarget* target,
42 virtual bool SubtreeShouldBeExploredForEvent( 41 const ui::LocatedEvent& event) override;
43 ui::EventTarget* target,
44 const ui::LocatedEvent& event) override;
45 42
46 // The targeter does not take ownership of |window_| or 43 // The targeter does not take ownership of |window_| or
47 // |immersive_controller_|. 44 // |immersive_controller_|.
48 aura::Window* window_; 45 aura::Window* window_;
49 gfx::Insets frame_border_inset_; 46 gfx::Insets frame_border_inset_;
50 ImmersiveFullscreenController* immersive_controller_; 47 ImmersiveFullscreenController* immersive_controller_;
51 48
52 DISALLOW_COPY_AND_ASSIGN(ResizeHandleWindowTargeter); 49 DISALLOW_COPY_AND_ASSIGN(ResizeHandleWindowTargeter);
53 }; 50 };
54 51
55 } // namespace ash 52 } // namespace ash
56 53
57 #endif // ASH_WM_RESIZE_HANDLE_WINDOW_TARGETER_H_ 54 #endif // ASH_WM_RESIZE_HANDLE_WINDOW_TARGETER_H_
OLDNEW
« no previous file with comments | « ash/wm/power_button_controller.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