Commit 74e4058a authored by Gyuyoung Kim's avatar Gyuyoung Kim Committed by Commit Bot

Include *.mojom-forward.h instead of .mojom.h from notification_mojom_traits.h...

Include *.mojom-forward.h instead of .mojom.h from notification_mojom_traits.h and platform_notification_data.h

To reduce pre-processed size in notification_mojom_traits.h
and platform_notification_data.h, this CL replaces .mojom.h
with .mojom-forward.h.

This CL has no behavior changes.

Bug: 1001360
Change-Id: I11e01d8e295b1dcc3813b2a280255b418a4a3fea
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1804941Reviewed-by: default avatarKent Tamura <tkent@chromium.org>
Reviewed-by: default avatarRichard Knoll <knollr@chromium.org>
Reviewed-by: default avatarDominick Ng <dominickn@chromium.org>
Commit-Queue: Gyuyoung Kim <gyuyoung@igalia.com>
Cr-Commit-Position: refs/heads/master@{#697934}
parent d5a403fe
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
#include "content/browser/notifications/notification_database_resources.pb.h" #include "content/browser/notifications/notification_database_resources.pb.h"
#include "content/public/browser/notification_database_data.h" #include "content/public/browser/notification_database_data.h"
#include "third_party/blink/public/common/notifications/notification_resources.h" #include "third_party/blink/public/common/notifications/notification_resources.h"
#include "third_party/blink/public/mojom/notifications/notification.mojom.h"
#include "third_party/skia/include/core/SkBitmap.h" #include "third_party/skia/include/core/SkBitmap.h"
#include "ui/gfx/codec/png_codec.h" #include "ui/gfx/codec/png_codec.h"
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
#include "testing/gmock/include/gmock/gmock.h" #include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h" #include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/notifications/notification_resources.h" #include "third_party/blink/public/common/notifications/notification_resources.h"
#include "third_party/blink/public/mojom/notifications/notification.mojom.h"
#include "third_party/blink/public/platform/modules/notifications/web_notification_constants.h" #include "third_party/blink/public/platform/modules/notifications/web_notification_constants.h"
#include "third_party/skia/include/core/SkBitmap.h" #include "third_party/skia/include/core/SkBitmap.h"
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
#include "testing/gtest/include/gtest/gtest.h" #include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/notifications/notification_resources.h" #include "third_party/blink/public/common/notifications/notification_resources.h"
#include "third_party/blink/public/common/notifications/platform_notification_data.h" #include "third_party/blink/public/common/notifications/platform_notification_data.h"
#include "third_party/blink/public/mojom/notifications/notification.mojom.h"
#include "third_party/leveldatabase/src/include/leveldb/db.h" #include "third_party/leveldatabase/src/include/leveldb/db.h"
#include "third_party/leveldatabase/src/include/leveldb/write_batch.h" #include "third_party/leveldatabase/src/include/leveldb/write_batch.h"
#include "url/gurl.h" #include "url/gurl.h"
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
// found in the LICENSE file. // found in the LICENSE file.
#include "third_party/blink/public/common/notifications/notification_mojom_traits.h" #include "third_party/blink/public/common/notifications/notification_mojom_traits.h"
#include "third_party/blink/public/mojom/notifications/notification.mojom.h"
namespace { namespace {
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
// found in the LICENSE file. // found in the LICENSE file.
#include "third_party/blink/public/common/notifications/platform_notification_data.h" #include "third_party/blink/public/common/notifications/platform_notification_data.h"
#include "third_party/blink/public/mojom/notifications/notification.mojom.h"
namespace blink { namespace blink {
...@@ -13,7 +14,8 @@ PlatformNotificationAction::PlatformNotificationAction( ...@@ -13,7 +14,8 @@ PlatformNotificationAction::PlatformNotificationAction(
PlatformNotificationAction::~PlatformNotificationAction() {} PlatformNotificationAction::~PlatformNotificationAction() {}
PlatformNotificationData::PlatformNotificationData() {} PlatformNotificationData::PlatformNotificationData()
: direction(mojom::NotificationDirection::LEFT_TO_RIGHT) {}
PlatformNotificationData::PlatformNotificationData( PlatformNotificationData::PlatformNotificationData(
const PlatformNotificationData& other) = default; const PlatformNotificationData& other) = default;
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
#include "skia/public/mojom/bitmap_skbitmap_mojom_traits.h" #include "skia/public/mojom/bitmap_skbitmap_mojom_traits.h"
#include "third_party/blink/public/common/common_export.h" #include "third_party/blink/public/common/common_export.h"
#include "third_party/blink/public/common/notifications/platform_notification_data.h" #include "third_party/blink/public/common/notifications/platform_notification_data.h"
#include "third_party/blink/public/mojom/notifications/notification.mojom.h" #include "third_party/blink/public/mojom/notifications/notification.mojom-forward.h"
#include "url/gurl.h" #include "url/gurl.h"
#include "url/mojom/url_gurl_mojom_traits.h" #include "url/mojom/url_gurl_mojom_traits.h"
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
#include "base/strings/string16.h" #include "base/strings/string16.h"
#include "base/time/time.h" #include "base/time/time.h"
#include "third_party/blink/public/common/common_export.h" #include "third_party/blink/public/common/common_export.h"
#include "third_party/blink/public/mojom/notifications/notification.mojom.h" #include "third_party/blink/public/mojom/notifications/notification.mojom-forward.h"
#include "url/gurl.h" #include "url/gurl.h"
namespace blink { namespace blink {
...@@ -60,8 +60,7 @@ struct BLINK_COMMON_EXPORT PlatformNotificationData { ...@@ -60,8 +60,7 @@ struct BLINK_COMMON_EXPORT PlatformNotificationData {
base::string16 title; base::string16 title;
// Hint to determine the directionality of the displayed notification. // Hint to determine the directionality of the displayed notification.
mojom::NotificationDirection direction = mojom::NotificationDirection direction;
mojom::NotificationDirection::LEFT_TO_RIGHT;
// BCP 47 language tag describing the notification's contents. Optional. // BCP 47 language tag describing the notification's contents. Optional.
std::string lang; std::string lang;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment