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

Unified Diff: ash/common/system/tray/system_tray_bubble.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/common/system/tray/special_popup_row.cc ('k') | ash/common/system/tray/system_tray_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/tray/system_tray_bubble.cc
diff --git a/ash/common/system/tray/system_tray_bubble.cc b/ash/common/system/tray/system_tray_bubble.cc
index a4826cd47a9c6f3750588fbf63fd734e0267b8ea..09ac6d5b23b06fcf5420f845fe86a88a1f83f8f1 100644
--- a/ash/common/system/tray/system_tray_bubble.cc
+++ b/ash/common/system/tray/system_tray_bubble.cc
@@ -41,9 +41,7 @@ const int kSwipeDelayMS = 150;
// the animation.
class AnimationObserverDeleteLayer : public ui::ImplicitAnimationObserver {
public:
- explicit AnimationObserverDeleteLayer(ui::Layer* layer)
- : layer_(layer) {
- }
+ explicit AnimationObserverDeleteLayer(ui::Layer* layer) : layer_(layer) {}
~AnimationObserverDeleteLayer() override {}
@@ -69,8 +67,7 @@ SystemTrayBubble::SystemTrayBubble(
bubble_view_(NULL),
items_(items),
bubble_type_(bubble_type),
- autoclose_delay_(0) {
-}
+ autoclose_delay_(0) {}
SystemTrayBubble::~SystemTrayBubble() {
DestroyItemViews();
@@ -197,8 +194,7 @@ void SystemTrayBubble::InitView(views::View* anchor,
CreateItemViews(login_status);
if (bubble_view_->CanActivate()) {
- bubble_view_->NotifyAccessibilityEvent(
- ui::AX_EVENT_ALERT, true);
+ bubble_view_->NotifyAccessibilityEvent(ui::AX_EVENT_ALERT, true);
}
}
@@ -214,8 +210,7 @@ void SystemTrayBubble::FocusDefaultIfNeeded() {
void SystemTrayBubble::DestroyItemViews() {
for (std::vector<ash::SystemTrayItem*>::iterator it = items_.begin();
- it != items_.end();
- ++it) {
+ it != items_.end(); ++it) {
switch (bubble_type_) {
case BUBBLE_TYPE_DEFAULT:
(*it)->DestroyDefaultView();
@@ -238,8 +233,7 @@ void SystemTrayBubble::StartAutoCloseTimer(int seconds) {
autoclose_.Stop();
autoclose_delay_ = seconds;
if (autoclose_delay_) {
- autoclose_.Start(FROM_HERE,
- base::TimeDelta::FromSeconds(autoclose_delay_),
+ autoclose_.Start(FROM_HERE, base::TimeDelta::FromSeconds(autoclose_delay_),
this, &SystemTrayBubble::Close);
}
}
@@ -273,8 +267,7 @@ bool SystemTrayBubble::IsVisible() {
bool SystemTrayBubble::ShouldShowShelf() const {
for (std::vector<ash::SystemTrayItem*>::const_iterator it = items_.begin();
- it != items_.end();
- ++it) {
+ it != items_.end(); ++it) {
if ((*it)->ShouldShowShelf())
return true;
}
« no previous file with comments | « ash/common/system/tray/special_popup_row.cc ('k') | ash/common/system/tray/system_tray_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698