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

Unified Diff: ash/popup_message.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/popup_message.h ('k') | ash/popup_message_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/popup_message.cc
diff --git a/ash/popup_message.cc b/ash/popup_message.cc
index ea2713b1fbc65ebec3e4474518b17f8f1a67dd23..231e4daed57bc422d229b8c5545e6d1b7ba7f2f5 100644
--- a/ash/popup_message.cc
+++ b/ash/popup_message.cc
@@ -77,10 +77,9 @@ PopupMessage::MessageBubble::MessageBubble(const base::string16& caption,
int arrow_offset)
: views::BubbleDialogDelegateView(anchor, arrow),
size_override_(size_override) {
- gfx::Insets insets = gfx::Insets(kArrowOffsetTopBottom,
- kArrowOffsetLeftRight,
- kArrowOffsetTopBottom,
- kArrowOffsetLeftRight);
+ gfx::Insets insets =
+ gfx::Insets(kArrowOffsetTopBottom, kArrowOffsetLeftRight,
+ kArrowOffsetTopBottom, kArrowOffsetLeftRight);
// An anchor can have an asymmetrical border for spacing reasons. Adjust the
// anchor location for this.
if (anchor->border())
@@ -117,8 +116,7 @@ PopupMessage::MessageBubble::MessageBubble(const base::string16& caption,
// Add the icon to the first column (if there is one).
if (message_type != ICON_NONE) {
views::ImageView* icon = new views::ImageView();
- icon->SetImage(
- bundle.GetImageNamed(IDR_AURA_WARNING_ICON).ToImageSkia());
+ icon->SetImage(bundle.GetImageNamed(IDR_AURA_WARNING_ICON).ToImageSkia());
icon->SetVerticalAlignment(views::ImageView::LEADING);
AddChildView(icon);
}
@@ -198,16 +196,14 @@ PopupMessage::PopupMessage(const base::string16& caption,
const gfx::Size& size_override,
int arrow_offset)
: view_(NULL) {
- view_ = new MessageBubble(
- caption, message, message_type, anchor, arrow, size_override,
- arrow_offset);
+ view_ = new MessageBubble(caption, message, message_type, anchor, arrow,
+ size_override, arrow_offset);
widget_ = view_->GetWidget();
gfx::NativeView native_view = widget_->GetNativeView();
wm::SetWindowVisibilityAnimationType(
native_view, wm::WINDOW_VISIBILITY_ANIMATION_TYPE_VERTICAL);
- wm::SetWindowVisibilityAnimationTransition(
- native_view, wm::ANIMATE_HIDE);
+ wm::SetWindowVisibilityAnimationTransition(native_view, wm::ANIMATE_HIDE);
view_->GetWidget()->Show();
}
@@ -229,8 +225,7 @@ void PopupMessage::CancelHidingAnimation() {
return;
gfx::NativeView native_view = widget_->GetNativeView();
- wm::SetWindowVisibilityAnimationTransition(
- native_view, wm::ANIMATE_NONE);
+ wm::SetWindowVisibilityAnimationTransition(native_view, wm::ANIMATE_NONE);
}
} // namespace ash
« no previous file with comments | « ash/popup_message.h ('k') | ash/popup_message_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698