| 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 "apps/shell/browser/shell_desktop_controller.h" | 5 #include "apps/shell/browser/shell_desktop_controller.h" |
| 6 | 6 |
| 7 #include "apps/shell/browser/shell_app_window.h" | 7 #include "apps/shell/browser/shell_app_window.h" |
| 8 #include "ui/aura/env.h" | 8 #include "ui/aura/env.h" |
| 9 #include "ui/aura/layout_manager.h" | 9 #include "ui/aura/layout_manager.h" |
| 10 #include "ui/aura/test/test_screen.h" | 10 #include "ui/aura/test/test_screen.h" |
| 11 #include "ui/aura/window.h" | 11 #include "ui/aura/window.h" |
| 12 #include "ui/aura/window_event_dispatcher.h" | 12 #include "ui/aura/window_event_dispatcher.h" |
| 13 #include "ui/base/ime/input_method_initializer.h" | 13 #include "ui/base/ime/input_method_initializer.h" |
| 14 #include "ui/gfx/screen.h" | 14 #include "ui/gfx/screen.h" |
| 15 #include "ui/wm/test/wm_test_helper.h" | 15 #include "ui/wm/test/wm_test_helper.h" |
| 16 | 16 |
| 17 #if defined(OS_CHROMEOS) | 17 #if defined(OS_CHROMEOS) |
| 18 #include "ui/display/chromeos/display_mode.h" | 18 #include "ui/display/types/chromeos/display_mode.h" |
| 19 #include "ui/display/chromeos/display_snapshot.h" | 19 #include "ui/display/types/chromeos/display_snapshot.h" |
| 20 #endif | 20 #endif |
| 21 | 21 |
| 22 namespace apps { | 22 namespace apps { |
| 23 namespace { | 23 namespace { |
| 24 | 24 |
| 25 // A simple layout manager that makes each new window fill its parent. | 25 // A simple layout manager that makes each new window fill its parent. |
| 26 class FillLayout : public aura::LayoutManager { | 26 class FillLayout : public aura::LayoutManager { |
| 27 public: | 27 public: |
| 28 FillLayout() {} | 28 FillLayout() {} |
| 29 virtual ~FillLayout() {} | 29 virtual ~FillLayout() {} |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 if (states.empty()) | 148 if (states.empty()) |
| 149 return gfx::Size(); | 149 return gfx::Size(); |
| 150 const ui::DisplayMode* mode = states[0].display->current_mode(); | 150 const ui::DisplayMode* mode = states[0].display->current_mode(); |
| 151 return mode ? mode->size() : gfx::Size(); | 151 return mode ? mode->size() : gfx::Size(); |
| 152 #else | 152 #else |
| 153 return gfx::Size(); | 153 return gfx::Size(); |
| 154 #endif | 154 #endif |
| 155 } | 155 } |
| 156 | 156 |
| 157 } // namespace apps | 157 } // namespace apps |
| OLD | NEW |