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

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: 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
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.

Powered by Google App Engine
This is Rietveld 408576698