summaryrefslogtreecommitdiff
path: root/chromium/components/resources/android
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2020-10-12 14:27:29 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-10-13 09:35:20 +0000
commitc30a6232df03e1efbd9f3b226777b07e087a1122 (patch)
treee992f45784689f373bcc38d1b79a239ebe17ee23 /chromium/components/resources/android
parent7b5b123ac58f58ffde0f4f6e488bcd09aa4decd3 (diff)
downloadqtwebengine-chromium-85-based.tar.gz
BASELINE: Update Chromium to 85.0.4183.14085-based
Change-Id: Iaa42f4680837c57725b1344f108c0196741f6057 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/components/resources/android')
-rw-r--r--chromium/components/resources/android/blocked_content_resource_id.h27
-rw-r--r--chromium/components/resources/android/theme_resources.h1
2 files changed, 28 insertions, 0 deletions
diff --git a/chromium/components/resources/android/blocked_content_resource_id.h b/chromium/components/resources/android/blocked_content_resource_id.h
new file mode 100644
index 00000000000..aa1e9cd9d2d
--- /dev/null
+++ b/chromium/components/resources/android/blocked_content_resource_id.h
@@ -0,0 +1,27 @@
+// Copyright 2020 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.
+
+// This file maps resource IDs to Android resource IDs.
+
+// Presence of regular include guards is checked by:
+// 1. cpplint
+// 2. a custom presubmit in src/PRESUBMIT.py
+// 3. clang (but it only checks the guard is correct if present)
+// Disable the first two with these magic comments:
+// NOLINT(build/header_guard)
+// no-include-guard-because-multiply-included
+
+// LINK_RESOURCE_ID is used for IDs that come from a .grd file.
+#ifndef LINK_RESOURCE_ID
+#error "LINK_RESOURCE_ID should be defined before including this file"
+#endif
+// DECLARE_RESOURCE_ID is used for IDs that don't have .grd entries, and
+// are only declared in this file.
+#ifndef DECLARE_RESOURCE_ID
+#error "DECLARE_RESOURCE_ID should be defined before including this file"
+#endif
+
+// InfoBar resources.
+DECLARE_RESOURCE_ID(IDR_ANDROID_INFOBAR_BLOCKED_POPUPS,
+ R.drawable.infobar_blocked_popups)
diff --git a/chromium/components/resources/android/theme_resources.h b/chromium/components/resources/android/theme_resources.h
index a84712ddf37..b48a7a50a5f 100644
--- a/chromium/components/resources/android/theme_resources.h
+++ b/chromium/components/resources/android/theme_resources.h
@@ -14,6 +14,7 @@ enum {
// Not used; just provides a starting value for the enum. These must
// not conflict with IDR_* values, which top out at 2^16 - 1.
ANDROID_COMPONENTS_RESOURCE_ID_NONE = 1 << 16,
+#include "components/resources/android/blocked_content_resource_id.h"
#include "components/resources/android/page_info_resource_id.h"
#include "components/resources/android/permissions_resource_id.h"
ANDROID_COMPONENTS_RESOURCE_ID_MAX,