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

Unified Diff: ash/system/chromeos/drive/tray_drive_notice.h

Issue 83413004: Remove enable Drive offline system tray UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: drive settings Created 7 years, 1 month 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/ash_strings.grd ('k') | ash/system/chromeos/drive/tray_drive_notice.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/chromeos/drive/tray_drive_notice.h
diff --git a/ash/system/chromeos/drive/tray_drive_notice.h b/ash/system/chromeos/drive/tray_drive_notice.h
deleted file mode 100644
index cbc717dc47802eb03c3368bed3bedd2efcbc7c14..0000000000000000000000000000000000000000
--- a/ash/system/chromeos/drive/tray_drive_notice.h
+++ /dev/null
@@ -1,63 +0,0 @@
-// Copyright 2013 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_SYSTEM_DRIVE_TRAY_DRIVE_NOTICE_H_
-#define ASH_SYSTEM_DRIVE_TRAY_DRIVE_NOTICE_H_
-
-#include "ash/system/drive/drive_observer.h"
-#include "ash/system/tray/tray_image_item.h"
-#include "ash/system/tray/tray_item_more.h"
-#include "base/timer/timer.h"
-
-namespace ash {
-namespace internal {
-
-class DriveNoticeDetailedView;
-
-// A tray item shown to the user as a notice that Google Drive offline mode has
-// been enabled automatically. This tray item is mainly informational and is
-// automatically dismissed after a short period of time.
-class ASH_EXPORT TrayDriveNotice : public TrayImageItem,
- public DriveObserver {
- public:
- explicit TrayDriveNotice(SystemTray* system_tray);
- virtual ~TrayDriveNotice();
-
- views::View* GetTrayView();
- views::View* default_view() { return default_view_; }
- views::View* detailed_view() { return detailed_view_; }
-
- // Set the time the tray item is visible after opting-in for testing.
- void SetTimeVisibleForTest(int time_visible_secs);
-
- private:
- void HideNotice();
-
- // Overridden from TrayImageItem.
- virtual bool GetInitialVisibility() OVERRIDE;
-
- // Overridden from SystemTrayItem.
- virtual views::View* CreateDefaultView(user::LoginStatus status) OVERRIDE;
- virtual views::View* CreateDetailedView(user::LoginStatus status) OVERRIDE;
- virtual void DestroyDefaultView() OVERRIDE;
- virtual void DestroyDetailedView() OVERRIDE;
- virtual void UpdateAfterLoginStatusChange(user::LoginStatus status) OVERRIDE;
-
- // Overridden from DriveObserver.
- virtual void OnDriveJobUpdated(const DriveOperationStatus& status) OVERRIDE;
- virtual void OnDriveOfflineEnabled() OVERRIDE;
-
- views::View* default_view_;
- views::View* detailed_view_;
- base::OneShotTimer<TrayDriveNotice> visibility_timer_;
- bool showing_item_;
- int time_visible_secs_;
-
- DISALLOW_COPY_AND_ASSIGN(TrayDriveNotice);
-};
-
-} // namespace internal
-} // namespace ash
-
-#endif // ASH_SYSTEM_DRIVE_TRAY_DRIVE_NOTICE_H_
« no previous file with comments | « ash/ash_strings.grd ('k') | ash/system/chromeos/drive/tray_drive_notice.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698