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

Side by Side Diff: ash/shelf/shelf_window_targeter.h

Issue 2899253002: chromeos: Rename ash::WmShelf to Shelf (Closed)
Patch Set: rebase Created 3 years, 6 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/shelf/shelf_widget_unittest.cc ('k') | ash/shelf/shelf_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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_SHELF_SHELF_WINDOW_TARGETER_H_ 5 #ifndef ASH_SHELF_SHELF_WINDOW_TARGETER_H_
6 #define ASH_SHELF_SHELF_WINDOW_TARGETER_H_ 6 #define ASH_SHELF_SHELF_WINDOW_TARGETER_H_
7 7
8 #include "ash/shelf/wm_shelf_observer.h" 8 #include "ash/shelf/shelf_observer.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "ui/aura/window_observer.h" 10 #include "ui/aura/window_observer.h"
11 #include "ui/wm/core/easy_resize_window_targeter.h" 11 #include "ui/wm/core/easy_resize_window_targeter.h"
12 12
13 namespace ash { 13 namespace ash {
14 14
15 class WmShelf; 15 class Shelf;
16 class WmWindow; 16 class WmWindow;
17 17
18 // ShelfWindowTargeter makes it easier to resize windows with the mouse when the 18 // ShelfWindowTargeter makes it easier to resize windows with the mouse when the
19 // window-edge slightly overlaps with the shelf edge. The targeter also makes it 19 // window-edge slightly overlaps with the shelf edge. The targeter also makes it
20 // easier to drag the shelf out with touch while it is hidden. 20 // easier to drag the shelf out with touch while it is hidden.
21 class ShelfWindowTargeter : public ::wm::EasyResizeWindowTargeter, 21 class ShelfWindowTargeter : public ::wm::EasyResizeWindowTargeter,
22 public aura::WindowObserver, 22 public aura::WindowObserver,
23 public WmShelfObserver { 23 public ShelfObserver {
24 public: 24 public:
25 ShelfWindowTargeter(WmWindow* container, WmShelf* shelf); 25 ShelfWindowTargeter(WmWindow* container, Shelf* shelf);
26 ~ShelfWindowTargeter() override; 26 ~ShelfWindowTargeter() override;
27 27
28 private: 28 private:
29 // aura::WindowObserver: 29 // aura::WindowObserver:
30 void OnWindowDestroying(aura::Window* window) override; 30 void OnWindowDestroying(aura::Window* window) override;
31 31
32 // WmShelfObserver: 32 // ShelfObserver:
33 void WillChangeVisibilityState(ShelfVisibilityState new_state) override; 33 void WillChangeVisibilityState(ShelfVisibilityState new_state) override;
34 34
35 WmShelf* shelf_; 35 Shelf* shelf_;
36 36
37 DISALLOW_COPY_AND_ASSIGN(ShelfWindowTargeter); 37 DISALLOW_COPY_AND_ASSIGN(ShelfWindowTargeter);
38 }; 38 };
39 39
40 } // namespace ash 40 } // namespace ash
41 41
42 #endif // ASH_SHELF_SHELF_WINDOW_TARGETER_H_ 42 #endif // ASH_SHELF_SHELF_WINDOW_TARGETER_H_
OLDNEW
« no previous file with comments | « ash/shelf/shelf_widget_unittest.cc ('k') | ash/shelf/shelf_window_targeter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698