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

Unified Diff: ash/common/system/chromeos/settings/tray_settings.h

Issue 2776973005: Revert of Remove some pre-md code and assets. (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 side-by-side diff with in-line comments
Download patch
Index: ash/common/system/chromeos/settings/tray_settings.h
diff --git a/ash/common/system/chromeos/settings/tray_settings.h b/ash/common/system/chromeos/settings/tray_settings.h
new file mode 100644
index 0000000000000000000000000000000000000000..974856c3eb91642fb7c02c7727d849a33a218530
--- /dev/null
+++ b/ash/common/system/chromeos/settings/tray_settings.h
@@ -0,0 +1,40 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ASH_COMMON_SYSTEM_CHROMEOS_SETTINGS_TRAY_SETTINGS_H_
+#define ASH_COMMON_SYSTEM_CHROMEOS_SETTINGS_TRAY_SETTINGS_H_
+
+#include "ash/common/system/tray/system_tray_item.h"
+#include "base/macros.h"
+
+namespace ash {
+namespace tray {
+class SettingsDefaultView;
+}
+
+// TODO(tdanderson): Remove this class once material design is enabled by
+// default. See crbug.com/614453.
+class TraySettings : public SystemTrayItem {
+ public:
+ explicit TraySettings(SystemTray* system_tray);
+ ~TraySettings() override;
+
+ private:
+ // Overridden from SystemTrayItem
+ views::View* CreateTrayView(LoginStatus status) override;
+ views::View* CreateDefaultView(LoginStatus status) override;
+ views::View* CreateDetailedView(LoginStatus status) override;
+ void DestroyTrayView() override;
+ void DestroyDefaultView() override;
+ void DestroyDetailedView() override;
+ void UpdateAfterLoginStatusChange(LoginStatus status) override;
+
+ tray::SettingsDefaultView* default_view_;
+
+ DISALLOW_COPY_AND_ASSIGN(TraySettings);
+};
+
+} // namespace ash
+
+#endif // ASH_COMMON_SYSTEM_CHROMEOS_SETTINGS_TRAY_SETTINGS_H_
« no previous file with comments | « ash/common/system/chromeos/session/tray_session_length_limit.cc ('k') | ash/common/system/chromeos/settings/tray_settings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698