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

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

Issue 10835047: Allow the cursor to warp even when a window is dragged (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: do not move modal windows to another display Created 8 years, 4 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 7
8 #include "ash/wm/window_resizer.h" 8 #include "ash/wm/window_resizer.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 10
(...skipping 14 matching lines...) Expand all
25 25
26 // Returns true if the drag will result in changing the window in anyway. 26 // Returns true if the drag will result in changing the window in anyway.
27 bool is_resizable() const { return details_.is_resizable; } 27 bool is_resizable() const { return details_.is_resizable; }
28 28
29 bool changed_size() const { 29 bool changed_size() const {
30 return !(details_.bounds_change & kBoundsChange_Repositions); 30 return !(details_.bounds_change & kBoundsChange_Repositions);
31 } 31 }
32 aura::Window* target_window() const { return details_.window; } 32 aura::Window* target_window() const { return details_.window; }
33 33
34 // WindowResizer overides: 34 // WindowResizer overides:
35 virtual void Drag(const gfx::Point& location, int event_flags) OVERRIDE; 35 virtual void Drag(const gfx::Point& location_in_screen,
sky 2012/08/02 23:28:31 Making this a screen coordinate is too error prone
Yusuke Sato 2012/08/03 01:52:11 Done.
36 int event_flags) OVERRIDE;
36 virtual void CompleteDrag(int event_flags) OVERRIDE; 37 virtual void CompleteDrag(int event_flags) OVERRIDE;
37 virtual void RevertDrag() OVERRIDE; 38 virtual void RevertDrag() OVERRIDE;
38 39
39 private: 40 private:
40 explicit DefaultWindowResizer(const Details& details); 41 explicit DefaultWindowResizer(const Details& details);
41 42
42 const Details details_; 43 const Details details_;
43 44
44 // Set to true once Drag() is invoked and the bounds of the window change. 45 // Set to true once Drag() is invoked and the bounds of the window change.
45 bool did_move_or_resize_; 46 bool did_move_or_resize_;
46 47
47 DISALLOW_COPY_AND_ASSIGN(DefaultWindowResizer); 48 DISALLOW_COPY_AND_ASSIGN(DefaultWindowResizer);
48 }; 49 };
49 50
50 } // namespace aura 51 } // namespace aura
51 52
52 #endif // ASH_WM_DEFAULT_WINDOW_RESIZER_H_ 53 #endif // ASH_WM_DEFAULT_WINDOW_RESIZER_H_
OLDNEW
« ash/shell.cc ('K') | « ash/shell.cc ('k') | ash/wm/default_window_resizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698