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

Unified Diff: ash/wm/window_state.cc

Issue 115153002: wm: public window_types. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ozone deps Created 7 years 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 | « ash/wm/window_positioner.cc ('k') | ash/wm/workspace/multi_window_resize_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/window_state.cc
diff --git a/ash/wm/window_state.cc b/ash/wm/window_state.cc
index 4bc1484f9b81e794f389f5daa5aa4ca381247462..806236920ccf3abc97c9d8b5698aa1f6261932eb 100644
--- a/ash/wm/window_state.cc
+++ b/ash/wm/window_state.cc
@@ -136,8 +136,7 @@ bool WindowState::CanActivate() const {
}
bool WindowState::CanSnap() const {
- if (!CanResize() ||
- window_->type() == aura::client::WINDOW_TYPE_PANEL ||
+ if (!CanResize() || window_->type() == ui::wm::WINDOW_TYPE_PANEL ||
window_->transient_parent())
return false;
// If a window has a maximum size defined, snapping may make it too big.
« no previous file with comments | « ash/wm/window_positioner.cc ('k') | ash/wm/workspace/multi_window_resize_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698