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

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

Issue 2355063002: Separate ash::test::DisplayManagerTestApi from ash (Closed)
Patch Set: rebased, cleanup Created 4 years, 2 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
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/options/chromeos/display_options_handler.h" 5 #include "chrome/browser/ui/webui/options/chromeos/display_options_handler.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
11 11
12 #include "ash/common/strings/grit/ash_strings.h" 12 #include "ash/common/strings/grit/ash_strings.h"
13 #include "ash/display/display_configuration_controller.h" 13 #include "ash/display/display_configuration_controller.h"
14 #include "ash/display/display_manager.h" 14 #include "ash/display/display_manager.h"
15 #include "ash/display/resolution_notification_controller.h" 15 #include "ash/display/resolution_notification_controller.h"
16 #include "ash/display/window_tree_host_manager.h" 16 #include "ash/display/window_tree_host_manager.h"
17 #include "ash/screen_util.h" 17 //#include "ash/screen_util.h"
18 #include "ash/shell.h"
18 #include "ash/shell.h" 19 #include "ash/shell.h"
19 #include "base/bind.h" 20 #include "base/bind.h"
20 #include "base/command_line.h" 21 #include "base/command_line.h"
21 #include "base/logging.h" 22 #include "base/logging.h"
22 #include "base/strings/string_number_conversions.h" 23 #include "base/strings/string_number_conversions.h"
23 #include "base/strings/stringprintf.h" 24 #include "base/strings/stringprintf.h"
24 #include "base/values.h" 25 #include "base/values.h"
25 #include "chrome/browser/chromeos/display/display_preferences.h" 26 #include "chrome/browser/chromeos/display/display_preferences.h"
26 #include "chrome/browser/ui/ash/ash_util.h" 27 #include "chrome/browser/ui/ash/ash_util.h"
27 #include "chrome/grit/generated_resources.h" 28 #include "chrome/grit/generated_resources.h"
(...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after
576 bool enable = false; 577 bool enable = false;
577 if (!args->GetBoolean(0, &enable)) 578 if (!args->GetBoolean(0, &enable))
578 NOTREACHED(); 579 NOTREACHED();
579 580
580 GetDisplayManager()->SetDefaultMultiDisplayModeForCurrentDisplays( 581 GetDisplayManager()->SetDefaultMultiDisplayModeForCurrentDisplays(
581 enable ? ash::DisplayManager::UNIFIED : ash::DisplayManager::EXTENDED); 582 enable ? ash::DisplayManager::UNIFIED : ash::DisplayManager::EXTENDED);
582 } 583 }
583 584
584 } // namespace options 585 } // namespace options
585 } // namespace chromeos 586 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698