| 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 "ui/aura/test/test_screen.h" | 5 #include "ui/aura/test/test_screen.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "ui/aura/env.h" | 8 #include "ui/aura/env.h" |
| 9 #include "ui/aura/root_window.h" | |
| 10 #include "ui/aura/window.h" | 9 #include "ui/aura/window.h" |
| 10 #include "ui/aura/window_event_dispatcher.h" |
| 11 #include "ui/aura/window_tree_host.h" | 11 #include "ui/aura/window_tree_host.h" |
| 12 #include "ui/gfx/geometry/size_conversions.h" | 12 #include "ui/gfx/geometry/size_conversions.h" |
| 13 #include "ui/gfx/native_widget_types.h" | 13 #include "ui/gfx/native_widget_types.h" |
| 14 #include "ui/gfx/rect_conversions.h" | 14 #include "ui/gfx/rect_conversions.h" |
| 15 #include "ui/gfx/screen.h" | 15 #include "ui/gfx/screen.h" |
| 16 | 16 |
| 17 namespace aura { | 17 namespace aura { |
| 18 | 18 |
| 19 // static | 19 // static |
| 20 TestScreen* TestScreen::Create() { | 20 TestScreen* TestScreen::Create() { |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 | 155 |
| 156 TestScreen::TestScreen(const gfx::Rect& screen_bounds) | 156 TestScreen::TestScreen(const gfx::Rect& screen_bounds) |
| 157 : dispatcher_(NULL), | 157 : dispatcher_(NULL), |
| 158 ui_scale_(1.0f) { | 158 ui_scale_(1.0f) { |
| 159 static int64 synthesized_display_id = 2000; | 159 static int64 synthesized_display_id = 2000; |
| 160 display_.set_id(synthesized_display_id++); | 160 display_.set_id(synthesized_display_id++); |
| 161 display_.SetScaleAndBounds(1.0f, screen_bounds); | 161 display_.SetScaleAndBounds(1.0f, screen_bounds); |
| 162 } | 162 } |
| 163 | 163 |
| 164 } // namespace aura | 164 } // namespace aura |
| OLD | NEW |