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

Side by Side Diff: ash/common/system/chromeos/power/tray_power.h

Issue 2750263002: Remove ash tray utility functions that are no-ops in MD. (Closed)
Patch Set: Created 3 years, 9 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_COMMON_SYSTEM_CHROMEOS_POWER_TRAY_POWER_H_ 5 #ifndef ASH_COMMON_SYSTEM_CHROMEOS_POWER_TRAY_POWER_H_
6 #define ASH_COMMON_SYSTEM_CHROMEOS_POWER_TRAY_POWER_H_ 6 #define ASH_COMMON_SYSTEM_CHROMEOS_POWER_TRAY_POWER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "ash/common/system/chromeos/power/power_status.h" 10 #include "ash/common/system/chromeos/power/power_status.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 USB_CHARGER, 66 USB_CHARGER,
67 UNCONFIRMED_SPRING_CHARGER, 67 UNCONFIRMED_SPRING_CHARGER,
68 SAFE_SPRING_CHARGER, 68 SAFE_SPRING_CHARGER,
69 CHARGER_TYPE_COUNT, 69 CHARGER_TYPE_COUNT,
70 }; 70 };
71 71
72 // Overridden from SystemTrayItem. 72 // Overridden from SystemTrayItem.
73 views::View* CreateTrayView(LoginStatus status) override; 73 views::View* CreateTrayView(LoginStatus status) override;
74 views::View* CreateDefaultView(LoginStatus status) override; 74 views::View* CreateDefaultView(LoginStatus status) override;
75 void DestroyTrayView() override; 75 void DestroyTrayView() override;
76 void DestroyDefaultView() override;
77 void UpdateAfterLoginStatusChange(LoginStatus status) override;
78 void UpdateAfterShelfAlignmentChange(ShelfAlignment alignment) override;
79 76
80 // Overridden from PowerStatus::Observer. 77 // Overridden from PowerStatus::Observer.
81 void OnPowerStatusChanged() override; 78 void OnPowerStatusChanged() override;
82 79
83 // Shows a notification that a low-power USB charger has been connected. 80 // Shows a notification that a low-power USB charger has been connected.
84 // Returns true if a notification was shown or explicitly hidden. 81 // Returns true if a notification was shown or explicitly hidden.
85 bool MaybeShowUsbChargerNotification(); 82 bool MaybeShowUsbChargerNotification();
86 83
87 // Shows a notification when dual-role devices are connected. 84 // Shows a notification when dual-role devices are connected.
88 void MaybeShowDualRoleNotification(); 85 void MaybeShowDualRoleNotification();
(...skipping 19 matching lines...) Expand all
108 // Has the user already dismissed a low-power notification? Should be set 105 // Has the user already dismissed a low-power notification? Should be set
109 // back to false when all power sources are disconnected. 106 // back to false when all power sources are disconnected.
110 bool usb_notification_dismissed_; 107 bool usb_notification_dismissed_;
111 108
112 DISALLOW_COPY_AND_ASSIGN(TrayPower); 109 DISALLOW_COPY_AND_ASSIGN(TrayPower);
113 }; 110 };
114 111
115 } // namespace ash 112 } // namespace ash
116 113
117 #endif // ASH_COMMON_SYSTEM_CHROMEOS_POWER_TRAY_POWER_H_ 114 #endif // ASH_COMMON_SYSTEM_CHROMEOS_POWER_TRAY_POWER_H_
OLDNEW
« no previous file with comments | « ash/common/system/chromeos/network/tray_network.cc ('k') | ash/common/system/chromeos/power/tray_power.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698