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: ui/aura_shell/default_container_layout_manager.h

Issue 8391035: Drag and rotate windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: " Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 UI_AURA_SHELL_DEFAULT_CONTAINER_LAYOUT_MANAGER_H_ 5 #ifndef UI_AURA_SHELL_DEFAULT_CONTAINER_LAYOUT_MANAGER_H_
6 #define UI_AURA_SHELL_DEFAULT_CONTAINER_LAYOUT_MANAGER_H_ 6 #define UI_AURA_SHELL_DEFAULT_CONTAINER_LAYOUT_MANAGER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 21 matching lines...) Expand all
32 DefaultContainerLayoutManager( 32 DefaultContainerLayoutManager(
33 aura::Window* owner, WorkspaceManager* workspace_manager); 33 aura::Window* owner, WorkspaceManager* workspace_manager);
34 virtual ~DefaultContainerLayoutManager(); 34 virtual ~DefaultContainerLayoutManager();
35 35
36 // Invoked when a window receives drag event. 36 // Invoked when a window receives drag event.
37 void PrepareForMoveOrResize(aura::Window* drag, aura::MouseEvent* event); 37 void PrepareForMoveOrResize(aura::Window* drag, aura::MouseEvent* event);
38 38
39 // Invoked when a drag event didn't start any drag operation. 39 // Invoked when a drag event didn't start any drag operation.
40 void CancelMoveOrResize(aura::Window* drag, aura::MouseEvent* event); 40 void CancelMoveOrResize(aura::Window* drag, aura::MouseEvent* event);
41 41
42 // Invoked when a drag event moved the |window|.
43 void ProcessMove(aura::Window* window, aura::MouseEvent* event);
44
42 // Invoked when a user finished moving window. 45 // Invoked when a user finished moving window.
43 void EndMove(aura::Window* drag, aura::MouseEvent* evnet); 46 void EndMove(aura::Window* drag, aura::MouseEvent* evnet);
44 47
45 // Invoked when a user finished resizing window. 48 // Invoked when a user finished resizing window.
46 void EndResize(aura::Window* drag, aura::MouseEvent* evnet); 49 void EndResize(aura::Window* drag, aura::MouseEvent* evnet);
47 50
48 // Overridden from aura::LayoutManager: 51 // Overridden from aura::LayoutManager:
49 virtual void OnWindowResized() OVERRIDE; 52 virtual void OnWindowResized() OVERRIDE;
50 virtual void OnWindowAdded(aura::Window* child) OVERRIDE; 53 virtual void OnWindowAdded(aura::Window* child) OVERRIDE;
51 virtual void OnWillRemoveWindow(aura::Window* child) OVERRIDE; 54 virtual void OnWillRemoveWindow(aura::Window* child) OVERRIDE;
(...skipping 15 matching lines...) Expand all
67 // ignores bounds check. 70 // ignores bounds check.
68 bool ignore_calculate_bounds_; 71 bool ignore_calculate_bounds_;
69 72
70 DISALLOW_COPY_AND_ASSIGN(DefaultContainerLayoutManager); 73 DISALLOW_COPY_AND_ASSIGN(DefaultContainerLayoutManager);
71 }; 74 };
72 75
73 } // namespace internal 76 } // namespace internal
74 } // namespace aura_shell 77 } // namespace aura_shell
75 78
76 #endif // UI_AURA_SHELL_DEFAULT_CONTAINER_LAYOUT_MANAGER_H_ 79 #endif // UI_AURA_SHELL_DEFAULT_CONTAINER_LAYOUT_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698