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

Unified Diff: ash/display/resolution_notification_controller.h

Issue 2196923002: Make ash::DisplayMode more like ui::DisplayMode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: ash/display/resolution_notification_controller.h
diff --git a/ash/display/resolution_notification_controller.h b/ash/display/resolution_notification_controller.h
index 6ad59f9796b3286b523fc1820454e7629738c5c7..ad27b528e002235e6fc9656d97a6b0ac95bbffdb 100644
--- a/ash/display/resolution_notification_controller.h
+++ b/ash/display/resolution_notification_controller.h
@@ -27,7 +27,7 @@ class Widget;
namespace ash {
-struct DisplayMode;
+class DisplayMode;
// A class which manages the notification of display resolution change and
// also manages the timeout in case the new resolution is unusable.
@@ -51,8 +51,8 @@ class ASH_EXPORT ResolutionNotificationController
// method will be combined with resolution change methods like
// DisplayManager::SetDisplayMode().
void PrepareNotification(int64_t display_id,
- const DisplayMode& old_resolution,
- const DisplayMode& new_resolution,
+ const scoped_refptr<DisplayMode>& old_resolution,
+ const scoped_refptr<DisplayMode>& new_resolution,
const base::Closure& accept_callback);
// Returns true if the notification is visible or scheduled to be visible and

Powered by Google App Engine
This is Rietveld 408576698