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

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

Issue 15008002: Make touch-resizing windows to screen edge possible (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adjust unit tests with final behavior Created 7 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 | Annotate | Revision Log
« no previous file with comments | « ash/wm/panels/panel_window_resizer_unittest.cc ('k') | ash/wm/toplevel_window_event_handler.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_TOPLEVEL_WINDOW_EVENT_HANDLER_H_ 5 #ifndef ASH_WM_TOPLEVEL_WINDOW_EVENT_HANDLER_H_
6 #define ASH_WM_TOPLEVEL_WINDOW_EVENT_HANDLER_H_ 6 #define ASH_WM_TOPLEVEL_WINDOW_EVENT_HANDLER_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 private: 57 private:
58 class ScopedWindowResizer; 58 class ScopedWindowResizer;
59 59
60 enum DragCompletionStatus { 60 enum DragCompletionStatus {
61 DRAG_COMPLETE, 61 DRAG_COMPLETE,
62 DRAG_REVERT 62 DRAG_REVERT
63 }; 63 };
64 64
65 void CreateScopedWindowResizer(aura::Window* window, 65 void CreateScopedWindowResizer(aura::Window* window,
66 const gfx::Point& point_in_parent, 66 const gfx::Point& point_in_parent,
67 int window_component); 67 int window_component,
68 aura::client::WindowMoveSource source);
68 69
69 // Finishes the drag. 70 // Finishes the drag.
70 void CompleteDrag(DragCompletionStatus status, int event_flags); 71 void CompleteDrag(DragCompletionStatus status, int event_flags);
71 72
72 void HandleMousePressed(aura::Window* target, ui::MouseEvent* event); 73 void HandleMousePressed(aura::Window* target, ui::MouseEvent* event);
73 void HandleMouseReleased(aura::Window* target, ui::MouseEvent* event); 74 void HandleMouseReleased(aura::Window* target, ui::MouseEvent* event);
74 75
75 // Called during a drag to resize/position the window. 76 // Called during a drag to resize/position the window.
76 // The return value is returned by OnMouseEvent() above. 77 // The return value is returned by OnMouseEvent() above.
77 void HandleDrag(aura::Window* target, ui::LocatedEvent* event); 78 void HandleDrag(aura::Window* target, ui::LocatedEvent* event);
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 // Used to track if this object is deleted while running a nested message 114 // Used to track if this object is deleted while running a nested message
114 // loop. If non-null the destructor sets this to true. 115 // loop. If non-null the destructor sets this to true.
115 bool* destroyed_; 116 bool* destroyed_;
116 117
117 DISALLOW_COPY_AND_ASSIGN(ToplevelWindowEventHandler); 118 DISALLOW_COPY_AND_ASSIGN(ToplevelWindowEventHandler);
118 }; 119 };
119 120
120 } // namespace aura 121 } // namespace aura
121 122
122 #endif // ASH_WM_TOPLEVEL_WINDOW_EVENT_HANDLER_H_ 123 #endif // ASH_WM_TOPLEVEL_WINDOW_EVENT_HANDLER_H_
OLDNEW
« no previous file with comments | « ash/wm/panels/panel_window_resizer_unittest.cc ('k') | ash/wm/toplevel_window_event_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698