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

Unified Diff: ash/system/chromeos/tray_tracing.h

Issue 2091953002: mash: Move TrayTracing to //ash/common/system/chromeos (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments Created 4 years, 6 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/common/system/tray/wm_system_tray_notifier.cc ('k') | ash/system/chromeos/tray_tracing.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/chromeos/tray_tracing.h
diff --git a/ash/system/chromeos/tray_tracing.h b/ash/system/chromeos/tray_tracing.h
deleted file mode 100644
index 1ee9c6dbaa68a66e6dc239d9d8bc033844e8f0d2..0000000000000000000000000000000000000000
--- a/ash/system/chromeos/tray_tracing.h
+++ /dev/null
@@ -1,55 +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_TRAY_TRACING_H_
-#define ASH_SYSTEM_TRAY_TRACING_H_
-
-#include "ash/ash_export.h"
-#include "ash/common/system/tray/tray_image_item.h"
-#include "base/macros.h"
-
-namespace views {
-class View;
-}
-
-namespace ash {
-
-class ASH_EXPORT TracingObserver {
- public:
- virtual ~TracingObserver() {}
-
- // Notifies when tracing mode changes.
- virtual void OnTracingModeChanged(bool value) = 0;
-};
-
-// This is the item that displays when users enable performance tracing at
-// chrome://slow. It alerts them that this mode is running, and provides an
-// easy way to open the page to disable it.
-class TrayTracing : public TrayImageItem,
- public TracingObserver {
- public:
- explicit TrayTracing(SystemTray* system_tray);
- ~TrayTracing() override;
-
- private:
- void SetTrayIconVisible(bool visible);
-
- // Overridden from TrayImageItem.
- bool GetInitialVisibility() override;
- views::View* CreateDefaultView(LoginStatus status) override;
- views::View* CreateDetailedView(LoginStatus status) override;
- void DestroyDefaultView() override;
- void DestroyDetailedView() override;
-
- // Overridden from TracingObserver.
- void OnTracingModeChanged(bool value) override;
-
- views::View* default_;
-
- DISALLOW_COPY_AND_ASSIGN(TrayTracing);
-};
-
-} // namespace ash
-
-#endif // ASH_SYSTEM_TRAY_TRACING_H_
« no previous file with comments | « ash/common/system/tray/wm_system_tray_notifier.cc ('k') | ash/system/chromeos/tray_tracing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698