Chromium Code Reviews| Index: ash/system/tray_tracing.h |
| diff --git a/ash/system/tray_tracing.h b/ash/system/tray_tracing.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..bae8ba8761399ac258066f366b34cb3d25d479d6 |
| --- /dev/null |
| +++ b/ash/system/tray_tracing.h |
| @@ -0,0 +1,54 @@ |
| +// Copyright (c) 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/system/tray/tray_image_item.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; |
| +}; |
| + |
| +namespace internal { |
| + |
| +class TrayTracing : public TrayImageItem, |
|
James Cook
2013/08/09 20:06:02
needs class comment
Zachary Kuznia
2013/08/09 20:58:04
Done.
|
| + public TracingObserver { |
| + public: |
| + explicit TrayTracing(SystemTray* system_tray); |
| + virtual ~TrayTracing(); |
| + |
| + private: |
| + void SetTrayIconVisible(bool visible); |
| + |
| + // Overridden from TrayImageItem. |
| + virtual bool GetInitialVisibility() OVERRIDE; |
| + virtual views::View* CreateDefaultView(user::LoginStatus status) OVERRIDE; |
| + virtual views::View* CreateDetailedView(user::LoginStatus status) OVERRIDE; |
| + virtual void DestroyDefaultView() OVERRIDE; |
| + virtual void DestroyDetailedView() OVERRIDE; |
| + |
| + // Overridden from TracingObserver. |
| + virtual void OnTracingModeChanged(bool value) OVERRIDE; |
| + |
| + views::View* default_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(TrayTracing); |
| +}; |
| + |
| +} // namespace internal |
| +} // namespace ash |
| + |
| +#endif // ASH_SYSTEM_TRAY_TRACING_H_ |