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 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 // True if the caller wants to force the display configuration process. | 382 // True if the caller wants to force the display configuration process. |
383 bool force_configure_; | 383 bool force_configure_; |
384 | 384 |
385 // Most-recently-used display configuration. Note that the actual | 385 // Most-recently-used display configuration. Note that the actual |
386 // configuration changes asynchronously. | 386 // configuration changes asynchronously. |
387 DisplayStateList cached_displays_; | 387 DisplayStateList cached_displays_; |
388 | 388 |
389 // Most-recently-used framebuffer size. | 389 // Most-recently-used framebuffer size. |
390 gfx::Size framebuffer_size_; | 390 gfx::Size framebuffer_size_; |
391 | 391 |
392 ObserverList<Observer> observers_; | 392 base::ObserverList<Observer> observers_; |
393 | 393 |
394 // The timer to delay configuring displays. This is used to aggregate multiple | 394 // The timer to delay configuring displays. This is used to aggregate multiple |
395 // display configuration events when they are reported in short time spans. | 395 // display configuration events when they are reported in short time spans. |
396 // See comment for NativeDisplayEventDispatcherX11 for more details. | 396 // See comment for NativeDisplayEventDispatcherX11 for more details. |
397 base::OneShotTimer<DisplayConfigurator> configure_timer_; | 397 base::OneShotTimer<DisplayConfigurator> configure_timer_; |
398 | 398 |
399 // Id for next display protection client. | 399 // Id for next display protection client. |
400 ContentProtectionClientId next_display_protection_client_id_; | 400 ContentProtectionClientId next_display_protection_client_id_; |
401 | 401 |
402 // Display protection requests of each client. | 402 // Display protection requests of each client. |
(...skipping 11 matching lines...) Expand all Loading... |
414 | 414 |
415 // This must be the last variable. | 415 // This must be the last variable. |
416 base::WeakPtrFactory<DisplayConfigurator> weak_ptr_factory_; | 416 base::WeakPtrFactory<DisplayConfigurator> weak_ptr_factory_; |
417 | 417 |
418 DISALLOW_COPY_AND_ASSIGN(DisplayConfigurator); | 418 DISALLOW_COPY_AND_ASSIGN(DisplayConfigurator); |
419 }; | 419 }; |
420 | 420 |
421 } // namespace ui | 421 } // namespace ui |
422 | 422 |
423 #endif // UI_DISPLAY_CHROMEOS_DISPLAY_CONFIGURATOR_H_ | 423 #endif // UI_DISPLAY_CHROMEOS_DISPLAY_CONFIGURATOR_H_ |
OLD | NEW |