summaryrefslogtreecommitdiffstats
path: root/ash/wm
diff options
context:
space:
mode:
authorscottmg@chromium.org <scottmg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-14 01:10:46 +0000
committerscottmg@chromium.org <scottmg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-14 01:10:46 +0000
commitd8f1004bcf08a2c0d629198a3695808b3a400487 (patch)
tree77d0c11dfba7586a6a85347cabb2c3e83d8735ce /ash/wm
parente32934786cf3edc23e2055c7f898d1ef77eced59 (diff)
downloadchromium_src-d8f1004bcf08a2c0d629198a3695808b3a400487.zip
chromium_src-d8f1004bcf08a2c0d629198a3695808b3a400487.tar.gz
chromium_src-d8f1004bcf08a2c0d629198a3695808b3a400487.tar.bz2
re-re-land of https://codereview.chromium.org/11364053/
First attempt here: https://codereview.chromium.org/11364053/ : failed linux_chromeos_asan Second attempt here: http://codereview.chromium.org/11362216/ : collided with renames in http://crrev.com/167418 This cl is the same as the second attempt, with the namespaces and includes updated for file renames. TBR=ben@chromium.org BUG=128578 Review URL: https://chromiumcodereview.appspot.com/11377140 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@167547 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/wm')
-rw-r--r--ash/wm/stacking_controller.cc8
-rw-r--r--ash/wm/stacking_controller.h10
2 files changed, 9 insertions, 9 deletions
diff --git a/ash/wm/stacking_controller.cc b/ash/wm/stacking_controller.cc
index c2f6545..a9df31d 100644
--- a/ash/wm/stacking_controller.cc
+++ b/ash/wm/stacking_controller.cc
@@ -17,7 +17,6 @@
#include "ui/base/ui_base_types.h"
namespace ash {
-namespace internal {
namespace {
// Find a root window that matches the |bounds|. If the virtual screen
@@ -56,7 +55,6 @@ bool IsWindowModal(aura::Window* window) {
// StackingController, public:
StackingController::StackingController() {
- aura::client::SetStackingClient(this);
}
StackingController::~StackingController() {
@@ -65,7 +63,8 @@ StackingController::~StackingController() {
////////////////////////////////////////////////////////////////////////////////
// StackingController, aura::StackingClient implementation:
-aura::Window* StackingController::GetDefaultParent(aura::Window* window,
+aura::Window* StackingController::GetDefaultParent(aura::Window* context,
+ aura::Window* window,
const gfx::Rect& bounds) {
aura::RootWindow* target_root = NULL;
if (window->transient_parent()) {
@@ -149,10 +148,9 @@ StackingController::GetAlwaysOnTopController(aura::RootWindow* root_window) {
root_window->GetChildById(
internal::kShellWindowId_AlwaysOnTopContainer));
// RootWindow owns the AlwaysOnTopController object.
- root_window->SetProperty(kAlwaysOnTopControllerKey, controller);
+ root_window->SetProperty(internal::kAlwaysOnTopControllerKey, controller);
}
return controller;
}
-} // namespace internal
} // namespace ash
diff --git a/ash/wm/stacking_controller.h b/ash/wm/stacking_controller.h
index ae90555..21611ed 100644
--- a/ash/wm/stacking_controller.h
+++ b/ash/wm/stacking_controller.h
@@ -5,6 +5,7 @@
#ifndef ASH_WM_STACKING_CONTROLLER_H_
#define ASH_WM_STACKING_CONTROLLER_H_
+#include "ash/ash_export.h"
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "base/memory/scoped_ptr.h"
@@ -15,17 +16,19 @@ class RootWindow;
}
namespace ash {
-namespace internal {
+namespace internal {
class AlwaysOnTopController;
+}
-class StackingController : public aura::client::StackingClient {
+class ASH_EXPORT StackingController : public aura::client::StackingClient {
public:
StackingController();
virtual ~StackingController();
// Overridden from aura::client::StackingClient:
- virtual aura::Window* GetDefaultParent(aura::Window* window,
+ virtual aura::Window* GetDefaultParent(aura::Window* context,
+ aura::Window* window,
const gfx::Rect& bounds) OVERRIDE;
private:
@@ -44,7 +47,6 @@ class StackingController : public aura::client::StackingClient {
DISALLOW_COPY_AND_ASSIGN(StackingController);
};
-} // namespace internal
} // namespace ash
#endif // ASH_WM_STACKING_CONTROLLER_H_