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

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

Issue 2732813002: chromeos: Move files in //ash/common to //ash, part 1 (Closed)
Patch Set: rebase Created 3 years, 10 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/chromeos/tray_caps_lock.cc ('k') | ash/common/system/chromeos/tray_tracing.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/chromeos/tray_tracing.h
diff --git a/ash/common/system/chromeos/tray_tracing.h b/ash/common/system/chromeos/tray_tracing.h
deleted file mode 100644
index 363fc0ccdf01b8b53be51c485a0074f251b49ea1..0000000000000000000000000000000000000000
--- a/ash/common/system/chromeos/tray_tracing.h
+++ /dev/null
@@ -1,54 +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_COMMON_SYSTEM_CHROMEOS_TRAY_TRACING_H_
-#define ASH_COMMON_SYSTEM_CHROMEOS_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_COMMON_SYSTEM_CHROMEOS_TRAY_TRACING_H_
« no previous file with comments | « ash/common/system/chromeos/tray_caps_lock.cc ('k') | ash/common/system/chromeos/tray_tracing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698