Address cpplint issue "{ should almost always be at the end of the previous line [whitespace/braces] [4]"
This commit is contained in:
parent
63eeb96e71
commit
29f3332276
9 changed files with 152 additions and 304 deletions
|
@ -8,17 +8,14 @@ namespace brightray {
|
|||
void Win32Notification::Show(
|
||||
const base::string16& title, const base::string16& msg,
|
||||
const std::string& tag, const GURL& icon_url,
|
||||
const SkBitmap& icon, const bool silent)
|
||||
{
|
||||
const SkBitmap& icon, const bool silent) {
|
||||
auto presenter = static_cast<NotificationPresenterWin7*>(this->presenter());
|
||||
if(!presenter) return;
|
||||
|
||||
HBITMAP image = NULL;
|
||||
|
||||
if(!icon.drawsNothing())
|
||||
{
|
||||
if(icon.colorType() == kBGRA_8888_SkColorType)
|
||||
{
|
||||
if(!icon.drawsNothing()) {
|
||||
if(icon.colorType() == kBGRA_8888_SkColorType) {
|
||||
icon.lockPixels();
|
||||
|
||||
BITMAPINFOHEADER bmi = { sizeof(BITMAPINFOHEADER) };
|
||||
|
@ -40,14 +37,12 @@ void Win32Notification::Show(
|
|||
Win32Notification* existing = nullptr;
|
||||
if(!tag.empty()) existing = presenter->GetNotificationObjectByTag(tag);
|
||||
|
||||
if(existing)
|
||||
{
|
||||
if(existing) {
|
||||
existing->tag_.clear();
|
||||
this->notification_ref_ = std::move(existing->notification_ref_);
|
||||
this->notification_ref_.Set(title, msg, image);
|
||||
}
|
||||
else
|
||||
{
|
||||
else {
|
||||
this->notification_ref_ = presenter->AddNotification(title, msg, image);
|
||||
}
|
||||
|
||||
|
@ -56,8 +51,7 @@ void Win32Notification::Show(
|
|||
if(image) DeleteObject(image);
|
||||
}
|
||||
|
||||
void Win32Notification::Dismiss()
|
||||
{
|
||||
void Win32Notification::Dismiss() {
|
||||
notification_ref_.Close();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue