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

Side by Side Diff: ash/wm/workspace/workspace_window_resizer.h

Issue 10948020: Convert native mouse locations to the locations in screen coordinate in RootWindowHostLinux. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 3 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/coordinate_conversion.cc ('k') | ash/wm/workspace/workspace_window_resizer.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 (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_WORKSPACE_WINDOW_RESIZER_H_ 5 #ifndef ASH_WM_WORKSPACE_WINDOW_RESIZER_H_
6 #define ASH_WM_WORKSPACE_WINDOW_RESIZER_H_ 6 #define ASH_WM_WORKSPACE_WINDOW_RESIZER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "ash/wm/window_resizer.h" 10 #include "ash/wm/window_resizer.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 const std::vector<aura::Window*>& attached_windows); 57 const std::vector<aura::Window*>& attached_windows);
58 58
59 // Returns true if the drag will result in changing the window in anyway. 59 // Returns true if the drag will result in changing the window in anyway.
60 bool is_resizable() const { return details_.is_resizable; } 60 bool is_resizable() const { return details_.is_resizable; }
61 61
62 const gfx::Point& initial_location_in_parent() const { 62 const gfx::Point& initial_location_in_parent() const {
63 return details_.initial_location_in_parent; 63 return details_.initial_location_in_parent;
64 } 64 }
65 65
66 // Overridden from WindowResizer: 66 // Overridden from WindowResizer:
67 virtual void Drag(const gfx::Point& location, int event_flags) OVERRIDE; 67 virtual void Drag(const gfx::Point& location_in_parent,
68 int event_flags) OVERRIDE;
68 virtual void CompleteDrag(int event_flags) OVERRIDE; 69 virtual void CompleteDrag(int event_flags) OVERRIDE;
69 virtual void RevertDrag() OVERRIDE; 70 virtual void RevertDrag() OVERRIDE;
70 virtual aura::Window* GetTarget() OVERRIDE; 71 virtual aura::Window* GetTarget() OVERRIDE;
71 72
72 private: 73 private:
73 WorkspaceWindowResizer(const Details& details, 74 WorkspaceWindowResizer(const Details& details,
74 const std::vector<aura::Window*>& attached_windows); 75 const std::vector<aura::Window*>& attached_windows);
75 76
76 private: 77 private:
77 FRIEND_TEST_ALL_PREFIXES(WorkspaceWindowResizerTest, PhantomStyle); 78 FRIEND_TEST_ALL_PREFIXES(WorkspaceWindowResizerTest, PhantomStyle);
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 218
218 MagnetismEdge magnetism_edge_; 219 MagnetismEdge magnetism_edge_;
219 220
220 DISALLOW_COPY_AND_ASSIGN(WorkspaceWindowResizer); 221 DISALLOW_COPY_AND_ASSIGN(WorkspaceWindowResizer);
221 }; 222 };
222 223
223 } // namespace internal 224 } // namespace internal
224 } // namespace ash 225 } // namespace ash
225 226
226 #endif // ASH_WM_WORKSPACE_WINDOW_RESIZER_H_ 227 #endif // ASH_WM_WORKSPACE_WINDOW_RESIZER_H_
OLDNEW
« no previous file with comments | « ash/wm/coordinate_conversion.cc ('k') | ash/wm/workspace/workspace_window_resizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698