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

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

Issue 2540313002: Split //ui/display and create //ui/display/manager. (Closed)
Patch Set: Cleanup export header. Created 4 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | components/arc/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <memory> 10 #include <memory>
(...skipping 12 matching lines...) Expand all
23 #include "base/strings/string_number_conversions.h" 23 #include "base/strings/string_number_conversions.h"
24 #include "base/values.h" 24 #include "base/values.h"
25 #include "chrome/browser/chromeos/display/display_preferences.h" 25 #include "chrome/browser/chromeos/display/display_preferences.h"
26 #include "chrome/browser/ui/ash/ash_util.h" 26 #include "chrome/browser/ui/ash/ash_util.h"
27 #include "chrome/grit/generated_resources.h" 27 #include "chrome/grit/generated_resources.h"
28 #include "chromeos/chromeos_switches.h" 28 #include "chromeos/chromeos_switches.h"
29 #include "content/public/browser/user_metrics.h" 29 #include "content/public/browser/user_metrics.h"
30 #include "content/public/browser/web_ui.h" 30 #include "content/public/browser/web_ui.h"
31 #include "ui/base/l10n/l10n_util.h" 31 #include "ui/base/l10n/l10n_util.h"
32 #include "ui/display/display.h" 32 #include "ui/display/display.h"
33 #include "ui/display/manager/display_layout.h" 33 #include "ui/display/display_layout.h"
34 #include "ui/display/manager/display_layout_builder.h" 34 #include "ui/display/display_layout_builder.h"
35 #include "ui/display/manager/display_manager.h" 35 #include "ui/display/manager/display_manager.h"
36 #include "ui/display/screen.h" 36 #include "ui/display/screen.h"
37 #include "ui/display/types/display_constants.h" 37 #include "ui/display/types/display_constants.h"
38 #include "ui/gfx/geometry/rect.h" 38 #include "ui/gfx/geometry/rect.h"
39 #include "ui/gfx/geometry/size_conversions.h" 39 #include "ui/gfx/geometry/size_conversions.h"
40 40
41 namespace chromeos { 41 namespace chromeos {
42 namespace options { 42 namespace options {
43 namespace { 43 namespace {
44 44
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 if (!args->GetBoolean(0, &enable)) 579 if (!args->GetBoolean(0, &enable))
580 NOTREACHED(); 580 NOTREACHED();
581 581
582 GetDisplayManager()->SetDefaultMultiDisplayModeForCurrentDisplays( 582 GetDisplayManager()->SetDefaultMultiDisplayModeForCurrentDisplays(
583 enable ? display::DisplayManager::UNIFIED 583 enable ? display::DisplayManager::UNIFIED
584 : display::DisplayManager::EXTENDED); 584 : display::DisplayManager::EXTENDED);
585 } 585 }
586 586
587 } // namespace options 587 } // namespace options
588 } // namespace chromeos 588 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | components/arc/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698