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

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

Issue 143023003: Fully support the autohide shelf option for touch UI on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to ToT Created 6 years, 10 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 | « no previous file | 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 (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_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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 ShelfWidget* shelf_widget() { return shelf_; } 147 ShelfWidget* shelf_widget() { return shelf_; }
148 148
149 // Sets whether any windows overlap the shelf. If a window overlaps the shelf 149 // Sets whether any windows overlap the shelf. If a window overlaps the shelf
150 // the shelf renders slightly differently. 150 // the shelf renders slightly differently.
151 void SetWindowOverlapsShelf(bool value); 151 void SetWindowOverlapsShelf(bool value);
152 bool window_overlaps_shelf() const { return window_overlaps_shelf_; } 152 bool window_overlaps_shelf() const { return window_overlaps_shelf_; }
153 153
154 void AddObserver(ShelfLayoutManagerObserver* observer); 154 void AddObserver(ShelfLayoutManagerObserver* observer);
155 void RemoveObserver(ShelfLayoutManagerObserver* observer); 155 void RemoveObserver(ShelfLayoutManagerObserver* observer);
156 156
157 // Gesture dragging related functions: 157 // Gesture related functions:
158 void OnGestureEdgeSwipe(const ui::GestureEvent& gesture);
158 void StartGestureDrag(const ui::GestureEvent& gesture); 159 void StartGestureDrag(const ui::GestureEvent& gesture);
159 enum DragState { 160 enum DragState {
160 DRAG_SHELF, 161 DRAG_SHELF,
161 DRAG_TRAY 162 DRAG_TRAY
162 }; 163 };
163 // Returns DRAG_SHELF if the gesture should continue to drag the entire shelf. 164 // Returns DRAG_SHELF if the gesture should continue to drag the entire shelf.
164 // Returns DRAG_TRAY if the gesture can start dragging the tray-bubble from 165 // Returns DRAG_TRAY if the gesture can start dragging the tray-bubble from
165 // this point on. 166 // this point on.
166 DragState UpdateGestureDrag(const ui::GestureEvent& gesture); 167 DragState UpdateGestureDrag(const ui::GestureEvent& gesture);
167 void CompleteGestureDrag(const ui::GestureEvent& gesture); 168 void CompleteGestureDrag(const ui::GestureEvent& gesture);
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 // The show hide animation duration override or 0 for default. 412 // The show hide animation duration override or 0 for default.
412 int duration_override_in_ms_; 413 int duration_override_in_ms_;
413 414
414 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); 415 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager);
415 }; 416 };
416 417
417 } // namespace internal 418 } // namespace internal
418 } // namespace ash 419 } // namespace ash
419 420
420 #endif // ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ 421 #endif // ASH_SHELF_SHELF_LAYOUT_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | ash/shelf/shelf_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698