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

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

Issue 1540753002: Switch to standard integer types in ash/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: arraysize Created 5 years 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>
9
8 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
9 #include "ash/display/window_tree_host_manager.h" 11 #include "ash/display/window_tree_host_manager.h"
10 #include "base/callback.h" 12 #include "base/callback.h"
11 #include "base/gtest_prod_util.h" 13 #include "base/gtest_prod_util.h"
14 #include "base/macros.h"
12 #include "base/timer/timer.h" 15 #include "base/timer/timer.h"
13 #include "ui/gfx/display_observer.h" 16 #include "ui/gfx/display_observer.h"
14 #include "ui/gfx/geometry/size.h" 17 #include "ui/gfx/geometry/size.h"
15 18
16 namespace chromeos { 19 namespace chromeos {
17 FORWARD_DECLARE_TEST(DisplayPreferencesTest, PreventStore); 20 FORWARD_DECLARE_TEST(DisplayPreferencesTest, PreventStore);
18 } // namespace chromeos 21 } // namespace chromeos
19 22
20 namespace views { 23 namespace views {
21 class Label; 24 class Label;
(...skipping 18 matching lines...) Expand all
40 // change in case something goes wrong. The notification times out if there's 43 // change in case something goes wrong. The notification times out if there's
41 // only one display connected and the user is trying to modify its resolution. 44 // only one display connected and the user is trying to modify its resolution.
42 // 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
43 // changes if something goes wrong. 46 // changes if something goes wrong.
44 // 47 //
45 // 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
46 // created the next OnDisplayConfigurationChanged(), which will be called 49 // created the next OnDisplayConfigurationChanged(), which will be called
47 // asynchronously after the resolution change is requested. So typically this 50 // asynchronously after the resolution change is requested. So typically this
48 // method will be combined with resolution change methods like 51 // method will be combined with resolution change methods like
49 // DisplayManager::SetDisplayMode(). 52 // DisplayManager::SetDisplayMode().
50 void PrepareNotification(int64 display_id, 53 void PrepareNotification(int64_t display_id,
51 const DisplayMode& old_resolution, 54 const DisplayMode& old_resolution,
52 const DisplayMode& new_resolution, 55 const DisplayMode& new_resolution,
53 const base::Closure& accept_callback); 56 const base::Closure& accept_callback);
54 57
55 // Returns true if the notification is visible or scheduled to be visible and 58 // Returns true if the notification is visible or scheduled to be visible and
56 // the notification times out. 59 // the notification times out.
57 bool DoesNotificationTimeout(); 60 bool DoesNotificationTimeout();
58 61
59 // Called by the notification delegate when the user accepts the display 62 // Called by the notification delegate when the user accepts the display
60 // resolution change. Set |close_notification| to true when the notification 63 // resolution change. Set |close_notification| to true when the notification
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 static void SuppressTimerForTest(); 100 static void SuppressTimerForTest();
98 101
99 scoped_ptr<ResolutionChangeInfo> change_info_; 102 scoped_ptr<ResolutionChangeInfo> change_info_;
100 103
101 DISALLOW_COPY_AND_ASSIGN(ResolutionNotificationController); 104 DISALLOW_COPY_AND_ASSIGN(ResolutionNotificationController);
102 }; 105 };
103 106
104 } // namespace ash 107 } // namespace ash
105 108
106 #endif // ASH_DISPLAY_RESOLUTION_NOTIFICATION_CONTROLLER_H_ 109 #endif // ASH_DISPLAY_RESOLUTION_NOTIFICATION_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ash/display/projecting_observer_chromeos.h ('k') | ash/display/resolution_notification_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698