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

Unified Diff: ui/aura_shell/default_container_layout_manager.cc

Issue 8968022: Shell related switches -> aura shell switches. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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 | « ui/aura_shell/aura_shell_switches.cc ('k') | ui/aura_shell/default_container_layout_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura_shell/default_container_layout_manager.cc
===================================================================
--- ui/aura_shell/default_container_layout_manager.cc (revision 114849)
+++ ui/aura_shell/default_container_layout_manager.cc (working copy)
@@ -10,7 +10,6 @@
#include "ui/aura/screen_aura.h"
#include "ui/aura/window.h"
#include "ui/aura/window_observer.h"
-#include "ui/aura/window_types.h"
#include "ui/aura_shell/property_util.h"
#include "ui/aura_shell/show_state_controller.h"
#include "ui/aura_shell/window_util.h"
@@ -96,11 +95,13 @@
}
void DefaultContainerLayoutManager::OnWindowAddedToLayout(aura::Window* child) {
- if (child->type() != aura::WINDOW_TYPE_NORMAL || child->transient_parent())
+ if (child->type() != aura::client::WINDOW_TYPE_NORMAL ||
+ child->transient_parent()) {
return;
+ }
- if (!child->GetProperty(aura::kShowStateKey))
- child->SetIntProperty(aura::kShowStateKey, ui::SHOW_STATE_NORMAL);
+ if (!child->GetProperty(aura::client::kShowStateKey))
+ child->SetIntProperty(aura::client::kShowStateKey, ui::SHOW_STATE_NORMAL);
child->AddObserver(show_state_controller_.get());
@@ -144,7 +145,7 @@
gfx::Rect adjusted_bounds = requested_bounds;
// First, calculate the adjusted bounds.
- if (child->type() != aura::WINDOW_TYPE_NORMAL ||
+ if (child->type() != aura::client::WINDOW_TYPE_NORMAL ||
workspace_manager_->layout_in_progress() ||
child->transient_parent()) {
// Use the requested bounds as is.
@@ -163,7 +164,7 @@
}
ui::WindowShowState show_state = static_cast<ui::WindowShowState>(
- child->GetIntProperty(aura::kShowStateKey));
+ child->GetIntProperty(aura::client::kShowStateKey));
// Second, check if the window is either maximized or in fullscreen mode.
if (show_state == ui::SHOW_STATE_MAXIMIZED ||
« no previous file with comments | « ui/aura_shell/aura_shell_switches.cc ('k') | ui/aura_shell/default_container_layout_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698