Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(48)

Side by Side Diff: ui/display/chromeos/display_configurator.h

Issue 1162943002: Replace more ObserverList with base::ObserverList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@observer
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/compositor/layer_animator.h ('k') | ui/display/chromeos/x11/native_display_delegate_x11.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « ui/compositor/layer_animator.h ('k') | ui/display/chromeos/x11/native_display_delegate_x11.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698