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

Side by Side Diff: ash/display/resolution_notification_controller.h

Issue 259253002: Add OnDisplayMetricsChanged in DisplayObserver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@update_orientation
Patch Set: Created 6 years, 7 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 ASH_DISPLAY_RESOLUTION_NOTIFICATION_CONTROLLER_H_ 5 #ifndef ASH_DISPLAY_RESOLUTION_NOTIFICATION_CONTROLLER_H_
6 #define ASH_DISPLAY_RESOLUTION_NOTIFICATION_CONTROLLER_H_ 6 #define ASH_DISPLAY_RESOLUTION_NOTIFICATION_CONTROLLER_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/display/display_controller.h" 9 #include "ash/display/display_controller.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 // Create a new notification, or update its content if it already exists. 72 // Create a new notification, or update its content if it already exists.
73 // |enable_spoken_feedback| is set to false when the notification is updated 73 // |enable_spoken_feedback| is set to false when the notification is updated
74 // during the countdown so the update isn't necessarily read by the spoken 74 // during the countdown so the update isn't necessarily read by the spoken
75 // feedback. 75 // feedback.
76 void CreateOrUpdateNotification(bool enable_spoken_feedback); 76 void CreateOrUpdateNotification(bool enable_spoken_feedback);
77 77
78 // Called every second for timeout. 78 // Called every second for timeout.
79 void OnTimerTick(); 79 void OnTimerTick();
80 80
81 // gfx::DisplayObserver overrides: 81 // gfx::DisplayObserver overrides:
82 virtual void OnDisplayBoundsChanged(const gfx::Display& display) OVERRIDE;
83 virtual void OnDisplayAdded(const gfx::Display& new_display) OVERRIDE; 82 virtual void OnDisplayAdded(const gfx::Display& new_display) OVERRIDE;
84 virtual void OnDisplayRemoved(const gfx::Display& old_display) OVERRIDE; 83 virtual void OnDisplayRemoved(const gfx::Display& old_display) OVERRIDE;
84 virtual void OnDisplayMetricsChanged(const gfx::Display& display,
85 uint32_t metrics) OVERRIDE;
85 86
86 // DisplayController::Observer overrides: 87 // DisplayController::Observer overrides:
87 virtual void OnDisplayConfigurationChanged() OVERRIDE; 88 virtual void OnDisplayConfigurationChanged() OVERRIDE;
88 89
89 static void SuppressTimerForTest(); 90 static void SuppressTimerForTest();
90 91
91 scoped_ptr<ResolutionChangeInfo> change_info_; 92 scoped_ptr<ResolutionChangeInfo> change_info_;
92 93
93 DISALLOW_COPY_AND_ASSIGN(ResolutionNotificationController); 94 DISALLOW_COPY_AND_ASSIGN(ResolutionNotificationController);
94 }; 95 };
95 96
96 } // namespace ash 97 } // namespace ash
97 98
98 #endif // ASH_DISPLAY_RESOLUTION_NOTIFICATION_CONTROLLER_H_ 99 #endif // ASH_DISPLAY_RESOLUTION_NOTIFICATION_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ash/display/display_manager_unittest.cc ('k') | ash/display/resolution_notification_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698