| 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 <map> |
| 11 #include <memory> | 12 #include <memory> |
| 12 #include <string> | 13 #include <string> |
| 13 #include <vector> | 14 #include <vector> |
| 14 | 15 |
| 15 #include "base/compiler_specific.h" | 16 #include "base/compiler_specific.h" |
| 16 #include "base/gtest_prod_util.h" | 17 #include "base/gtest_prod_util.h" |
| 17 #include "base/macros.h" | 18 #include "base/macros.h" |
| 18 #include "base/memory/ref_counted.h" | 19 #include "base/memory/ref_counted.h" |
| 19 #include "base/memory/weak_ptr.h" | 20 #include "base/memory/weak_ptr.h" |
| 20 #include "base/observer_list.h" | 21 #include "base/observer_list.h" |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 // Called before and after the display configuration changes. When | 68 // Called before and after the display configuration changes. When |
| 68 // |clear_focus| is true, the implementation should deactivate the active | 69 // |clear_focus| is true, the implementation should deactivate the active |
| 69 // window and set the focus window to NULL. | 70 // window and set the focus window to NULL. |
| 70 virtual void PreDisplayConfigurationChange(bool clear_focus) = 0; | 71 virtual void PreDisplayConfigurationChange(bool clear_focus) = 0; |
| 71 virtual void PostDisplayConfigurationChange(bool must_clear_window) = 0; | 72 virtual void PostDisplayConfigurationChange(bool must_clear_window) = 0; |
| 72 | 73 |
| 73 #if defined(OS_CHROMEOS) | 74 #if defined(OS_CHROMEOS) |
| 74 // Get the ui::DisplayConfigurator. | 75 // Get the ui::DisplayConfigurator. |
| 75 virtual ui::DisplayConfigurator* display_configurator() = 0; | 76 virtual ui::DisplayConfigurator* display_configurator() = 0; |
| 76 #endif | 77 #endif |
| 77 | |
| 78 virtual std::string GetInternalDisplayNameString() = 0; | |
| 79 virtual std::string GetUnknownDisplayNameString() = 0; | |
| 80 }; | 78 }; |
| 81 | 79 |
| 82 // How the second display will be used. | 80 // How the second display will be used. |
| 83 // 1) EXTENDED mode extends the desktop to the second dislpay. | 81 // 1) EXTENDED mode extends the desktop to the second dislpay. |
| 84 // 2) MIRRORING mode copies the content of the primary display to | 82 // 2) MIRRORING mode copies the content of the primary display to |
| 85 // the 2nd display. (Software Mirroring). | 83 // the 2nd display. (Software Mirroring). |
| 86 // 3) UNIFIED mode creates single desktop across multiple displays. | 84 // 3) UNIFIED mode creates single desktop across multiple displays. |
| 87 enum MultiDisplayMode { | 85 enum MultiDisplayMode { |
| 88 EXTENDED = 0, | 86 EXTENDED = 0, |
| 89 MIRRORING, | 87 MIRRORING, |
| (...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 458 base::ObserverList<DisplayObserver> observers_; | 456 base::ObserverList<DisplayObserver> observers_; |
| 459 | 457 |
| 460 base::WeakPtrFactory<DisplayManager> weak_ptr_factory_; | 458 base::WeakPtrFactory<DisplayManager> weak_ptr_factory_; |
| 461 | 459 |
| 462 DISALLOW_COPY_AND_ASSIGN(DisplayManager); | 460 DISALLOW_COPY_AND_ASSIGN(DisplayManager); |
| 463 }; | 461 }; |
| 464 | 462 |
| 465 } // namespace display | 463 } // namespace display |
| 466 | 464 |
| 467 #endif // UI_DISPLAY_MANAGER_DISPLAY_MANAGER_H_ | 465 #endif // UI_DISPLAY_MANAGER_DISPLAY_MANAGER_H_ |
| OLD | NEW |