| 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 UI_DISPLAY_MANAGER_DISPLAY_MANAGER_H_ |    5 #ifndef UI_DISPLAY_MANAGER_DISPLAY_MANAGER_H_ | 
|    6 #define UI_DISPLAY_MANAGER_DISPLAY_MANAGER_H_ |    6 #define UI_DISPLAY_MANAGER_DISPLAY_MANAGER_H_ | 
|    7  |    7  | 
|    8 #include <stddef.h> |    8 #include <stddef.h> | 
|    9 #include <stdint.h> |    9 #include <stdint.h> | 
|   10  |   10  | 
|   11 #include <memory> |   11 #include <memory> | 
|   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/gtest_prod_util.h" |   16 #include "base/gtest_prod_util.h" | 
|   17 #include "base/macros.h" |   17 #include "base/macros.h" | 
|   18 #include "base/memory/ref_counted.h" |   18 #include "base/memory/ref_counted.h" | 
|   19 #include "base/memory/weak_ptr.h" |   19 #include "base/memory/weak_ptr.h" | 
|   20 #include "base/observer_list.h" |   20 #include "base/observer_list.h" | 
|   21 #include "ui/display/display.h" |   21 #include "ui/display/display.h" | 
|   22 #include "ui/display/display_export.h" |   22 #include "ui/display/display_layout.h" | 
|   23 #include "ui/display/display_observer.h" |   23 #include "ui/display/display_observer.h" | 
|   24 #include "ui/display/manager/display_layout.h" |   24 #include "ui/display/manager/display_manager_export.h" | 
|   25 #include "ui/display/manager/managed_display_info.h" |   25 #include "ui/display/manager/managed_display_info.h" | 
|   26 #include "ui/display/types/display_constants.h" |   26 #include "ui/display/types/display_constants.h" | 
|   27  |   27  | 
|   28 #if defined(OS_CHROMEOS) |   28 #if defined(OS_CHROMEOS) | 
|   29 #include "ui/display/chromeos/display_configurator.h" |   29 #include "ui/display/manager/chromeos/display_configurator.h" | 
|   30 #endif |   30 #endif | 
|   31  |   31  | 
|   32 namespace gfx { |   32 namespace gfx { | 
|   33 class Insets; |   33 class Insets; | 
|   34 class Rect; |   34 class Rect; | 
|   35 } |   35 } | 
|   36  |   36  | 
|   37 namespace display { |   37 namespace display { | 
|   38 using DisplayInfoList = std::vector<ManagedDisplayInfo>; |   38 using DisplayInfoList = std::vector<ManagedDisplayInfo>; | 
|   39  |   39  | 
|   40 class DisplayLayoutStore; |   40 class DisplayLayoutStore; | 
|   41 class DisplayObserver; |   41 class DisplayObserver; | 
|   42 class Screen; |   42 class Screen; | 
|   43  |   43  | 
|   44 namespace test { |   44 namespace test { | 
|   45 class DisplayManagerTestApi; |   45 class DisplayManagerTestApi; | 
|   46 } |   46 } | 
|   47  |   47  | 
|   48 // DisplayManager maintains the current display configurations, |   48 // DisplayManager maintains the current display configurations, | 
|   49 // and notifies observers when configuration changes. |   49 // and notifies observers when configuration changes. | 
|   50 class DISPLAY_EXPORT DisplayManager |   50 class DISPLAY_MANAGER_EXPORT DisplayManager | 
|   51 #if defined(OS_CHROMEOS) |   51 #if defined(OS_CHROMEOS) | 
|   52     : public ui::DisplayConfigurator::SoftwareMirroringController |   52     : public ui::DisplayConfigurator::SoftwareMirroringController | 
|   53 #endif |   53 #endif | 
|   54 { |   54 { | 
|   55  public: |   55  public: | 
|   56   class DISPLAY_EXPORT Delegate { |   56   class DISPLAY_MANAGER_EXPORT Delegate { | 
|   57    public: |   57    public: | 
|   58     virtual ~Delegate() {} |   58     virtual ~Delegate() {} | 
|   59  |   59  | 
|   60     // Create or updates the mirroring window with |display_info_list|. |   60     // Create or updates the mirroring window with |display_info_list|. | 
|   61     virtual void CreateOrUpdateMirroringDisplay( |   61     virtual void CreateOrUpdateMirroringDisplay( | 
|   62         const DisplayInfoList& display_info_list) = 0; |   62         const DisplayInfoList& display_info_list) = 0; | 
|   63  |   63  | 
|   64     // Closes the mirror window if not necessary. |   64     // Closes the mirror window if not necessary. | 
|   65     virtual void CloseMirroringDisplayIfNotNecessary() = 0; |   65     virtual void CloseMirroringDisplayIfNotNecessary() = 0; | 
|   66  |   66  | 
| (...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  458   base::ObserverList<DisplayObserver> observers_; |  458   base::ObserverList<DisplayObserver> observers_; | 
|  459  |  459  | 
|  460   base::WeakPtrFactory<DisplayManager> weak_ptr_factory_; |  460   base::WeakPtrFactory<DisplayManager> weak_ptr_factory_; | 
|  461  |  461  | 
|  462   DISALLOW_COPY_AND_ASSIGN(DisplayManager); |  462   DISALLOW_COPY_AND_ASSIGN(DisplayManager); | 
|  463 }; |  463 }; | 
|  464  |  464  | 
|  465 }  // namespace display |  465 }  // namespace display | 
|  466  |  466  | 
|  467 #endif  // UI_DISPLAY_MANAGER_DISPLAY_MANAGER_H_ |  467 #endif  // UI_DISPLAY_MANAGER_DISPLAY_MANAGER_H_ | 
| OLD | NEW |