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

Unified Diff: ash/system/tray/tray_details_view.h

Issue 2978363002: Revert of Add a row in the network tray to inform users to turn Bluetooth on to enable Tether. (Closed)
Patch Set: Created 3 years, 5 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
« no previous file with comments | « ash/system/network/network_list.cc ('k') | ash/system/tray/tray_details_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/tray/tray_details_view.h
diff --git a/ash/system/tray/tray_details_view.h b/ash/system/tray/tray_details_view.h
index 764892da895eb832c3569c94d0f0cb5a73788b6f..e7f3162b7ef1ff20aea6245aca0f6fbdb28b9259 100644
--- a/ash/system/tray/tray_details_view.h
+++ b/ash/system/tray/tray_details_view.h
@@ -22,6 +22,7 @@
namespace views {
class BoxLayout;
class CustomButton;
+class Label;
class ProgressBar;
class ScrollView;
} // namespace views
@@ -51,6 +52,22 @@
SystemTrayItem* owner() { return owner_; }
protected:
+ // A view containing only a label, which is to be inserted as a non-targetable
+ // row within a system menu detailed view (e.g., the "Scanning for devices..."
+ // message that can appear at the top of the Bluetooth detailed view).
+ class InfoLabel : public View {
+ public:
+ explicit InfoLabel(int message_id);
+ ~InfoLabel() override;
+
+ void SetMessage(int message_id);
+
+ private:
+ views::Label* const label_;
+
+ DISALLOW_COPY_AND_ASSIGN(InfoLabel);
+ };
+
// views::View:
void Layout() override;
int GetHeightForWidth(int width) const override;
« no previous file with comments | « ash/system/network/network_list.cc ('k') | ash/system/tray/tray_details_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698