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

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

Issue 2270553002: Move ash::DisplayInfo to ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 3 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 // In that case, the timeout has to be set since the user cannot make any 45 // In that case, the timeout has to be set since the user cannot make any
46 // changes if something goes wrong. 46 // changes if something goes wrong.
47 // 47 //
48 // This method does not create a notification itself. The notification will be 48 // This method does not create a notification itself. The notification will be
49 // created the next OnDisplayConfigurationChanged(), which will be called 49 // created the next OnDisplayConfigurationChanged(), which will be called
50 // asynchronously after the resolution change is requested. So typically this 50 // asynchronously after the resolution change is requested. So typically this
51 // method will be combined with resolution change methods like 51 // method will be combined with resolution change methods like
52 // DisplayManager::SetDisplayMode(). 52 // DisplayManager::SetDisplayMode().
53 void PrepareNotification( 53 void PrepareNotification(
54 int64_t display_id, 54 int64_t display_id,
55 const scoped_refptr<ManagedDisplayMode>& old_resolution, 55 const scoped_refptr<display::ManagedDisplayMode>& old_resolution,
56 const scoped_refptr<ManagedDisplayMode>& new_resolution, 56 const scoped_refptr<display::ManagedDisplayMode>& new_resolution,
57 const base::Closure& accept_callback); 57 const base::Closure& accept_callback);
58 58
59 // Returns true if the notification is visible or scheduled to be visible and 59 // Returns true if the notification is visible or scheduled to be visible and
60 // the notification times out. 60 // the notification times out.
61 bool DoesNotificationTimeout(); 61 bool DoesNotificationTimeout();
62 62
63 // Called by the notification delegate when the user accepts the display 63 // Called by the notification delegate when the user accepts the display
64 // resolution change. Set |close_notification| to true when the notification 64 // resolution change. Set |close_notification| to true when the notification
65 // should be removed. 65 // should be removed.
66 void AcceptResolutionChange(bool close_notification); 66 void AcceptResolutionChange(bool close_notification);
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 static void SuppressTimerForTest(); 101 static void SuppressTimerForTest();
102 102
103 std::unique_ptr<ResolutionChangeInfo> change_info_; 103 std::unique_ptr<ResolutionChangeInfo> change_info_;
104 104
105 DISALLOW_COPY_AND_ASSIGN(ResolutionNotificationController); 105 DISALLOW_COPY_AND_ASSIGN(ResolutionNotificationController);
106 }; 106 };
107 107
108 } // namespace ash 108 } // namespace ash
109 109
110 #endif // ASH_DISPLAY_RESOLUTION_NOTIFICATION_CONTROLLER_H_ 110 #endif // ASH_DISPLAY_RESOLUTION_NOTIFICATION_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ash/display/mirror_window_controller_unittest.cc ('k') | ash/display/resolution_notification_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698