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

Unified Diff: ash/shelf/shelf_layout_manager.cc

Issue 198413003: Enable immersive fullscreen on Windows Ash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: ash/shelf/shelf_layout_manager.cc
diff --git a/ash/shelf/shelf_layout_manager.cc b/ash/shelf/shelf_layout_manager.cc
index f13ea079023459d5b94dccd053abe87324ffcd63..9c5acabaacb4bfef7124735f9d188dba22ccf511 100644
--- a/ash/shelf/shelf_layout_manager.cc
+++ b/ash/shelf/shelf_layout_manager.cc
@@ -393,19 +393,11 @@ void ShelfLayoutManager::RemoveObserver(ShelfLayoutManagerObserver* observer) {
// ShelfLayoutManager, Gesture functions:
void ShelfLayoutManager::OnGestureEdgeSwipe(const ui::GestureEvent& gesture) {
- // Edge swipe should exit fullscreen, show the tray, and disable auto-hide.
-
- if (workspace_controller_->GetWindowState() ==
- WORKSPACE_WINDOW_STATE_FULL_SCREEN) {
pkotwicz 2014/03/13 18:08:45 Do we still want this behavior when ash::wm::Windo
zturner 2014/03/13 19:28:09 Good point, I'll make this fix.
- accelerators::ToggleFullscreen();
- }
-
- ShelfVisibilityState visibility = CalculateShelfVisibility();
- if (visibility == SHELF_AUTO_HIDE &&
- CalculateAutoHideState(visibility) == SHELF_AUTO_HIDE_HIDDEN) {
- SetState(SHELF_VISIBLE);
- SetAutoHideBehavior(SHELF_AUTO_HIDE_BEHAVIOR_NEVER);
- }
+ // Edge swipe should display the shelf.
+ gesture_drag_auto_hide_state_ = SHELF_AUTO_HIDE_SHOWN;
+ gesture_drag_status_ = GESTURE_DRAG_COMPLETE_IN_PROGRESS;
pkotwicz 2014/03/13 18:08:45 Shouldn't we be calling SetAutoHideBehavior() or U
zturner 2014/03/13 19:28:09 Unfortunately this class and the logic is a little
pkotwicz 2014/03/13 19:52:48 Is it possible for a user to do an edge swipe whil
+ SetState(SHELF_AUTO_HIDE);
+ gesture_drag_status_ = GESTURE_DRAG_NONE;
}
void ShelfLayoutManager::StartGestureDrag(const ui::GestureEvent& gesture) {
« no previous file with comments | « no previous file | ash/shelf/shelf_layout_manager_unittest.cc » ('j') | ash/wm/immersive_fullscreen_controller.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698