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

Unified Diff: chrome/common/extensions/api/notifications/notification_style.cc

Issue 291193009: Reland: Allow high-res bitmaps to be passed in from notifications API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix test post-rebase. Created 6 years, 7 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
Index: chrome/common/extensions/api/notifications/notification_style.cc
diff --git a/chrome/common/extensions/api/notifications/notification_style.cc b/chrome/common/extensions/api/notifications/notification_style.cc
new file mode 100644
index 0000000000000000000000000000000000000000..5d2d8833e3e2615270dd67cb43f1d65474d3fc74
--- /dev/null
+++ b/chrome/common/extensions/api/notifications/notification_style.cc
@@ -0,0 +1,20 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/common/extensions/api/notifications/notification_style.h"
+
+#include "ui/message_center/message_center_style.h"
+
+NotificationBitmapSizes GetNotificationBitmapSizes() {
+ NotificationBitmapSizes sizes;
+ sizes.image_size =
+ gfx::Size(message_center::kNotificationPreferredImageWidth,
+ message_center::kNotificationPreferredImageHeight);
+ sizes.icon_size = gfx::Size(message_center::kNotificationIconSize,
+ message_center::kNotificationIconSize);
+ sizes.button_icon_size =
+ gfx::Size(message_center::kNotificationButtonIconSize,
+ message_center::kNotificationButtonIconSize);
+ return sizes;
+}

Powered by Google App Engine
This is Rietveld 408576698