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

Side by Side Diff: chrome/browser/ui/webui/options2/chromeos/display_options_handler.cc

Issue 10857071: Options: Rename options2 namespace to options. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fix. Created 8 years, 4 months 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/webui/options2/chromeos/display_options_handler.h" 5 #include "chrome/browser/ui/webui/options2/chromeos/display_options_handler.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "ash/display/display_controller.h" 9 #include "ash/display/display_controller.h"
10 #include "ash/display/output_configurator_animation.h" 10 #include "ash/display/output_configurator_animation.h"
11 #include "ash/shell.h" 11 #include "ash/shell.h"
12 #include "base/bind.h" 12 #include "base/bind.h"
13 #include "base/json/json_value_converter.h" 13 #include "base/json/json_value_converter.h"
14 #include "base/logging.h" 14 #include "base/logging.h"
15 #include "base/stringprintf.h" 15 #include "base/stringprintf.h"
16 #include "base/values.h" 16 #include "base/values.h"
17 #include "chrome/browser/prefs/pref_service.h" 17 #include "chrome/browser/prefs/pref_service.h"
18 #include "chrome/browser/profiles/profile.h" 18 #include "chrome/browser/profiles/profile.h"
19 #include "chrome/common/pref_names.h" 19 #include "chrome/common/pref_names.h"
20 #include "chromeos/display/output_configurator.h" 20 #include "chromeos/display/output_configurator.h"
21 #include "content/public/browser/web_ui.h" 21 #include "content/public/browser/web_ui.h"
22 #include "grit/generated_resources.h" 22 #include "grit/generated_resources.h"
23 #include "ui/aura/env.h" 23 #include "ui/aura/env.h"
24 #include "ui/aura/display_manager.h" 24 #include "ui/aura/display_manager.h"
25 #include "ui/base/l10n/l10n_util.h" 25 #include "ui/base/l10n/l10n_util.h"
26 #include "ui/gfx/display.h" 26 #include "ui/gfx/display.h"
27 #include "ui/gfx/rect.h" 27 #include "ui/gfx/rect.h"
28 28
29 namespace chromeos { 29 namespace chromeos {
30 namespace options2 { 30 namespace options {
31 31
32 using ash::internal::DisplayController; 32 using ash::internal::DisplayController;
33 33
34 DisplayOptionsHandler::DisplayOptionsHandler() { 34 DisplayOptionsHandler::DisplayOptionsHandler() {
35 aura::Env::GetInstance()->display_manager()->AddObserver(this); 35 aura::Env::GetInstance()->display_manager()->AddObserver(this);
36 } 36 }
37 37
38 DisplayOptionsHandler::~DisplayOptionsHandler() { 38 DisplayOptionsHandler::~DisplayOptionsHandler() {
39 aura::Env::GetInstance()->display_manager()->RemoveObserver(this); 39 aura::Env::GetInstance()->display_manager()->RemoveObserver(this);
40 } 40 }
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 DCHECK_LE(DisplayController::TOP, layout); 185 DCHECK_LE(DisplayController::TOP, layout);
186 DCHECK_GE(DisplayController::LEFT, layout); 186 DCHECK_GE(DisplayController::LEFT, layout);
187 ash::Shell::GetInstance()->output_configurator_animation()-> 187 ash::Shell::GetInstance()->output_configurator_animation()->
188 StartFadeOutAnimation(base::Bind( 188 StartFadeOutAnimation(base::Bind(
189 &DisplayOptionsHandler::FadeOutForDisplayLayoutFinished, 189 &DisplayOptionsHandler::FadeOutForDisplayLayoutFinished,
190 base::Unretained(this), 190 base::Unretained(this),
191 static_cast<int>(layout), 191 static_cast<int>(layout),
192 static_cast<int>(offset))); 192 static_cast<int>(offset)));
193 } 193 }
194 194
195 } // namespace options2 195 } // namespace options
196 } // namespace chromeos 196 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698