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

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

Issue 10332145: aura/ash split: Moves RootWindowEventFilter and InputMethodEventFilter to ui/aura/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moved to ui/aura/shared/ Created 8 years, 7 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_DEFAULT_WINDOW_RESIZER_H_ 5 #ifndef ASH_WM_DEFAULT_WINDOW_RESIZER_H_
6 #define ASH_WM_DEFAULT_WINDOW_RESIZER_H_ 6 #define ASH_WM_DEFAULT_WINDOW_RESIZER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "ash/wm/window_resizer.h" 9 #include "ash/wm/window_resizer.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 11
12 namespace ash { 12 namespace aura {
13 13 namespace shared {
14 namespace internal {
15 class RootWindowEventFilter; 14 class RootWindowEventFilter;
16 } 15 }
16 }
17
18 namespace ash {
17 19
18 // WindowResizer is used by ToplevelWindowEventFilter to handle dragging, moving 20 // WindowResizer is used by ToplevelWindowEventFilter to handle dragging, moving
19 // or resizing a window. All coordinates passed to this are in the parent 21 // or resizing a window. All coordinates passed to this are in the parent
20 // windows coordiantes. 22 // windows coordiantes.
21 class ASH_EXPORT DefaultWindowResizer : public WindowResizer { 23 class ASH_EXPORT DefaultWindowResizer : public WindowResizer {
22 public: 24 public:
23 virtual ~DefaultWindowResizer(); 25 virtual ~DefaultWindowResizer();
24 26
25 // Creates a new DefaultWindowResizer. The caller takes ownership of the 27 // Creates a new DefaultWindowResizer. The caller takes ownership of the
26 // returned object. Returns NULL if not resizable. 28 // returned object. Returns NULL if not resizable.
(...skipping 15 matching lines...) Expand all
42 virtual void RevertDrag() OVERRIDE; 44 virtual void RevertDrag() OVERRIDE;
43 45
44 private: 46 private:
45 explicit DefaultWindowResizer(const Details& details); 47 explicit DefaultWindowResizer(const Details& details);
46 48
47 const Details details_; 49 const Details details_;
48 50
49 // Set to true once Drag() is invoked and the bounds of the window change. 51 // Set to true once Drag() is invoked and the bounds of the window change.
50 bool did_move_or_resize_; 52 bool did_move_or_resize_;
51 53
52 internal::RootWindowEventFilter* root_filter_; 54 aura::shared::RootWindowEventFilter* root_filter_;
53 55
54 DISALLOW_COPY_AND_ASSIGN(DefaultWindowResizer); 56 DISALLOW_COPY_AND_ASSIGN(DefaultWindowResizer);
55 }; 57 };
56 58
57 } // namespace aura 59 } // namespace aura
58 60
59 #endif // ASH_WM_DEFAULT_WINDOW_RESIZER_H_ 61 #endif // ASH_WM_DEFAULT_WINDOW_RESIZER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698