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

Unified Diff: ash/accelerators/accelerator_controller.cc

Issue 1157843009: Added wm::IsWindowUserPositionable(...) method in window_util.h. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added WindowState::IsUserPositionable() method. Created 5 years, 6 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
« no previous file with comments | « no previous file | ash/root_window_controller.cc » ('j') | ash/wm/default_state.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/accelerators/accelerator_controller.cc
diff --git a/ash/accelerators/accelerator_controller.cc b/ash/accelerators/accelerator_controller.cc
index 5a6dba781a213a8716945bd23ea31ceb75b55dd3..54d517d5d2b6dd1414bbf185993bac73da42cf62 100644
--- a/ash/accelerators/accelerator_controller.cc
+++ b/ash/accelerators/accelerator_controller.cc
@@ -465,8 +465,7 @@ bool CanHandleWindowSnapOrDock() {
// Disable window snapping shortcut key for full screen window due to
// http://crbug.com/135487.
return (window_state &&
- (window_state->window()->type() == ui::wm::WINDOW_TYPE_NORMAL ||
- window_state->window()->type() == ui::wm::WINDOW_TYPE_PANEL) &&
+ wm::IsWindowUserPositionable(window_state->window()) &&
oshima 2015/06/04 19:49:11 window_state->IsUserPositionable() ?
bruthig 2015/06/04 19:56:23 Done.
!window_state->IsFullscreen());
}
« no previous file with comments | « no previous file | ash/root_window_controller.cc » ('j') | ash/wm/default_state.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698