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

Side by Side Diff: ash/wm/maximize_mode/maximize_mode_window_state.cc

Issue 594383002: Change behaviour of the Alt-] and Alt-[ keys so that it cycles through SnapLeft/SnapRight to DockLe… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@event
Patch Set: Fix comment Created 6 years, 2 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/wm/lock_window_state.cc ('k') | ash/wm/panels/panel_layout_manager.h » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "ash/wm/maximize_mode/maximize_mode_window_state.h" 5 #include "ash/wm/maximize_mode/maximize_mode_window_state.h"
6 6
7 #include "ash/display/display_controller.h" 7 #include "ash/display/display_controller.h"
8 #include "ash/screen_util.h" 8 #include "ash/screen_util.h"
9 #include "ash/shell.h" 9 #include "ash/shell.h"
10 #include "ash/shell_window_ids.h" 10 #include "ash/shell_window_ids.h"
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 case wm::WM_EVENT_TOGGLE_FULLSCREEN: 131 case wm::WM_EVENT_TOGGLE_FULLSCREEN:
132 ToggleFullScreen(window_state, window_state->delegate()); 132 ToggleFullScreen(window_state, window_state->delegate());
133 break; 133 break;
134 case wm::WM_EVENT_FULLSCREEN: 134 case wm::WM_EVENT_FULLSCREEN:
135 UpdateWindow(window_state, wm::WINDOW_STATE_TYPE_FULLSCREEN, true); 135 UpdateWindow(window_state, wm::WINDOW_STATE_TYPE_FULLSCREEN, true);
136 break; 136 break;
137 case wm::WM_EVENT_TOGGLE_MAXIMIZE_CAPTION: 137 case wm::WM_EVENT_TOGGLE_MAXIMIZE_CAPTION:
138 case wm::WM_EVENT_TOGGLE_VERTICAL_MAXIMIZE: 138 case wm::WM_EVENT_TOGGLE_VERTICAL_MAXIMIZE:
139 case wm::WM_EVENT_TOGGLE_HORIZONTAL_MAXIMIZE: 139 case wm::WM_EVENT_TOGGLE_HORIZONTAL_MAXIMIZE:
140 case wm::WM_EVENT_TOGGLE_MAXIMIZE: 140 case wm::WM_EVENT_TOGGLE_MAXIMIZE:
141 case wm::WM_EVENT_CYCLE_SNAP_DOCK_LEFT:
142 case wm::WM_EVENT_CYCLE_SNAP_DOCK_RIGHT:
141 case wm::WM_EVENT_CENTER: 143 case wm::WM_EVENT_CENTER:
142 case wm::WM_EVENT_SNAP_LEFT: 144 case wm::WM_EVENT_SNAP_LEFT:
143 case wm::WM_EVENT_SNAP_RIGHT: 145 case wm::WM_EVENT_SNAP_RIGHT:
144 case wm::WM_EVENT_NORMAL: 146 case wm::WM_EVENT_NORMAL:
145 case wm::WM_EVENT_MAXIMIZE: 147 case wm::WM_EVENT_MAXIMIZE:
146 case wm::WM_EVENT_DOCK: 148 case wm::WM_EVENT_DOCK:
147 UpdateWindow(window_state, 149 UpdateWindow(window_state,
148 GetMaximizedOrCenteredWindowType(window_state), 150 GetMaximizedOrCenteredWindowType(window_state),
149 true); 151 true);
150 return; 152 return;
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 // avoid flashing. 310 // avoid flashing.
309 if (window_state->IsMaximized()) 311 if (window_state->IsMaximized())
310 window_state->SetBoundsDirectCrossFade(bounds_in_parent); 312 window_state->SetBoundsDirectCrossFade(bounds_in_parent);
311 else 313 else
312 window_state->SetBoundsDirectAnimated(bounds_in_parent); 314 window_state->SetBoundsDirectAnimated(bounds_in_parent);
313 } 315 }
314 } 316 }
315 } 317 }
316 318
317 } // namespace ash 319 } // namespace ash
OLDNEW
« no previous file with comments | « ash/wm/lock_window_state.cc ('k') | ash/wm/panels/panel_layout_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698