OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef ASH_SYSTEM_CHROMEOS_SCREEN_TRAY_ITEM_H_ | 5 #ifndef ASH_SYSTEM_CHROMEOS_SCREEN_TRAY_ITEM_H_ |
6 #define ASH_SYSTEM_CHROMEOS_SCREEN_TRAY_ITEM_H_ | 6 #define ASH_SYSTEM_CHROMEOS_SCREEN_TRAY_ITEM_H_ |
7 | 7 |
8 #include "ash/system/tray/system_tray.h" | 8 #include "ash/system/tray/system_tray.h" |
9 #include "ash/system/tray/system_tray_item.h" | 9 #include "ash/system/tray/system_tray_item.h" |
10 #include "ash/system/tray/system_tray_notifier.h" | 10 #include "ash/system/tray/system_tray_notifier.h" |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 | 92 |
93 DISALLOW_COPY_AND_ASSIGN(ScreenNotificationView); | 93 DISALLOW_COPY_AND_ASSIGN(ScreenNotificationView); |
94 }; | 94 }; |
95 | 95 |
96 } // namespace tray | 96 } // namespace tray |
97 | 97 |
98 | 98 |
99 // The base tray item for screen capture and screen sharing. The | 99 // The base tray item for screen capture and screen sharing. The |
100 // Start method brings up a notification and a tray item, and the user | 100 // Start method brings up a notification and a tray item, and the user |
101 // can stop the screen capture/sharing by pressing the stop button. | 101 // can stop the screen capture/sharing by pressing the stop button. |
102 class ScreenTrayItem : public SystemTrayItem { | 102 class ASH_EXPORT ScreenTrayItem : public SystemTrayItem { |
103 public: | 103 public: |
104 explicit ScreenTrayItem(SystemTray* system_tray); | 104 explicit ScreenTrayItem(SystemTray* system_tray); |
105 virtual ~ScreenTrayItem(); | 105 virtual ~ScreenTrayItem(); |
106 | 106 |
107 tray::ScreenTrayView* tray_view() { return tray_view_; } | 107 tray::ScreenTrayView* tray_view() { return tray_view_; } |
108 void set_tray_view(tray::ScreenTrayView* tray_view) { | 108 void set_tray_view(tray::ScreenTrayView* tray_view) { |
109 tray_view_ = tray_view; | 109 tray_view_ = tray_view; |
110 } | 110 } |
111 | 111 |
112 tray::ScreenStatusView* default_view() { return default_view_; } | 112 tray::ScreenStatusView* default_view() { return default_view_; } |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 bool is_started_; | 145 bool is_started_; |
146 base::Closure stop_callback_; | 146 base::Closure stop_callback_; |
147 | 147 |
148 DISALLOW_COPY_AND_ASSIGN(ScreenTrayItem); | 148 DISALLOW_COPY_AND_ASSIGN(ScreenTrayItem); |
149 }; | 149 }; |
150 | 150 |
151 } // namespace internal | 151 } // namespace internal |
152 } // namespace ash | 152 } // namespace ash |
153 | 153 |
154 #endif // ASH_SYSTEM_CHROMEOS_SCREEN_TRAY_ITEM_H_ | 154 #endif // ASH_SYSTEM_CHROMEOS_SCREEN_TRAY_ITEM_H_ |
OLD | NEW |