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

Side by Side Diff: ash/system/tray_tracing.h

Issue 22654003: Create system tray item for accessing chrome://slow (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Code review fixes Created 7 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef ASH_SYSTEM_TRAY_TRACING_H_
6 #define ASH_SYSTEM_TRAY_TRACING_H_
7
8 #include "ash/ash_export.h"
9 #include "ash/system/tray/tray_image_item.h"
10
11 namespace views {
12 class View;
13 }
14
15 namespace ash {
16
17 class ASH_EXPORT TracingObserver {
18 public:
19 virtual ~TracingObserver() {}
20
21 // Notifies when tracing mode changes.
22 virtual void OnTracingModeChanged(bool value) = 0;
23 };
24
25 namespace internal {
26
27 class TrayTracing : public TrayImageItem,
James Cook 2013/08/09 20:06:02 needs class comment
Zachary Kuznia 2013/08/09 20:58:04 Done.
28 public TracingObserver {
29 public:
30 explicit TrayTracing(SystemTray* system_tray);
31 virtual ~TrayTracing();
32
33 private:
34 void SetTrayIconVisible(bool visible);
35
36 // Overridden from TrayImageItem.
37 virtual bool GetInitialVisibility() OVERRIDE;
38 virtual views::View* CreateDefaultView(user::LoginStatus status) OVERRIDE;
39 virtual views::View* CreateDetailedView(user::LoginStatus status) OVERRIDE;
40 virtual void DestroyDefaultView() OVERRIDE;
41 virtual void DestroyDetailedView() OVERRIDE;
42
43 // Overridden from TracingObserver.
44 virtual void OnTracingModeChanged(bool value) OVERRIDE;
45
46 views::View* default_;
47
48 DISALLOW_COPY_AND_ASSIGN(TrayTracing);
49 };
50
51 } // namespace internal
52 } // namespace ash
53
54 #endif // ASH_SYSTEM_TRAY_TRACING_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698