| OLD | NEW |
| 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 "ash/display/display_manager.h" | 5 #include "ash/display/display_manager.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <cmath> | 8 #include <cmath> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 #include "base/metrics/histogram.h" | 22 #include "base/metrics/histogram.h" |
| 23 #include "base/strings/string_number_conversions.h" | 23 #include "base/strings/string_number_conversions.h" |
| 24 #include "base/strings/string_split.h" | 24 #include "base/strings/string_split.h" |
| 25 #include "base/strings/stringprintf.h" | 25 #include "base/strings/stringprintf.h" |
| 26 #include "base/strings/utf_string_conversions.h" | 26 #include "base/strings/utf_string_conversions.h" |
| 27 #include "grit/ash_strings.h" | 27 #include "grit/ash_strings.h" |
| 28 #include "ui/base/l10n/l10n_util.h" | 28 #include "ui/base/l10n/l10n_util.h" |
| 29 #include "ui/gfx/display.h" | 29 #include "ui/gfx/display.h" |
| 30 #include "ui/gfx/display_observer.h" | 30 #include "ui/gfx/display_observer.h" |
| 31 #include "ui/gfx/font_render_params.h" | 31 #include "ui/gfx/font_render_params.h" |
| 32 #include "ui/gfx/rect.h" | 32 #include "ui/gfx/geometry/rect.h" |
| 33 #include "ui/gfx/geometry/size_conversions.h" |
| 33 #include "ui/gfx/screen.h" | 34 #include "ui/gfx/screen.h" |
| 34 #include "ui/gfx/size_conversions.h" | |
| 35 | 35 |
| 36 #if defined(USE_X11) | 36 #if defined(USE_X11) |
| 37 #include "ui/base/x/x11_util.h" | 37 #include "ui/base/x/x11_util.h" |
| 38 #endif | 38 #endif |
| 39 | 39 |
| 40 #if defined(OS_CHROMEOS) | 40 #if defined(OS_CHROMEOS) |
| 41 #include "ash/display/display_configurator_animation.h" | 41 #include "ash/display/display_configurator_animation.h" |
| 42 #include "base/sys_info.h" | 42 #include "base/sys_info.h" |
| 43 #endif | 43 #endif |
| 44 | 44 |
| (...skipping 1206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1251 new_secondary_origin.Offset(-secondary_bounds.width(), offset); | 1251 new_secondary_origin.Offset(-secondary_bounds.width(), offset); |
| 1252 break; | 1252 break; |
| 1253 } | 1253 } |
| 1254 gfx::Insets insets = secondary_display->GetWorkAreaInsets(); | 1254 gfx::Insets insets = secondary_display->GetWorkAreaInsets(); |
| 1255 secondary_display->set_bounds( | 1255 secondary_display->set_bounds( |
| 1256 gfx::Rect(new_secondary_origin, secondary_bounds.size())); | 1256 gfx::Rect(new_secondary_origin, secondary_bounds.size())); |
| 1257 secondary_display->UpdateWorkAreaFromInsets(insets); | 1257 secondary_display->UpdateWorkAreaFromInsets(insets); |
| 1258 } | 1258 } |
| 1259 | 1259 |
| 1260 } // namespace ash | 1260 } // namespace ash |
| OLD | NEW |