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

Unified Diff: ash/system/chromeos/screen_layout_observer.h

Issue 2644593003: Fix bugs in the display notification (Closed)
Patch Set: Oshima's comments Created 3 years, 11 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/system/chromeos/screen_layout_observer.h
diff --git a/ash/system/chromeos/screen_layout_observer.h b/ash/system/chromeos/screen_layout_observer.h
index 3324f7ce21858b03bd485a53990b2874f7a8a94f..eab68fe33f1030fb305ffc126af08329e11ce8bf 100644
--- a/ash/system/chromeos/screen_layout_observer.h
+++ b/ash/system/chromeos/screen_layout_observer.h
@@ -51,8 +51,8 @@ class ASH_EXPORT ScreenLayoutObserver : public WmDisplayObserver {
// also sets |additional_message_out| which appears in the notification with
// the |message_out|.
bool GetDisplayMessageForNotification(const DisplayInfoMap& old_info,
- base::string16* message_out,
- base::string16* additional_message_out);
+ base::string16* out_message,
+ base::string16* out_additional_message);
// Creates or updates the display notification.
void CreateOrUpdateNotification(const base::string16& message,
@@ -60,6 +60,16 @@ class ASH_EXPORT ScreenLayoutObserver : public WmDisplayObserver {
DisplayInfoMap display_info_;
+ enum class DisplayMode {
+ SINGLE,
+ EXTENDED,
+ MIRRORING,
+ UNIFIED,
+ };
+
+ DisplayMode old_display_mode_ = DisplayMode::SINGLE;
+ DisplayMode current_display_mode_ = DisplayMode::SINGLE;
+
bool show_notifications_for_testing = true;
DISALLOW_COPY_AND_ASSIGN(ScreenLayoutObserver);

Powered by Google App Engine
This is Rietveld 408576698