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

Side by Side Diff: trunk/src/ash/wm/gestures/system_pinch_handler.h

Issue 132183006: Revert 244050 "This is part 1 of implemeting phantom windows for..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 11 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 | « trunk/src/ash/ash.gyp ('k') | trunk/src/ash/wm/gestures/system_pinch_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_GESTURES_SYSTEM_PINCH_HANDLER_H_ 5 #ifndef ASH_WM_GESTURES_SYSTEM_PINCH_HANDLER_H_
6 #define ASH_WM_GESTURES_SYSTEM_PINCH_HANDLER_H_ 6 #define ASH_WM_GESTURES_SYSTEM_PINCH_HANDLER_H_
7 7
8 #include "ash/wm/workspace/phantom_window_controller.h" 8 #include "ash/wm/workspace/phantom_window_controller.h"
9 #include "base/memory/scoped_ptr.h"
10 9
11 namespace aura { 10 namespace aura {
12 class Window; 11 class Window;
13 } 12 }
14 13
15 namespace gfx { 14 namespace gfx {
16 class Point; 15 class Point;
17 } 16 }
18 17
19 namespace ui { 18 namespace ui {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 PHANTOM_WINDOW_NORMAL, 57 PHANTOM_WINDOW_NORMAL,
59 PHANTOM_WINDOW_MAXIMIZED, 58 PHANTOM_WINDOW_MAXIMIZED,
60 PHANTOM_WINDOW_MINIMIZED, 59 PHANTOM_WINDOW_MINIMIZED,
61 }; 60 };
62 61
63 aura::Window* target_; 62 aura::Window* target_;
64 views::Widget* widget_; 63 views::Widget* widget_;
65 64
66 // A phantom window is used to provide visual cues for 65 // A phantom window is used to provide visual cues for
67 // pinch-to-resize/maximize/minimize gestures. 66 // pinch-to-resize/maximize/minimize gestures.
68 scoped_ptr<PhantomWindowController> phantom_; 67 PhantomWindowController phantom_;
69 68
70 // When the phantom window is in minimized or maximized state, moving the 69 // When the phantom window is in minimized or maximized state, moving the
71 // target window should not move the phantom window. So |phantom_state_| is 70 // target window should not move the phantom window. So |phantom_state_| is
72 // used to track the state of the phantom window. 71 // used to track the state of the phantom window.
73 PhantomWindowState phantom_state_; 72 PhantomWindowState phantom_state_;
74 73
75 // PINCH_UPDATE events include incremental pinch-amount. But it is necessary 74 // PINCH_UPDATE events include incremental pinch-amount. But it is necessary
76 // to keep track of the overall pinch-amount. |pinch_factor_| is used for 75 // to keep track of the overall pinch-amount. |pinch_factor_| is used for
77 // that. 76 // that.
78 double pinch_factor_; 77 double pinch_factor_;
79 78
80 DISALLOW_COPY_AND_ASSIGN(SystemPinchHandler); 79 DISALLOW_COPY_AND_ASSIGN(SystemPinchHandler);
81 }; 80 };
82 81
83 } // namespace internal 82 } // namespace internal
84 } // namespace ash 83 } // namespace ash
85 84
86 #endif // ASH_WM_GESTURES_SYSTEM_PINCH_HANDLER_H_ 85 #endif // ASH_WM_GESTURES_SYSTEM_PINCH_HANDLER_H_
OLDNEW
« no previous file with comments | « trunk/src/ash/ash.gyp ('k') | trunk/src/ash/wm/gestures/system_pinch_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698