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

Unified Diff: chrome/browser/ui/webui/options/chromeos/display_options_handler.cc

Issue 11363124: Move DisplayManager and DisplayChangeObserverX11 from aura to ash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix rebase Created 8 years, 1 month 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 | « chrome/browser/ui/webui/options/chromeos/display_options_handler.h ('k') | chrome/chrome_tests.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/options/chromeos/display_options_handler.cc
diff --git a/chrome/browser/ui/webui/options/chromeos/display_options_handler.cc b/chrome/browser/ui/webui/options/chromeos/display_options_handler.cc
index b0162736ee987176e935291d086d808062fca18f..6266096818daaa229bc9b427814caf004fa260a3 100644
--- a/chrome/browser/ui/webui/options/chromeos/display_options_handler.cc
+++ b/chrome/browser/ui/webui/options/chromeos/display_options_handler.cc
@@ -7,6 +7,7 @@
#include <string>
#include "ash/display/display_controller.h"
+#include "ash/display/display_manager.h"
#include "ash/display/output_configurator_animation.h"
#include "ash/screen_ash.h"
#include "ash/shell.h"
@@ -22,8 +23,6 @@
#include "chromeos/display/output_configurator.h"
#include "content/public/browser/web_ui.h"
#include "grit/generated_resources.h"
-#include "ui/aura/env.h"
-#include "ui/aura/display_manager.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/gfx/display.h"
#include "ui/gfx/rect.h"
@@ -33,11 +32,11 @@ namespace chromeos {
namespace options {
DisplayOptionsHandler::DisplayOptionsHandler() {
- aura::Env::GetInstance()->display_manager()->AddObserver(this);
+ ash::Shell::GetScreen()->AddObserver(this);
}
DisplayOptionsHandler::~DisplayOptionsHandler() {
- aura::Env::GetInstance()->display_manager()->RemoveObserver(this);
+ ash::Shell::GetScreen()->RemoveObserver(this);
}
void DisplayOptionsHandler::GetLocalizedValues(
@@ -133,8 +132,8 @@ void DisplayOptionsHandler::UpdateDisplaySectionVisibility() {
}
void DisplayOptionsHandler::SendDisplayInfo() {
- aura::DisplayManager* display_manager =
- aura::Env::GetInstance()->display_manager();
+ ash::internal::DisplayManager* display_manager =
+ ash::Shell::GetInstance()->display_manager();
ash::DisplayController* display_controller =
ash::Shell::GetInstance()->display_controller();
chromeos::OutputConfigurator* output_configurator =
« no previous file with comments | « chrome/browser/ui/webui/options/chromeos/display_options_handler.h ('k') | chrome/chrome_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698