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

Unified Diff: ash/shell.cc

Issue 8976012: chromeos: Implement power button animations for Aura. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use aura::RootWindow::ShowCursor() to hide cursor 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
Index: ash/shell.cc
diff --git a/ash/shell.cc b/ash/shell.cc
index 935b1e3c1f8bda73fd5e8fb01fa2b84c5aa59578..590a1c1dac41b74de8cdf1f2e34f4c3a25add799 100644
--- a/ash/shell.cc
+++ b/ash/shell.cc
@@ -23,6 +23,7 @@
#include "ash/wm/default_container_event_filter.h"
#include "ash/wm/default_container_layout_manager.h"
#include "ash/wm/modal_container_layout_manager.h"
+#include "ash/wm/power_button_controller.h"
#include "ash/wm/root_window_event_filter.h"
#include "ash/wm/root_window_layout_manager.h"
#include "ash/wm/shadow_controller.h"
@@ -224,23 +225,21 @@ void Shell::Init() {
// Force a layout.
root_window->layout_manager()->OnWindowResized();
- // Initialize InputMethodEventFilter. The filter must be added first since it
- // has the highest priority.
+ // InputMethodEventFilter must be added first since it has the highest
+ // priority.
DCHECK(!GetRootWindowEventFilterCount());
input_method_filter_.reset(new internal::InputMethodEventFilter);
AddRootWindowEventFilter(input_method_filter_.get());
- // Initialize AcceleratorFilter.
accelerator_filter_.reset(new internal::AcceleratorFilter);
AddRootWindowEventFilter(accelerator_filter_.get());
- // Initialize TooltipController.
tooltip_controller_.reset(new internal::TooltipController);
AddRootWindowEventFilter(tooltip_controller_.get());
aura::client::SetTooltipClient(tooltip_controller_.get());
- // Initialize drag drop controller.
drag_drop_controller_.reset(new internal::DragDropController);
+ power_button_controller_.reset(new PowerButtonController);
}
bool Shell::DefaultToCompactWindowMode(const gfx::Size& monitor_size,

Powered by Google App Engine
This is Rietveld 408576698