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

Side by Side Diff: ash/common/system/tray/system_tray_item.cc

Issue 2095193002: clang-format all of //ash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « ash/common/system/tray/system_tray_item.h ('k') | ash/common/system/tray/throbber_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "ash/common/system/tray/system_tray_item.h" 5 #include "ash/common/system/tray/system_tray_item.h"
6 6
7 #include "ash/common/system/tray/system_tray_delegate.h" 7 #include "ash/common/system/tray/system_tray_delegate.h"
8 #include "ash/system/tray/system_tray.h" 8 #include "ash/system/tray/system_tray.h"
9 #include "ui/views/view.h" 9 #include "ui/views/view.h"
10 10
11 namespace ash { 11 namespace ash {
12 12
13 SystemTrayItem::SystemTrayItem(SystemTray* system_tray) 13 SystemTrayItem::SystemTrayItem(SystemTray* system_tray)
14 : system_tray_(system_tray), 14 : system_tray_(system_tray), restore_focus_(false) {}
15 restore_focus_(false) {
16 }
17 15
18 SystemTrayItem::~SystemTrayItem() { 16 SystemTrayItem::~SystemTrayItem() {}
19 }
20 17
21 views::View* SystemTrayItem::CreateTrayView(LoginStatus status) { 18 views::View* SystemTrayItem::CreateTrayView(LoginStatus status) {
22 return NULL; 19 return NULL;
23 } 20 }
24 21
25 views::View* SystemTrayItem::CreateDefaultView(LoginStatus status) { 22 views::View* SystemTrayItem::CreateDefaultView(LoginStatus status) {
26 return NULL; 23 return NULL;
27 } 24 }
28 25
29 views::View* SystemTrayItem::CreateDetailedView(LoginStatus status) { 26 views::View* SystemTrayItem::CreateDetailedView(LoginStatus status) {
30 return NULL; 27 return NULL;
31 } 28 }
32 29
33 views::View* SystemTrayItem::CreateNotificationView(LoginStatus status) { 30 views::View* SystemTrayItem::CreateNotificationView(LoginStatus status) {
34 return NULL; 31 return NULL;
35 } 32 }
36 33
37 void SystemTrayItem::DestroyTrayView() { 34 void SystemTrayItem::DestroyTrayView() {}
38 }
39 35
40 void SystemTrayItem::DestroyDefaultView() { 36 void SystemTrayItem::DestroyDefaultView() {}
41 }
42 37
43 void SystemTrayItem::DestroyDetailedView() { 38 void SystemTrayItem::DestroyDetailedView() {}
44 }
45 39
46 void SystemTrayItem::DestroyNotificationView() { 40 void SystemTrayItem::DestroyNotificationView() {}
47 }
48 41
49 void SystemTrayItem::TransitionDetailedView() { 42 void SystemTrayItem::TransitionDetailedView() {
50 system_tray()->ShowDetailedView(this, 0, true, BUBBLE_USE_EXISTING); 43 system_tray()->ShowDetailedView(this, 0, true, BUBBLE_USE_EXISTING);
51 } 44 }
52 45
53 void SystemTrayItem::UpdateAfterLoginStatusChange(LoginStatus status) {} 46 void SystemTrayItem::UpdateAfterLoginStatusChange(LoginStatus status) {}
54 47
55 void SystemTrayItem::UpdateAfterShelfAlignmentChange(ShelfAlignment alignment) { 48 void SystemTrayItem::UpdateAfterShelfAlignmentChange(ShelfAlignment alignment) {
56 } 49 }
57 50
58 void SystemTrayItem::PopupDetailedView(int for_seconds, bool activate) { 51 void SystemTrayItem::PopupDetailedView(int for_seconds, bool activate) {
59 system_tray()->ShowDetailedView( 52 system_tray()->ShowDetailedView(this, for_seconds, activate,
60 this, for_seconds, activate, BUBBLE_CREATE_NEW); 53 BUBBLE_CREATE_NEW);
61 } 54 }
62 55
63 void SystemTrayItem::SetDetailedViewCloseDelay(int for_seconds) { 56 void SystemTrayItem::SetDetailedViewCloseDelay(int for_seconds) {
64 system_tray()->SetDetailedViewCloseDelay(for_seconds); 57 system_tray()->SetDetailedViewCloseDelay(for_seconds);
65 } 58 }
66 59
67 void SystemTrayItem::HideDetailedView() { 60 void SystemTrayItem::HideDetailedView() {
68 system_tray()->HideDetailedView(this); 61 system_tray()->HideDetailedView(this);
69 } 62 }
70 63
71 void SystemTrayItem::ShowNotificationView() { 64 void SystemTrayItem::ShowNotificationView() {
72 system_tray()->ShowNotificationView(this); 65 system_tray()->ShowNotificationView(this);
73 } 66 }
74 67
75 void SystemTrayItem::HideNotificationView() { 68 void SystemTrayItem::HideNotificationView() {
76 system_tray()->HideNotificationView(this); 69 system_tray()->HideNotificationView(this);
77 } 70 }
78 71
79 bool SystemTrayItem::ShouldHideArrow() const { 72 bool SystemTrayItem::ShouldHideArrow() const {
80 return false; 73 return false;
81 } 74 }
82 75
83 bool SystemTrayItem::ShouldShowShelf() const { 76 bool SystemTrayItem::ShouldShowShelf() const {
84 return true; 77 return true;
85 } 78 }
86 79
87 } // namespace ash 80 } // namespace ash
OLDNEW
« no previous file with comments | « ash/common/system/tray/system_tray_item.h ('k') | ash/common/system/tray/throbber_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698