| 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 #ifndef UI_DISPLAY_CHROMEOS_DISPLAY_CONFIGURATOR_H_ | 5 #ifndef UI_DISPLAY_CHROMEOS_DISPLAY_CONFIGURATOR_H_ |
| 6 #define UI_DISPLAY_CHROMEOS_DISPLAY_CONFIGURATOR_H_ | 6 #define UI_DISPLAY_CHROMEOS_DISPLAY_CONFIGURATOR_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 | 250 |
| 251 private: | 251 private: |
| 252 // Mapping a display_id to a protection request bitmask. | 252 // Mapping a display_id to a protection request bitmask. |
| 253 typedef std::map<int64_t, uint32_t> ContentProtections; | 253 typedef std::map<int64_t, uint32_t> ContentProtections; |
| 254 // Mapping a client to its protection request. | 254 // Mapping a client to its protection request. |
| 255 typedef std::map<ContentProtectionClientId, ContentProtections> | 255 typedef std::map<ContentProtectionClientId, ContentProtections> |
| 256 ProtectionRequests; | 256 ProtectionRequests; |
| 257 | 257 |
| 258 // Performs platform specific delegate initialization. | 258 // Performs platform specific delegate initialization. |
| 259 scoped_ptr<NativeDisplayDelegate> CreatePlatformNativeDisplayDelegate(); | 259 scoped_ptr<NativeDisplayDelegate> CreatePlatformNativeDisplayDelegate(); |
| 260 scoped_ptr<TouchscreenDelegate> CreatePlatformTouchscreenDelegate(); | |
| 261 | 260 |
| 262 // Updates |cached_displays_| to contain currently-connected displays. Calls | 261 // Updates |cached_displays_| to contain currently-connected displays. Calls |
| 263 // |delegate_->GetDisplays()| and then does additional work, like finding the | 262 // |delegate_->GetDisplays()| and then does additional work, like finding the |
| 264 // mirror mode and setting user-preferred modes. Note that the server must be | 263 // mirror mode and setting user-preferred modes. Note that the server must be |
| 265 // grabbed via |delegate_->GrabServer()| first. | 264 // grabbed via |delegate_->GrabServer()| first. |
| 266 void UpdateCachedDisplays(); | 265 void UpdateCachedDisplays(); |
| 267 | 266 |
| 268 // Helper method for UpdateCachedDisplays() that initializes the passed-in | 267 // Helper method for UpdateCachedDisplays() that initializes the passed-in |
| 269 // displays' |mirror_mode| fields by looking for a mode in |internal_display| | 268 // displays' |mirror_mode| fields by looking for a mode in |internal_display| |
| 270 // and |external_display| having the same resolution. Returns false if a | 269 // and |external_display| having the same resolution. Returns false if a |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 | 357 |
| 359 // Display protection requests of each client. | 358 // Display protection requests of each client. |
| 360 ProtectionRequests client_protection_requests_; | 359 ProtectionRequests client_protection_requests_; |
| 361 | 360 |
| 362 DISALLOW_COPY_AND_ASSIGN(DisplayConfigurator); | 361 DISALLOW_COPY_AND_ASSIGN(DisplayConfigurator); |
| 363 }; | 362 }; |
| 364 | 363 |
| 365 } // namespace ui | 364 } // namespace ui |
| 366 | 365 |
| 367 #endif // UI_DISPLAY_CHROMEOS_DISPLAY_CONFIGURATOR_H_ | 366 #endif // UI_DISPLAY_CHROMEOS_DISPLAY_CONFIGURATOR_H_ |
| OLD | NEW |