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

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

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
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | chrome/common/extensions/api/notifications/notification_style.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/api/notifications/notification_style.h
diff --git a/chrome/common/extensions/api/notifications/notification_style.h b/chrome/common/extensions/api/notifications/notification_style.h
new file mode 100644
index 0000000000000000000000000000000000000000..ef4eb191b727015d1be90d94cda0a431267290d0
--- /dev/null
+++ b/chrome/common/extensions/api/notifications/notification_style.h
@@ -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.
+
+#ifndef CHROME_COMMON_EXTENSIONS_API_NOTIFICATIONS_NOTIFICATION_STYLE_H_
+#define CHROME_COMMON_EXTENSIONS_API_NOTIFICATIONS_NOTIFICATION_STYLE_H_
+
+#include "ui/gfx/size.h"
+
+// This structure describes the size in DIPs of each type of image rendered
+// by the notification center within a notification.
+struct NotificationBitmapSizes {
+ gfx::Size image_size;
+ gfx::Size icon_size;
+ gfx::Size button_icon_size;
+};
+
+NotificationBitmapSizes GetNotificationBitmapSizes();
+
+#endif // CHROME_COMMON_EXTENSIONS_API_NOTIFICATIONS_NOTIFICATION_STYLE_H_
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | chrome/common/extensions/api/notifications/notification_style.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698