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

Unified Diff: ui/aura_shell/activation_controller.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/window_types.h ('k') | ui/aura_shell/activation_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura_shell/activation_controller.cc
===================================================================
--- ui/aura_shell/activation_controller.cc (revision 114849)
+++ ui/aura_shell/activation_controller.cc (working copy)
@@ -6,7 +6,6 @@
#include "base/auto_reset.h"
#include "ui/aura/client/activation_delegate.h"
-#include "ui/aura/client/aura_constants.h"
#include "ui/aura/root_window.h"
#include "ui/aura/window.h"
#include "ui/aura/window_delegate.h"
@@ -97,8 +96,9 @@
if (!window->Contains(window->GetFocusManager()->GetFocusedWindow()))
window->GetFocusManager()->SetFocusedWindow(window);
- aura::RootWindow::GetInstance()->SetProperty(aura::kRootWindowActiveWindow,
- window);
+ aura::RootWindow::GetInstance()->SetProperty(
+ aura::client::kRootWindowActiveWindow,
+ window);
// Invoke OnLostActive after we've changed the active window. That way if the
// delegate queries for active state it doesn't think the window is still
// active.
@@ -119,7 +119,7 @@
aura::Window* ActivationController::GetActiveWindow() {
return reinterpret_cast<aura::Window*>(
aura::RootWindow::GetInstance()->GetProperty(
- aura::kRootWindowActiveWindow));
+ aura::client::kRootWindowActiveWindow));
}
bool ActivationController::CanFocusWindow(aura::Window* window) const {
@@ -140,8 +140,9 @@
// Clear the property before activating something else, since
// ActivateWindow() will attempt to notify the window stored in this value
// otherwise.
- aura::RootWindow::GetInstance()->SetProperty(aura::kRootWindowActiveWindow,
- NULL);
+ aura::RootWindow::GetInstance()->SetProperty(
+ aura::client::kRootWindowActiveWindow,
+ NULL);
ActivateWindow(GetTopmostWindowToActivate(window));
}
window->RemoveObserver(this);
« no previous file with comments | « ui/aura/window_types.h ('k') | ui/aura_shell/activation_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698