| 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 #ifndef ASH_DISPLAY_DISPLAY_MANAGER_H_ | 5 #ifndef ASH_DISPLAY_DISPLAY_MANAGER_H_ |
| 6 #define ASH_DISPLAY_DISPLAY_MANAGER_H_ | 6 #define ASH_DISPLAY_DISPLAY_MANAGER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "ash/ash_export.h" | 11 #include "ash/ash_export.h" |
| 12 #include "ash/display/display_info.h" | 12 #include "ash/display/display_info.h" |
| 13 #include "ash/display/display_layout.h" | 13 #include "ash/display/display_layout.h" |
| 14 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
| 15 #include "base/gtest_prod_util.h" | 15 #include "base/gtest_prod_util.h" |
| 16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
| 17 #include "ui/gfx/display.h" | 17 #include "ui/gfx/display.h" |
| 18 | 18 |
| 19 #if defined(OS_CHROMEOS) | 19 #if defined(OS_CHROMEOS) |
| 20 #include "ui/display/chromeos/output_configurator.h" | 20 #include "ui/display/chromeos/display_configurator.h" |
| 21 #endif | 21 #endif |
| 22 | 22 |
| 23 namespace gfx { | 23 namespace gfx { |
| 24 class Display; | 24 class Display; |
| 25 class Insets; | 25 class Insets; |
| 26 class Rect; | 26 class Rect; |
| 27 class Screen; | 27 class Screen; |
| 28 } | 28 } |
| 29 | 29 |
| 30 namespace ash { | 30 namespace ash { |
| 31 class AcceleratorControllerTest; | 31 class AcceleratorControllerTest; |
| 32 class DisplayController; | 32 class DisplayController; |
| 33 class DisplayLayoutStore; | 33 class DisplayLayoutStore; |
| 34 class ScreenAsh; | 34 class ScreenAsh; |
| 35 | 35 |
| 36 namespace test { | 36 namespace test { |
| 37 class DisplayManagerTestApi; | 37 class DisplayManagerTestApi; |
| 38 class SystemGestureEventFilterTest; | 38 class SystemGestureEventFilterTest; |
| 39 } | 39 } |
| 40 | 40 |
| 41 // DisplayManager maintains the current display configurations, | 41 // DisplayManager maintains the current display configurations, |
| 42 // and notifies observers when configuration changes. | 42 // and notifies observers when configuration changes. |
| 43 // | 43 // |
| 44 // TODO(oshima): Make this non internal. | 44 // TODO(oshima): Make this non internal. |
| 45 class ASH_EXPORT DisplayManager | 45 class ASH_EXPORT DisplayManager |
| 46 #if defined(OS_CHROMEOS) | 46 #if defined(OS_CHROMEOS) |
| 47 : public ui::OutputConfigurator::SoftwareMirroringController | 47 : public ui::DisplayConfigurator::SoftwareMirroringController |
| 48 #endif | 48 #endif |
| 49 { | 49 { |
| 50 public: | 50 public: |
| 51 class ASH_EXPORT Delegate { | 51 class ASH_EXPORT Delegate { |
| 52 public: | 52 public: |
| 53 virtual ~Delegate() {} | 53 virtual ~Delegate() {} |
| 54 | 54 |
| 55 // Create or updates the non desktop window with |display_info|. | 55 // Create or updates the non desktop window with |display_info|. |
| 56 virtual void CreateOrUpdateNonDesktopDisplay( | 56 virtual void CreateOrUpdateNonDesktopDisplay( |
| 57 const DisplayInfo& display_info) = 0; | 57 const DisplayInfo& display_info) = 0; |
| (...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 SecondDisplayMode second_display_mode_; | 360 SecondDisplayMode second_display_mode_; |
| 361 int64 mirrored_display_id_; | 361 int64 mirrored_display_id_; |
| 362 gfx::Display non_desktop_display_; | 362 gfx::Display non_desktop_display_; |
| 363 | 363 |
| 364 DISALLOW_COPY_AND_ASSIGN(DisplayManager); | 364 DISALLOW_COPY_AND_ASSIGN(DisplayManager); |
| 365 }; | 365 }; |
| 366 | 366 |
| 367 } // namespace ash | 367 } // namespace ash |
| 368 | 368 |
| 369 #endif // ASH_DISPLAY_DISPLAY_MANAGER_H_ | 369 #endif // ASH_DISPLAY_DISPLAY_MANAGER_H_ |
| OLD | NEW |