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

Side by Side Diff: ash/shelf/shelf_layout_manager.h

Issue 879653002: Remove --ash-enable-tray-dragging flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « ash/ash_switches.cc ('k') | ash/shelf/shelf_layout_manager.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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_SHELF_SHELF_LAYOUT_MANAGER_H_ 5 #ifndef ASH_SHELF_SHELF_LAYOUT_MANAGER_H_
6 #define ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ 6 #define ASH_SHELF_SHELF_LAYOUT_MANAGER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 // the shelf renders slightly differently. 146 // the shelf renders slightly differently.
147 void SetWindowOverlapsShelf(bool value); 147 void SetWindowOverlapsShelf(bool value);
148 bool window_overlaps_shelf() const { return window_overlaps_shelf_; } 148 bool window_overlaps_shelf() const { return window_overlaps_shelf_; }
149 149
150 void AddObserver(ShelfLayoutManagerObserver* observer); 150 void AddObserver(ShelfLayoutManagerObserver* observer);
151 void RemoveObserver(ShelfLayoutManagerObserver* observer); 151 void RemoveObserver(ShelfLayoutManagerObserver* observer);
152 152
153 // Gesture related functions: 153 // Gesture related functions:
154 void OnGestureEdgeSwipe(const ui::GestureEvent& gesture); 154 void OnGestureEdgeSwipe(const ui::GestureEvent& gesture);
155 void StartGestureDrag(const ui::GestureEvent& gesture); 155 void StartGestureDrag(const ui::GestureEvent& gesture);
156 enum DragState { 156 void UpdateGestureDrag(const ui::GestureEvent& gesture);
157 DRAG_SHELF,
158 DRAG_TRAY
159 };
160 // Returns DRAG_SHELF if the gesture should continue to drag the entire shelf.
161 // Returns DRAG_TRAY if the gesture can start dragging the tray-bubble from
162 // this point on.
163 DragState UpdateGestureDrag(const ui::GestureEvent& gesture);
164 void CompleteGestureDrag(const ui::GestureEvent& gesture); 157 void CompleteGestureDrag(const ui::GestureEvent& gesture);
165 void CancelGestureDrag(); 158 void CancelGestureDrag();
166 159
167 // Set an animation duration override for the show / hide animation of the 160 // Set an animation duration override for the show / hide animation of the
168 // shelf. Specifying 0 leads to use the default. 161 // shelf. Specifying 0 leads to use the default.
169 void SetAnimationDurationOverride(int duration_override_in_ms); 162 void SetAnimationDurationOverride(int duration_override_in_ms);
170 163
171 // Overridden from SnapLayoutManager: 164 // Overridden from SnapLayoutManager:
172 void OnWindowResized() override; 165 void OnWindowResized() override;
173 void SetChildBounds(aura::Window* child, 166 void SetChildBounds(aura::Window* child,
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 396
404 // The show hide animation duration override or 0 for default. 397 // The show hide animation duration override or 0 for default.
405 int duration_override_in_ms_; 398 int duration_override_in_ms_;
406 399
407 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); 400 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager);
408 }; 401 };
409 402
410 } // namespace ash 403 } // namespace ash
411 404
412 #endif // ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ 405 #endif // ASH_SHELF_SHELF_LAYOUT_MANAGER_H_
OLDNEW
« no previous file with comments | « ash/ash_switches.cc ('k') | ash/shelf/shelf_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698