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

Side by Side Diff: chrome/common/extensions/api/notifications/notification_style.cc

Issue 1731483003: chrome: Add out-of-line copy ctors for complex classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "chrome/common/extensions/api/notifications/notification_style.h" 5 #include "chrome/common/extensions/api/notifications/notification_style.h"
6 6
7 #include "ui/message_center/message_center_style.h" 7 #include "ui/message_center/message_center_style.h"
8 8
9 NotificationBitmapSizes::NotificationBitmapSizes() { 9 NotificationBitmapSizes::NotificationBitmapSizes() {
10 } 10 }
11 NotificationBitmapSizes::NotificationBitmapSizes(
12 const NotificationBitmapSizes& other) = default;
11 NotificationBitmapSizes::~NotificationBitmapSizes() { 13 NotificationBitmapSizes::~NotificationBitmapSizes() {
12 } 14 }
13 15
14 NotificationBitmapSizes GetNotificationBitmapSizes() { 16 NotificationBitmapSizes GetNotificationBitmapSizes() {
15 NotificationBitmapSizes sizes; 17 NotificationBitmapSizes sizes;
16 sizes.image_size = 18 sizes.image_size =
17 gfx::Size(message_center::kNotificationPreferredImageWidth, 19 gfx::Size(message_center::kNotificationPreferredImageWidth,
18 message_center::kNotificationPreferredImageHeight); 20 message_center::kNotificationPreferredImageHeight);
19 sizes.icon_size = gfx::Size(message_center::kNotificationIconSize, 21 sizes.icon_size = gfx::Size(message_center::kNotificationIconSize,
20 message_center::kNotificationIconSize); 22 message_center::kNotificationIconSize);
21 sizes.button_icon_size = 23 sizes.button_icon_size =
22 gfx::Size(message_center::kNotificationButtonIconSize, 24 gfx::Size(message_center::kNotificationButtonIconSize,
23 message_center::kNotificationButtonIconSize); 25 message_center::kNotificationButtonIconSize);
24 26
25 sizes.app_icon_mask_size = gfx::Size(message_center::kSmallImageSize, 27 sizes.app_icon_mask_size = gfx::Size(message_center::kSmallImageSize,
26 message_center::kSmallImageSize); 28 message_center::kSmallImageSize);
27 return sizes; 29 return sizes;
28 } 30 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698