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

Side by Side Diff: ash/system/chromeos/screen_layout_observer.h

Issue 2644593003: Fix bugs in the display notification (Closed)
Patch Set: Adding 2 more test stories 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_SYSTEM_CHROMEOS_SCREEN_LAYOUT_OBSERVER_H_ 5 #ifndef ASH_SYSTEM_CHROMEOS_SCREEN_LAYOUT_OBSERVER_H_
6 #define ASH_SYSTEM_CHROMEOS_SCREEN_LAYOUT_OBSERVER_H_ 6 #define ASH_SYSTEM_CHROMEOS_SCREEN_LAYOUT_OBSERVER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 bool GetDisplayMessageForNotification(const DisplayInfoMap& old_info, 53 bool GetDisplayMessageForNotification(const DisplayInfoMap& old_info,
54 base::string16* message_out, 54 base::string16* message_out,
55 base::string16* additional_message_out); 55 base::string16* additional_message_out);
56 56
57 // Creates or updates the display notification. 57 // Creates or updates the display notification.
58 void CreateOrUpdateNotification(const base::string16& message, 58 void CreateOrUpdateNotification(const base::string16& message,
59 const base::string16& additional_message); 59 const base::string16& additional_message);
60 60
61 DisplayInfoMap display_info_; 61 DisplayInfoMap display_info_;
62 62
63 bool old_is_in_mirrored_mode_ = false;
64 bool current_is_in_mirrored_mode_ = false;
65
66 bool old_is_in_unified_mode_ = false;
67 bool current_is_in_unified_mode_ = false;
oshima 2017/01/24 17:49:42 can you use state instead of bools?
afakhry 2017/01/24 22:13:22 Done.
68
63 bool show_notifications_for_testing = true; 69 bool show_notifications_for_testing = true;
64 70
65 DISALLOW_COPY_AND_ASSIGN(ScreenLayoutObserver); 71 DISALLOW_COPY_AND_ASSIGN(ScreenLayoutObserver);
66 }; 72 };
67 73
68 } // namespace ash 74 } // namespace ash
69 75
70 #endif // ASH_SYSTEM_CHROMEOS_SCREEN_LAYOUT_OBSERVER_H_ 76 #endif // ASH_SYSTEM_CHROMEOS_SCREEN_LAYOUT_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698