| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "ui/display/chromeos/display_configurator.h" | 5 #include "ui/display/chromeos/display_configurator.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <cmath> | 9 #include <cmath> |
| 10 #include <cstdarg> | 10 #include <cstdarg> |
| 11 #include <map> | 11 #include <map> |
| 12 #include <string> | 12 #include <string> |
| 13 #include <vector> | 13 #include <vector> |
| 14 | 14 |
| 15 #include "base/compiler_specific.h" | 15 #include "base/compiler_specific.h" |
| 16 #include "base/format_macros.h" | 16 #include "base/format_macros.h" |
| 17 #include "base/memory/scoped_vector.h" | 17 #include "base/memory/scoped_vector.h" |
| 18 #include "base/message_loop/message_loop.h" | 18 #include "base/message_loop/message_loop.h" |
| 19 #include "base/strings/stringprintf.h" | 19 #include "base/strings/stringprintf.h" |
| 20 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
| 21 #include "ui/display/chromeos/test/test_display_snapshot.h" | 21 #include "ui/display/chromeos/test/test_display_snapshot.h" |
| 22 #include "ui/display/types/chromeos/display_mode.h" | 22 #include "ui/display/types/display_mode.h" |
| 23 #include "ui/display/types/chromeos/native_display_delegate.h" | 23 #include "ui/display/types/native_display_delegate.h" |
| 24 | 24 |
| 25 namespace ui { | 25 namespace ui { |
| 26 | 26 |
| 27 namespace { | 27 namespace { |
| 28 | 28 |
| 29 // Strings returned by TestNativeDisplayDelegate::GetActionsAndClear() to | 29 // Strings returned by TestNativeDisplayDelegate::GetActionsAndClear() to |
| 30 // describe various actions that were performed. | 30 // describe various actions that were performed. |
| 31 const char kInitXRandR[] = "init"; | 31 const char kInitXRandR[] = "init"; |
| 32 const char kGrab[] = "grab"; | 32 const char kGrab[] = "grab"; |
| 33 const char kUngrab[] = "ungrab"; | 33 const char kUngrab[] = "ungrab"; |
| (...skipping 1233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1267 gfx::Point(0, | 1267 gfx::Point(0, |
| 1268 modes[0]->size().height() + | 1268 modes[0]->size().height() + |
| 1269 DisplayConfigurator::kVerticalGap)) | 1269 DisplayConfigurator::kVerticalGap)) |
| 1270 .c_str(), | 1270 .c_str(), |
| 1271 kUngrab, | 1271 kUngrab, |
| 1272 NULL), | 1272 NULL), |
| 1273 log_->GetActionsAndClear()); | 1273 log_->GetActionsAndClear()); |
| 1274 } | 1274 } |
| 1275 | 1275 |
| 1276 } // namespace ui | 1276 } // namespace ui |
| OLD | NEW |