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

Unified Diff: ash/wm/window_state.cc

Issue 196063002: Move wm/core to wm namespace. (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
« no previous file with comments | « ash/wm/window_positioner.cc ('k') | ash/wm/window_util.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 e3e162794beb94ea6d137b1d02f9f0b58bd0ce79..939574131b13ccbb1b91901ff7c083608d9fbbdb 100644
--- a/ash/wm/window_state.cc
+++ b/ash/wm/window_state.cc
@@ -175,12 +175,12 @@ bool WindowState::CanResize() const {
}
bool WindowState::CanActivate() const {
- return views::corewm::CanActivateWindow(window_);
+ return ::wm::CanActivateWindow(window_);
}
bool WindowState::CanSnap() const {
if (!CanResize() || window_->type() == ui::wm::WINDOW_TYPE_PANEL ||
- views::corewm::GetTransientParent(window_))
+ ::wm::GetTransientParent(window_))
return false;
// If a window has a maximum size defined, snapping may make it too big.
// TODO(oshima): We probably should snap if possible.
@@ -383,7 +383,7 @@ void WindowState::SetBoundsDirectCrossFade(const gfx::Rect& new_bounds) {
// Specify |set_bounds| to true here to keep the old bounds in the child
// windows of |window|.
scoped_ptr<ui::LayerTreeOwner> old_layer_owner =
- views::corewm::RecreateLayers(window_);
+ ::wm::RecreateLayers(window_);
ui::Layer* old_layer = old_layer_owner->root();
DCHECK(old_layer);
ui::Layer* new_layer = window_->layer();
« no previous file with comments | « ash/wm/window_positioner.cc ('k') | ash/wm/window_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698