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

Unified Diff: ui/aura_shell/shell_accelerator_controller.cc

Issue 8771015: Rename Desktop->RootWindow. (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/shell.cc ('k') | ui/aura_shell/shell_accelerator_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura_shell/shell_accelerator_controller.cc
===================================================================
--- ui/aura_shell/shell_accelerator_controller.cc (revision 113260)
+++ ui/aura_shell/shell_accelerator_controller.cc (working copy)
@@ -5,8 +5,8 @@
#include "ui/aura_shell/shell_accelerator_controller.h"
#include "base/logging.h"
-#include "ui/aura/desktop.h"
#include "ui/aura/event.h"
+#include "ui/aura/root_window.h"
#include "ui/aura_shell/shell.h"
#include "ui/base/accelerators/accelerator.h"
#include "ui/base/accelerators/accelerator_manager.h"
@@ -24,7 +24,7 @@
#if !defined(NDEBUG)
ROTATE_SCREEN,
PRINT_LAYER_HIERARCHY,
- TOGGLE_DESKTOP_FULL_SCREEN,
+ TOGGLE_ROOT_WINDOW_FULL_SCREEN,
#endif
};
@@ -42,7 +42,7 @@
{ ui::VKEY_PRINT, false, false, false, TAKE_SCREENSHOT },
#if !defined(NDEBUG)
{ ui::VKEY_HOME, false, true, false, ROTATE_SCREEN },
- { ui::VKEY_F11, false, true, false, TOGGLE_DESKTOP_FULL_SCREEN },
+ { ui::VKEY_F11, false, true, false, TOGGLE_ROOT_WINDOW_FULL_SCREEN },
{ ui::VKEY_L, false, false, true, PRINT_LAYER_HIERARCHY },
#endif
};
@@ -87,23 +87,23 @@
case 13: delta = 180; break;
}
i = (i + 1) % 14;
- aura::Desktop::GetInstance()->layer()->GetAnimator()->set_preemption_strategy(
- ui::LayerAnimator::REPLACE_QUEUED_ANIMATIONS);
+ aura::RootWindow::GetInstance()->layer()->GetAnimator()->
+ set_preemption_strategy(ui::LayerAnimator::REPLACE_QUEUED_ANIMATIONS);
scoped_ptr<ui::LayerAnimationSequence> screen_rotation(
new ui::LayerAnimationSequence(new ui::ScreenRotation(delta)));
- screen_rotation->AddObserver(aura::Desktop::GetInstance());
- aura::Desktop::GetInstance()->layer()->GetAnimator()->StartAnimation(
+ screen_rotation->AddObserver(aura::RootWindow::GetInstance());
+ aura::RootWindow::GetInstance()->layer()->GetAnimator()->StartAnimation(
screen_rotation.release());
return true;
}
-bool HandleToggleDesktopFullScreen() {
- aura::Desktop::GetInstance()->ToggleFullScreen();
+bool HandleToggleRootWindowFullScreen() {
+ aura::RootWindow::GetInstance()->ToggleFullScreen();
return true;
}
bool HandlePrintLayerHierarchy() {
- ui::PrintLayerHierarchy(aura::Desktop::GetInstance()->layer());
+ ui::PrintLayerHierarchy(aura::RootWindow::GetInstance()->layer());
return true;
}
#endif
@@ -174,8 +174,8 @@
#if !defined(NDEBUG)
case ROTATE_SCREEN:
return HandleRotateScreen();
- case TOGGLE_DESKTOP_FULL_SCREEN:
- return HandleToggleDesktopFullScreen();
+ case TOGGLE_ROOT_WINDOW_FULL_SCREEN:
+ return HandleToggleRootWindowFullScreen();
case PRINT_LAYER_HIERARCHY:
return HandlePrintLayerHierarchy();
#endif
« no previous file with comments | « ui/aura_shell/shell.cc ('k') | ui/aura_shell/shell_accelerator_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698