commit
3d4e86165c
@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/third_party/libyuv/source/row_neon.cc b/third_party/libyuv/source/row_neon.cc
|
||||||
|
index 6ef6f1c..e4a9e1e 100644
|
||||||
|
--- a/third_party/libyuv/source/row_neon.cc
|
||||||
|
+++ b/third_party/libyuv/source/row_neon.cc
|
||||||
|
@@ -2346,7 +2346,7 @@ void ARGBToAB64Row_NEON(const uint8_t* src_argb,
|
||||||
|
uint16_t* dst_ab64,
|
||||||
|
int width) {
|
||||||
|
asm volatile(
|
||||||
|
- "vld1.8 q4, %3 \n" // shuffler
|
||||||
|
+ "vld1.8 {d8, d9}, %3 \n" // shuffler
|
||||||
|
"1: \n"
|
||||||
|
"vld1.8 {q0}, [%0]! \n"
|
||||||
|
"vld1.8 {q2}, [%0]! \n"
|
@ -0,0 +1,91 @@
|
|||||||
|
Workaround GCC ICE with MiraclePtr, see https://gcc.gnu.org/PR103455
|
||||||
|
|
||||||
|
--- a/gpu/command_buffer/client/gl_helper.h
|
||||||
|
+++ b/gpu/command_buffer/client/gl_helper.h
|
||||||
|
@@ -34,7 +34,7 @@ class ScopedGLuint {
|
||||||
|
GenFunc gen_func,
|
||||||
|
DeleteFunc delete_func)
|
||||||
|
: gl_(gl), id_(0u), delete_func_(delete_func) {
|
||||||
|
- (gl_->*gen_func)(1, &id_);
|
||||||
|
+ (gl_.get()->*gen_func)(1, &id_);
|
||||||
|
}
|
||||||
|
|
||||||
|
operator GLuint() const { return id_; }
|
||||||
|
@@ -46,7 +46,7 @@ class ScopedGLuint {
|
||||||
|
|
||||||
|
~ScopedGLuint() {
|
||||||
|
if (id_ != 0) {
|
||||||
|
- (gl_->*delete_func_)(1, &id_);
|
||||||
|
+ (gl_.get()->*delete_func_)(1, &id_);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@@ -86,13 +86,13 @@ class ScopedBinder {
|
||||||
|
typedef void (gles2::GLES2Interface::*BindFunc)(GLenum target, GLuint id);
|
||||||
|
ScopedBinder(gles2::GLES2Interface* gl, GLuint id, BindFunc bind_func)
|
||||||
|
: gl_(gl), bind_func_(bind_func) {
|
||||||
|
- (gl_->*bind_func_)(Target, id);
|
||||||
|
+ (gl_.get()->*bind_func_)(Target, id);
|
||||||
|
}
|
||||||
|
|
||||||
|
ScopedBinder(const ScopedBinder&) = delete;
|
||||||
|
ScopedBinder& operator=(const ScopedBinder&) = delete;
|
||||||
|
|
||||||
|
- virtual ~ScopedBinder() { (gl_->*bind_func_)(Target, 0); }
|
||||||
|
+ virtual ~ScopedBinder() { (gl_.get()->*bind_func_)(Target, 0); }
|
||||||
|
|
||||||
|
private:
|
||||||
|
raw_ptr<gles2::GLES2Interface> gl_;
|
||||||
|
--- a/ui/accessibility/ax_node.h
|
||||||
|
+++ b/ui/accessibility/ax_node.h
|
||||||
|
@@ -822,10 +822,10 @@ AXNode::ChildIteratorBase<NodeType,
|
||||||
|
// increment the iterator past the end, we remain at the past-the-end iterator
|
||||||
|
// condition.
|
||||||
|
if (child_ && parent_) {
|
||||||
|
- if (child_ == (parent_->*LastChild)())
|
||||||
|
+ if (child_ == (parent_.get()->*LastChild)())
|
||||||
|
child_ = nullptr;
|
||||||
|
else
|
||||||
|
- child_ = (child_->*NextSibling)();
|
||||||
|
+ child_ = (child_.get()->*NextSibling)();
|
||||||
|
}
|
||||||
|
|
||||||
|
return *this;
|
||||||
|
@@ -850,12 +850,12 @@ AXNode::ChildIteratorBase<NodeType,
|
||||||
|
// If the iterator is past the end, |child_=nullptr|, decrement the iterator
|
||||||
|
// gives us the last iterator element.
|
||||||
|
if (!child_)
|
||||||
|
- child_ = (parent_->*LastChild)();
|
||||||
|
+ child_ = (parent_.get()->*LastChild)();
|
||||||
|
// Decrement the iterator gives us the previous element, except when the
|
||||||
|
// iterator is at the beginning; in which case, decrementing the iterator
|
||||||
|
// remains at the beginning.
|
||||||
|
- else if (child_ != (parent_->*FirstChild)())
|
||||||
|
- child_ = (child_->*PreviousSibling)();
|
||||||
|
+ else if (child_ != (parent_.get()->*FirstChild)())
|
||||||
|
+ child_ = (child_.get()->*PreviousSibling)();
|
||||||
|
}
|
||||||
|
|
||||||
|
return *this;
|
||||||
|
--- a/ui/views/layout/flex_layout_types.cc
|
||||||
|
+++ b/ui/views/layout/flex_layout_types.cc
|
||||||
|
@@ -59,7 +59,7 @@ class LazySize {
|
||||||
|
const gfx::Size& operator*() const { return *get(); }
|
||||||
|
const gfx::Size* get() const {
|
||||||
|
if (!size_)
|
||||||
|
- size_ = (view_->*size_func_)();
|
||||||
|
+ size_ = (view_.get()->*size_func_)();
|
||||||
|
return &size_.value();
|
||||||
|
}
|
||||||
|
LazyDimension width() const {
|
||||||
|
--- a/chrome/browser/ui/views/passwords/auto_signin_first_run_dialog_view.cc
|
||||||
|
+++ b/chrome/browser/ui/views/passwords/auto_signin_first_run_dialog_view.cc
|
||||||
|
@@ -37,7 +37,7 @@ AutoSigninFirstRunDialogView::AutoSigninFirstRunDialogView(
|
||||||
|
auto call_controller = [](AutoSigninFirstRunDialogView* dialog,
|
||||||
|
ControllerCallbackFn func) {
|
||||||
|
if (dialog->controller_) {
|
||||||
|
- (dialog->controller_->*func)();
|
||||||
|
+ (dialog->controller_.get()->*func)();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
SetAcceptCallback(
|
@ -0,0 +1,27 @@
|
|||||||
|
From 8e2458ffc6727943518a622753b074b42e713403 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Stephan Hartmann <stha09@googlemail.com>
|
||||||
|
Date: Sat, 18 Dec 2021 08:38:57 +0000
|
||||||
|
Subject: [PATCH] libstdc++: fix DCHECK_NE in ui::WaylandFrameManager
|
||||||
|
|
||||||
|
There is no CheckOpValueStr() for std::unique_ptr. Use get() to
|
||||||
|
compare pointer values.
|
||||||
|
---
|
||||||
|
ui/ozone/platform/wayland/host/wayland_frame_manager.cc | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/ui/ozone/platform/wayland/host/wayland_frame_manager.cc b/ui/ozone/platform/wayland/host/wayland_frame_manager.cc
|
||||||
|
index 569526c..58fae14 100644
|
||||||
|
--- a/ui/ozone/platform/wayland/host/wayland_frame_manager.cc
|
||||||
|
+++ b/ui/ozone/platform/wayland/host/wayland_frame_manager.cc
|
||||||
|
@@ -379,7 +379,7 @@ void WaylandFrameManager::OnPresentation(
|
||||||
|
// Investigate the issue with surface sync.
|
||||||
|
frame->feedback = gfx::PresentationFeedback::Failure();
|
||||||
|
}
|
||||||
|
- CHECK_NE(frame, submitted_frames_.back());
|
||||||
|
+ CHECK_NE(frame.get(), submitted_frames_.back().get());
|
||||||
|
}
|
||||||
|
MaybeProcessSubmittedFrames();
|
||||||
|
}
|
||||||
|
--
|
||||||
|
2.32.0
|
||||||
|
|
@ -0,0 +1,75 @@
|
|||||||
|
diff -up chromium-98.0.4758.80/components/cast_channel/enum_table.h.EnumTable-crash chromium-98.0.4758.80/components/cast_channel/enum_table.h
|
||||||
|
--- chromium-98.0.4758.80/components/cast_channel/enum_table.h.EnumTable-crash 2022-02-01 00:41:47.000000000 +0000
|
||||||
|
+++ chromium-98.0.4758.80/components/cast_channel/enum_table.h 2022-02-02 18:54:23.096214186 +0000
|
||||||
|
@@ -8,6 +8,7 @@
|
||||||
|
#include <cstdint>
|
||||||
|
#include <cstring>
|
||||||
|
#include <ostream>
|
||||||
|
+#include <vector>
|
||||||
|
|
||||||
|
#include "base/check_op.h"
|
||||||
|
#include "base/notreached.h"
|
||||||
|
@@ -187,7 +188,6 @@ class
|
||||||
|
inline constexpr GenericEnumTableEntry(int32_t value);
|
||||||
|
inline constexpr GenericEnumTableEntry(int32_t value, base::StringPiece str);
|
||||||
|
|
||||||
|
- GenericEnumTableEntry(const GenericEnumTableEntry&) = delete;
|
||||||
|
GenericEnumTableEntry& operator=(const GenericEnumTableEntry&) = delete;
|
||||||
|
|
||||||
|
private:
|
||||||
|
@@ -253,7 +253,6 @@ class EnumTable {
|
||||||
|
constexpr Entry(E value, base::StringPiece str)
|
||||||
|
: GenericEnumTableEntry(static_cast<int32_t>(value), str) {}
|
||||||
|
|
||||||
|
- Entry(const Entry&) = delete;
|
||||||
|
Entry& operator=(const Entry&) = delete;
|
||||||
|
};
|
||||||
|
|
||||||
|
@@ -312,15 +311,14 @@ class EnumTable {
|
||||||
|
if (is_sorted_) {
|
||||||
|
const std::size_t index = static_cast<std::size_t>(value);
|
||||||
|
if (ANALYZER_ASSUME_TRUE(index < data_.size())) {
|
||||||
|
- const auto& entry = data_.begin()[index];
|
||||||
|
+ const auto& entry = data_[index];
|
||||||
|
if (ANALYZER_ASSUME_TRUE(entry.has_str()))
|
||||||
|
return entry.str();
|
||||||
|
}
|
||||||
|
return absl::nullopt;
|
||||||
|
}
|
||||||
|
return GenericEnumTableEntry::FindByValue(
|
||||||
|
- reinterpret_cast<const GenericEnumTableEntry*>(data_.begin()),
|
||||||
|
- data_.size(), static_cast<int32_t>(value));
|
||||||
|
+ &data_[0], data_.size(), static_cast<int32_t>(value));
|
||||||
|
}
|
||||||
|
|
||||||
|
// This overload of GetString is designed for cases where the argument is a
|
||||||
|
@@ -348,8 +346,7 @@ class EnumTable {
|
||||||
|
// enum value directly.
|
||||||
|
absl::optional<E> GetEnum(base::StringPiece str) const {
|
||||||
|
auto* entry = GenericEnumTableEntry::FindByString(
|
||||||
|
- reinterpret_cast<const GenericEnumTableEntry*>(data_.begin()),
|
||||||
|
- data_.size(), str);
|
||||||
|
+ &data_[0], data_.size(), str);
|
||||||
|
return entry ? static_cast<E>(entry->value) : absl::optional<E>();
|
||||||
|
}
|
||||||
|
|
||||||
|
@@ -364,7 +361,7 @@ class EnumTable {
|
||||||
|
// Align the data on a cache line boundary.
|
||||||
|
alignas(64)
|
||||||
|
#endif
|
||||||
|
- std::initializer_list<Entry> data_;
|
||||||
|
+ const std::vector<Entry> data_;
|
||||||
|
bool is_sorted_;
|
||||||
|
|
||||||
|
constexpr EnumTable(std::initializer_list<Entry> data, bool is_sorted)
|
||||||
|
@@ -376,8 +373,8 @@ class EnumTable {
|
||||||
|
|
||||||
|
for (std::size_t i = 0; i < data.size(); i++) {
|
||||||
|
for (std::size_t j = i + 1; j < data.size(); j++) {
|
||||||
|
- const Entry& ei = data.begin()[i];
|
||||||
|
- const Entry& ej = data.begin()[j];
|
||||||
|
+ const Entry& ei = data[i];
|
||||||
|
+ const Entry& ej = data[j];
|
||||||
|
DCHECK(ei.value != ej.value)
|
||||||
|
<< "Found duplicate enum values at indices " << i << " and " << j;
|
||||||
|
DCHECK(!(ei.has_str() && ej.has_str() && ei.str() == ej.str()))
|
@ -0,0 +1,15 @@
|
|||||||
|
diff -up chromium-98.0.4758.80/base/allocator/partition_allocator/starscan/metadata_allocator.h.wtf chromium-98.0.4758.80/base/allocator/partition_allocator/starscan/metadata_allocator.h
|
||||||
|
--- chromium-98.0.4758.80/base/allocator/partition_allocator/starscan/metadata_allocator.h.wtf 2022-02-05 16:05:15.125570250 +0000
|
||||||
|
+++ chromium-98.0.4758.80/base/allocator/partition_allocator/starscan/metadata_allocator.h 2022-02-05 16:11:45.519670294 +0000
|
||||||
|
@@ -39,6 +39,11 @@ class MetadataAllocator {
|
||||||
|
}
|
||||||
|
|
||||||
|
template <typename U>
|
||||||
|
+ bool operator==(const MetadataAllocator<U>&) const {
|
||||||
|
+ return true;
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ template <typename U>
|
||||||
|
bool operator!=(const MetadataAllocator<U>& o) {
|
||||||
|
return !operator==(o);
|
||||||
|
}
|
@ -0,0 +1,62 @@
|
|||||||
|
diff -up chromium-98.0.4758.80/chrome/browser/about_flags.cc.accel-mjpeg chromium-98.0.4758.80/chrome/browser/about_flags.cc
|
||||||
|
--- chromium-98.0.4758.80/chrome/browser/about_flags.cc.accel-mjpeg 2022-02-01 00:41:40.000000000 +0000
|
||||||
|
+++ chromium-98.0.4758.80/chrome/browser/about_flags.cc 2022-02-02 19:23:15.554137616 +0000
|
||||||
|
@@ -3822,12 +3822,12 @@ const FeatureEntry kFeatureEntries[] = {
|
||||||
|
flag_descriptions::kWebXrForceRuntimeDescription, kOsDesktop,
|
||||||
|
MULTI_VALUE_TYPE(kWebXrForceRuntimeChoices)},
|
||||||
|
#endif // ENABLE_VR
|
||||||
|
-#if BUILDFLAG(IS_CHROMEOS_ASH)
|
||||||
|
+#if BUILDFLAG(IS_CHROMEOS_ASH) || defined(OS_LINUX)
|
||||||
|
{"disable-accelerated-mjpeg-decode",
|
||||||
|
flag_descriptions::kAcceleratedMjpegDecodeName,
|
||||||
|
- flag_descriptions::kAcceleratedMjpegDecodeDescription, kOsCrOS,
|
||||||
|
+ flag_descriptions::kAcceleratedMjpegDecodeDescription, kOsCrOS | kOsLinux,
|
||||||
|
SINGLE_DISABLE_VALUE_TYPE(switches::kDisableAcceleratedMjpegDecode)},
|
||||||
|
-#endif // BUILDFLAG(IS_CHROMEOS_ASH)
|
||||||
|
+#endif // BUILDFLAG(IS_CHROMEOS_ASH) || OS_LINUX
|
||||||
|
{"system-keyboard-lock", flag_descriptions::kSystemKeyboardLockName,
|
||||||
|
flag_descriptions::kSystemKeyboardLockDescription, kOsDesktop,
|
||||||
|
FEATURE_VALUE_TYPE(features::kSystemKeyboardLock)},
|
||||||
|
diff -up chromium-98.0.4758.80/chrome/browser/flag_descriptions.cc.accel-mjpeg chromium-98.0.4758.80/chrome/browser/flag_descriptions.cc
|
||||||
|
--- chromium-98.0.4758.80/chrome/browser/flag_descriptions.cc.accel-mjpeg 2022-02-02 19:23:15.555137569 +0000
|
||||||
|
+++ chromium-98.0.4758.80/chrome/browser/flag_descriptions.cc 2022-02-02 19:30:58.315465225 +0000
|
||||||
|
@@ -3979,7 +3979,7 @@ const char kUseAngleGL[] = "OpenGL";
|
||||||
|
|
||||||
|
// Chrome OS -------------------------------------------------------------------
|
||||||
|
|
||||||
|
-#if BUILDFLAG(IS_CHROMEOS_ASH)
|
||||||
|
+#if BUILDFLAG(IS_CHROMEOS_ASH) || (defined(OS_LINUX) && !defined(OS_ANDROID))
|
||||||
|
|
||||||
|
const char kAcceleratedMjpegDecodeName[] =
|
||||||
|
"Hardware-accelerated mjpeg decode for captured frame";
|
||||||
|
@@ -3987,6 +3987,10 @@ const char kAcceleratedMjpegDecodeDescri
|
||||||
|
"Enable hardware-accelerated mjpeg decode for captured frame where "
|
||||||
|
"available.";
|
||||||
|
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
+#if BUILDFLAG(IS_CHROMEOS_ASH)
|
||||||
|
+
|
||||||
|
const char kAllowDisableMouseAccelerationName[] =
|
||||||
|
"Allow disabling mouse acceleration";
|
||||||
|
const char kAllowDisableMouseAccelerationDescription[] =
|
||||||
|
diff -up chromium-98.0.4758.80/chrome/browser/flag_descriptions.h.accel-mjpeg chromium-98.0.4758.80/chrome/browser/flag_descriptions.h
|
||||||
|
--- chromium-98.0.4758.80/chrome/browser/flag_descriptions.h.accel-mjpeg 2022-02-02 19:23:15.556137523 +0000
|
||||||
|
+++ chromium-98.0.4758.80/chrome/browser/flag_descriptions.h 2022-02-02 19:31:59.585595773 +0000
|
||||||
|
@@ -2297,11 +2297,15 @@ extern const char kUseAngleGL[];
|
||||||
|
|
||||||
|
// Chrome OS ------------------------------------------------------------------
|
||||||
|
|
||||||
|
-#if BUILDFLAG(IS_CHROMEOS_ASH)
|
||||||
|
+#if BUILDFLAG(IS_CHROMEOS_ASH) || (defined(OS_LINUX) && !defined(OS_ANDROID))
|
||||||
|
|
||||||
|
extern const char kAcceleratedMjpegDecodeName[];
|
||||||
|
extern const char kAcceleratedMjpegDecodeDescription[];
|
||||||
|
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
+#if BUILDFLAG(IS_CHROMEOS_ASH)
|
||||||
|
+
|
||||||
|
extern const char kAllowDisableMouseAccelerationName[];
|
||||||
|
extern const char kAllowDisableMouseAccelerationDescription[];
|
||||||
|
|
@ -0,0 +1,20 @@
|
|||||||
|
diff -up chromium-98.0.4758.80/components/ui_devtools/views/ui_element_with_metadata.cc.erase-fix chromium-98.0.4758.80/components/ui_devtools/views/ui_element_with_metadata.cc
|
||||||
|
--- chromium-98.0.4758.80/components/ui_devtools/views/ui_element_with_metadata.cc.erase-fix 2022-02-03 19:16:57.784979831 +0000
|
||||||
|
+++ chromium-98.0.4758.80/components/ui_devtools/views/ui_element_with_metadata.cc 2022-02-03 19:17:12.983633352 +0000
|
||||||
|
@@ -19,14 +19,14 @@ namespace {
|
||||||
|
// Remove any custom editor "prefixes" from the property name. The prefixes must
|
||||||
|
// not be valid identifier characters.
|
||||||
|
void StripPrefix(std::string& property_name) {
|
||||||
|
- auto cur = property_name.cbegin();
|
||||||
|
+ auto cur = property_name.begin();
|
||||||
|
for (; cur < property_name.cend(); ++cur) {
|
||||||
|
if ((*cur >= 'A' && *cur <= 'Z') || (*cur >= 'a' && *cur <= 'z') ||
|
||||||
|
*cur == '_') {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
- property_name.erase(property_name.cbegin(), cur);
|
||||||
|
+ property_name.erase(property_name.begin(), cur);
|
||||||
|
}
|
||||||
|
|
||||||
|
} // namespace
|
@ -0,0 +1,167 @@
|
|||||||
|
diff -up chromium-98.0.4758.80/chrome/service/cloud_print/print_system_cups.cc.el7cups chromium-98.0.4758.80/chrome/service/cloud_print/print_system_cups.cc
|
||||||
|
--- chromium-98.0.4758.80/chrome/service/cloud_print/print_system_cups.cc.el7cups 2022-02-05 16:24:50.301779674 +0000
|
||||||
|
+++ chromium-98.0.4758.80/chrome/service/cloud_print/print_system_cups.cc 2022-02-05 16:24:50.302779651 +0000
|
||||||
|
@@ -729,8 +729,9 @@ int PrintSystemCUPS::PrintFile(const GUR
|
||||||
|
// Use default (local) print server.
|
||||||
|
if (url.is_empty())
|
||||||
|
return cupsPrintFile(name, filename, title, num_options, options);
|
||||||
|
-
|
||||||
|
- printing::HttpConnectionCUPS http(url, encryption, /*blocking=*/false);
|
||||||
|
+
|
||||||
|
+ printing::HttpConnectionCUPS http(url, encryption);
|
||||||
|
+ http.SetBlocking(false);
|
||||||
|
return cupsPrintFile2(http.http(), name, filename, title, num_options,
|
||||||
|
options);
|
||||||
|
}
|
||||||
|
@@ -746,7 +747,8 @@ int PrintSystemCUPS::GetJobs(cups_job_t*
|
||||||
|
if (url.is_empty())
|
||||||
|
return cupsGetJobs(jobs, name, myjobs, whichjobs);
|
||||||
|
|
||||||
|
- printing::HttpConnectionCUPS http(url, encryption, /*blocking=*/false);
|
||||||
|
+ printing::HttpConnectionCUPS http(url, encryption);
|
||||||
|
+ http.SetBlocking(false);
|
||||||
|
return cupsGetJobs2(http.http(), jobs, name, myjobs, whichjobs);
|
||||||
|
}
|
||||||
|
|
||||||
|
diff -up chromium-98.0.4758.80/printing/backend/cups_helper.cc.el7cups chromium-98.0.4758.80/printing/backend/cups_helper.cc
|
||||||
|
--- chromium-98.0.4758.80/printing/backend/cups_helper.cc.el7cups 2022-02-05 16:25:16.885173676 +0000
|
||||||
|
+++ chromium-98.0.4758.80/printing/backend/cups_helper.cc 2022-02-05 16:25:16.886173653 +0000
|
||||||
|
@@ -34,18 +34,6 @@ namespace printing {
|
||||||
|
// This section contains helper code for PPD parsing for semantic capabilities.
|
||||||
|
namespace {
|
||||||
|
|
||||||
|
-// Function availability can be tested by checking whether its address is not
|
||||||
|
-// nullptr. Weak symbols remove the need for platform specific build flags and
|
||||||
|
-// allow for appropriate CUPS usage on platforms with non-uniform version
|
||||||
|
-// support, namely Linux.
|
||||||
|
-#define WEAK_CUPS_FN(x) extern "C" __attribute__((weak)) decltype(x) x
|
||||||
|
-
|
||||||
|
-WEAK_CUPS_FN(httpConnect2);
|
||||||
|
-
|
||||||
|
-// Timeout for establishing a CUPS connection. It is expected that cupsd is
|
||||||
|
-// able to start and respond on all systems within this duration.
|
||||||
|
-constexpr base::TimeDelta kCupsTimeout = base::Seconds(5);
|
||||||
|
-
|
||||||
|
// CUPS default max copies value (parsed from kCupsMaxCopies PPD attribute).
|
||||||
|
constexpr int32_t kDefaultMaxCopies = 9999;
|
||||||
|
constexpr char kCupsMaxCopies[] = "cupsMaxCopies";
|
||||||
|
@@ -527,8 +515,7 @@ const int kDefaultIPPServerPort = 631;
|
||||||
|
// Helper wrapper around http_t structure, with connection and cleanup
|
||||||
|
// functionality.
|
||||||
|
HttpConnectionCUPS::HttpConnectionCUPS(const GURL& print_server_url,
|
||||||
|
- http_encryption_t encryption,
|
||||||
|
- bool blocking)
|
||||||
|
+ http_encryption_t encryption)
|
||||||
|
: http_(nullptr) {
|
||||||
|
// If we have an empty url, use default print server.
|
||||||
|
if (print_server_url.is_empty())
|
||||||
|
@@ -538,17 +525,10 @@ HttpConnectionCUPS::HttpConnectionCUPS(c
|
||||||
|
if (port == url::PORT_UNSPECIFIED)
|
||||||
|
port = kDefaultIPPServerPort;
|
||||||
|
|
||||||
|
- if (httpConnect2) {
|
||||||
|
- http_ = httpConnect2(print_server_url.host().c_str(), port,
|
||||||
|
- /*addrlist=*/nullptr, AF_UNSPEC, encryption,
|
||||||
|
- blocking ? 1 : 0, kCupsTimeout.InMilliseconds(),
|
||||||
|
- /*cancel=*/nullptr);
|
||||||
|
- } else {
|
||||||
|
- // Continue to use deprecated CUPS calls because because older Linux
|
||||||
|
- // distribution such as RHEL/CentOS 7 are shipped with CUPS 1.6.
|
||||||
|
- http_ =
|
||||||
|
- httpConnectEncrypt(print_server_url.host().c_str(), port, encryption);
|
||||||
|
- }
|
||||||
|
+ // Continue to use deprecated CUPS calls because because older Linux
|
||||||
|
+ // distribution such as RHEL/CentOS 7 are shipped with CUPS 1.6.
|
||||||
|
+ http_ =
|
||||||
|
+ httpConnectEncrypt(print_server_url.host().c_str(), port, encryption);
|
||||||
|
|
||||||
|
if (!http_) {
|
||||||
|
LOG(ERROR) << "CP_CUPS: Failed connecting to print server: "
|
||||||
|
@@ -556,8 +536,6 @@ HttpConnectionCUPS::HttpConnectionCUPS(c
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
- if (!httpConnect2)
|
||||||
|
- httpBlocking(http_, blocking ? 1 : 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
HttpConnectionCUPS::~HttpConnectionCUPS() {
|
||||||
|
@@ -565,6 +543,10 @@ HttpConnectionCUPS::~HttpConnectionCUPS(
|
||||||
|
httpClose(http_);
|
||||||
|
}
|
||||||
|
|
||||||
|
+void HttpConnectionCUPS::SetBlocking(bool blocking) {
|
||||||
|
+ httpBlocking(http_, blocking ? 1 : 0);
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
http_t* HttpConnectionCUPS::http() {
|
||||||
|
return http_;
|
||||||
|
}
|
||||||
|
diff -up chromium-98.0.4758.80/printing/backend/cups_helper.h.el7cups chromium-98.0.4758.80/printing/backend/cups_helper.h
|
||||||
|
--- chromium-98.0.4758.80/printing/backend/cups_helper.h.el7cups 2022-02-05 16:25:16.886173653 +0000
|
||||||
|
+++ chromium-98.0.4758.80/printing/backend/cups_helper.h 2022-02-05 16:25:16.886173653 +0000
|
||||||
|
@@ -34,10 +34,11 @@ constexpr cups_ptype_t kDestinationsFilt
|
||||||
|
class COMPONENT_EXPORT(PRINT_BACKEND) HttpConnectionCUPS {
|
||||||
|
public:
|
||||||
|
HttpConnectionCUPS(const GURL& print_server_url,
|
||||||
|
- http_encryption_t encryption,
|
||||||
|
- bool blocking);
|
||||||
|
+ http_encryption_t encryption);
|
||||||
|
~HttpConnectionCUPS();
|
||||||
|
|
||||||
|
+ void SetBlocking(bool blocking);
|
||||||
|
+
|
||||||
|
http_t* http();
|
||||||
|
|
||||||
|
private:
|
||||||
|
diff -up chromium-98.0.4758.80/printing/backend/print_backend_cups.cc.el7cups chromium-98.0.4758.80/printing/backend/print_backend_cups.cc
|
||||||
|
--- chromium-98.0.4758.80/printing/backend/print_backend_cups.cc.el7cups 2022-02-05 16:25:16.887173630 +0000
|
||||||
|
+++ chromium-98.0.4758.80/printing/backend/print_backend_cups.cc 2022-02-07 00:23:16.315248327 +0000
|
||||||
|
@@ -146,7 +146,7 @@ mojom::ResultCode PrintBackendCUPS::Enum
|
||||||
|
// not showing as available. Using cupsEnumDests() allows us to do our own
|
||||||
|
// filtering should any duplicates occur.
|
||||||
|
CupsDestsData dests_data = {0, nullptr};
|
||||||
|
- ipp_status_t last_error = IPP_STATUS_OK;
|
||||||
|
+ ipp_status_t last_error = IPP_OK;
|
||||||
|
if (print_server_url_.is_empty()) {
|
||||||
|
VLOG(1) << "CUPS: using cupsEnumDests to enumerate printers";
|
||||||
|
if (!cupsEnumDests(CUPS_DEST_FLAGS_NONE, kCupsTimeoutMs,
|
||||||
|
@@ -173,7 +173,7 @@ mojom::ResultCode PrintBackendCUPS::Enum
|
||||||
|
// no printer drivers installed. Rely upon CUPS error code to distinguish
|
||||||
|
// between these.
|
||||||
|
DCHECK(!dests_data.dests);
|
||||||
|
- if (last_error != IPP_STATUS_ERROR_NOT_FOUND) {
|
||||||
|
+ if (last_error != IPP_NOT_FOUND) {
|
||||||
|
VLOG(1) << "CUPS: Error getting printers from CUPS server"
|
||||||
|
<< ", server: " << print_server_url_
|
||||||
|
<< ", error: " << static_cast<int>(last_error) << " - "
|
||||||
|
@@ -336,7 +336,8 @@ int PrintBackendCUPS::GetDests(cups_dest
|
||||||
|
if (print_server_url_.is_empty())
|
||||||
|
return cupsGetDests2(CUPS_HTTP_DEFAULT, dests);
|
||||||
|
|
||||||
|
- HttpConnectionCUPS http(print_server_url_, cups_encryption_, blocking_);
|
||||||
|
+ HttpConnectionCUPS http(print_server_url_, cups_encryption_);
|
||||||
|
+ http.SetBlocking(blocking_);
|
||||||
|
|
||||||
|
// This call must be made in the same scope as `http` because its destructor
|
||||||
|
// closes the connection.
|
||||||
|
@@ -362,7 +363,8 @@ base::FilePath PrintBackendCUPS::GetPPD(
|
||||||
|
// connection will timeout after 10 seconds of no data period. And it will
|
||||||
|
// return the same way as if data was completely and successfully
|
||||||
|
// downloaded.
|
||||||
|
- HttpConnectionCUPS http(print_server_url_, cups_encryption_, blocking_);
|
||||||
|
+ HttpConnectionCUPS http(print_server_url_, cups_encryption_);
|
||||||
|
+ http.SetBlocking(blocking_);
|
||||||
|
ppd_file_path = cupsGetPPD2(http.http(), name);
|
||||||
|
// Check if the get full PPD, since non-blocking call may simply return
|
||||||
|
// normally after timeout expired.
|
||||||
|
@@ -398,7 +400,8 @@ PrintBackendCUPS::ScopedDestination Prin
|
||||||
|
// Use default (local) print server.
|
||||||
|
dest = cupsGetNamedDest(CUPS_HTTP_DEFAULT, printer_name.c_str(), nullptr);
|
||||||
|
} else {
|
||||||
|
- HttpConnectionCUPS http(print_server_url_, cups_encryption_, blocking_);
|
||||||
|
+ HttpConnectionCUPS http(print_server_url_, cups_encryption_);
|
||||||
|
+ http.SetBlocking(blocking_);
|
||||||
|
dest = cupsGetNamedDest(http.http(), printer_name.c_str(), nullptr);
|
||||||
|
}
|
||||||
|
return ScopedDestination(dest);
|
@ -0,0 +1,127 @@
|
|||||||
|
diff -up chromium-98.0.4758.80/mojo/core/channel_linux.cc.epel7-header-workarounds chromium-98.0.4758.80/mojo/core/channel_linux.cc
|
||||||
|
--- chromium-98.0.4758.80/mojo/core/channel_linux.cc.epel7-header-workarounds 2022-02-03 18:37:49.535504412 +0000
|
||||||
|
+++ chromium-98.0.4758.80/mojo/core/channel_linux.cc 2022-02-03 18:55:08.833815527 +0000
|
||||||
|
@@ -44,6 +44,25 @@
|
||||||
|
#include "base/android/build_info.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
+#ifndef F_LINUX_SPECIFIC_BASE
|
||||||
|
+#define F_LINUX_SPECIFIC_BASE 1024
|
||||||
|
+#endif
|
||||||
|
+#ifndef F_SEAL_SEAL
|
||||||
|
+#define F_SEAL_SEAL 0x0001
|
||||||
|
+#endif
|
||||||
|
+#ifndef F_SEAL_SHRINK
|
||||||
|
+#define F_SEAL_SHRINK 0x0002
|
||||||
|
+#endif
|
||||||
|
+#ifndef F_SEAL_GROW
|
||||||
|
+#define F_SEAL_GROW 0x0004
|
||||||
|
+#endif
|
||||||
|
+#ifndef F_ADD_SEALS
|
||||||
|
+#define F_ADD_SEALS (F_LINUX_SPECIFIC_BASE + 9)
|
||||||
|
+#endif
|
||||||
|
+#ifndef F_GET_SEALS
|
||||||
|
+#define F_GET_SEALS (F_LINUX_SPECIFIC_BASE + 10)
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
#ifndef EFD_ZERO_ON_WAKE
|
||||||
|
#define EFD_ZERO_ON_WAKE O_NOFOLLOW
|
||||||
|
#endif
|
||||||
|
diff -up chromium-98.0.4758.80/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc.epel7-header-workarounds chromium-98.0.4758.80/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc
|
||||||
|
--- chromium-98.0.4758.80/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc.epel7-header-workarounds 2022-02-01 00:41:54.000000000 +0000
|
||||||
|
+++ chromium-98.0.4758.80/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc 2022-02-03 18:37:49.536504389 +0000
|
||||||
|
@@ -53,6 +53,25 @@
|
||||||
|
|
||||||
|
#endif // defined(OS_ANDROID)
|
||||||
|
|
||||||
|
+#ifndef F_LINUX_SPECIFIC_BASE
|
||||||
|
+#define F_LINUX_SPECIFIC_BASE 1024
|
||||||
|
+#endif
|
||||||
|
+#ifndef F_SEAL_SEAL
|
||||||
|
+#define F_SEAL_SEAL 0x0001
|
||||||
|
+#endif
|
||||||
|
+#ifndef F_SEAL_SHRINK
|
||||||
|
+#define F_SEAL_SHRINK 0x0002
|
||||||
|
+#endif
|
||||||
|
+#ifndef F_SEAL_GROW
|
||||||
|
+#define F_SEAL_GROW 0x0004
|
||||||
|
+#endif
|
||||||
|
+#ifndef F_ADD_SEALS
|
||||||
|
+#define F_ADD_SEALS (F_LINUX_SPECIFIC_BASE + 9)
|
||||||
|
+#endif
|
||||||
|
+#ifndef F_GET_SEALS
|
||||||
|
+#define F_GET_SEALS (F_LINUX_SPECIFIC_BASE + 10)
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
#if defined(__arm__) && !defined(MAP_STACK)
|
||||||
|
#define MAP_STACK 0x20000 // Daisy build environment has old headers.
|
||||||
|
#endif
|
||||||
|
diff -up chromium-98.0.4758.80/sandbox/policy/linux/bpf_cros_amd_gpu_policy_linux.cc.epel7-header-workarounds chromium-98.0.4758.80/sandbox/policy/linux/bpf_cros_amd_gpu_policy_linux.cc
|
||||||
|
--- chromium-98.0.4758.80/sandbox/policy/linux/bpf_cros_amd_gpu_policy_linux.cc.epel7-header-workarounds 2022-02-01 00:41:54.000000000 +0000
|
||||||
|
+++ chromium-98.0.4758.80/sandbox/policy/linux/bpf_cros_amd_gpu_policy_linux.cc 2022-02-03 18:37:49.535504412 +0000
|
||||||
|
@@ -6,7 +6,24 @@
|
||||||
|
|
||||||
|
#include <errno.h>
|
||||||
|
#include <fcntl.h>
|
||||||
|
-#include <linux/kcmp.h>
|
||||||
|
+#ifndef KCMP_FILE
|
||||||
|
+#define KCMP_FILE 0
|
||||||
|
+#endif
|
||||||
|
+#ifndef F_LINUX_SPECIFIC_BASE
|
||||||
|
+#define F_LINUX_SPECIFIC_BASE 1024
|
||||||
|
+#endif
|
||||||
|
+#ifndef F_SEAL_SEAL
|
||||||
|
+#define F_SEAL_SEAL 0x0001
|
||||||
|
+#endif
|
||||||
|
+#ifndef F_SEAL_SHRINK
|
||||||
|
+#define F_SEAL_SHRINK 0x0002
|
||||||
|
+#endif
|
||||||
|
+#ifndef F_SEAL_GROW
|
||||||
|
+#define F_SEAL_GROW 0x0004
|
||||||
|
+#endif
|
||||||
|
+#ifndef F_ADD_SEALS
|
||||||
|
+#define F_ADD_SEALS (F_LINUX_SPECIFIC_BASE + 9)
|
||||||
|
+#endif
|
||||||
|
#include <sys/socket.h>
|
||||||
|
|
||||||
|
// Some arch's (arm64 for instance) unistd.h don't pull in symbols used here
|
||||||
|
diff -up chromium-98.0.4758.80/sandbox/policy/linux/bpf_gpu_policy_linux.cc.epel7-header-workarounds chromium-98.0.4758.80/sandbox/policy/linux/bpf_gpu_policy_linux.cc
|
||||||
|
--- chromium-98.0.4758.80/sandbox/policy/linux/bpf_gpu_policy_linux.cc.epel7-header-workarounds 2022-02-03 18:37:49.535504412 +0000
|
||||||
|
+++ chromium-98.0.4758.80/sandbox/policy/linux/bpf_gpu_policy_linux.cc 2022-02-03 18:56:24.382093563 +0000
|
||||||
|
@@ -22,6 +22,22 @@
|
||||||
|
#include "sandbox/policy/linux/sandbox_linux.h"
|
||||||
|
#include "sandbox/policy/linux/sandbox_seccomp_bpf_linux.h"
|
||||||
|
|
||||||
|
+#ifndef F_LINUX_SPECIFIC_BASE
|
||||||
|
+#define F_LINUX_SPECIFIC_BASE 1024
|
||||||
|
+#endif
|
||||||
|
+#ifndef F_SEAL_SEAL
|
||||||
|
+#define F_SEAL_SEAL 0x0001
|
||||||
|
+#endif
|
||||||
|
+#ifndef F_SEAL_SHRINK
|
||||||
|
+#define F_SEAL_SHRINK 0x0002
|
||||||
|
+#endif
|
||||||
|
+#ifndef F_SEAL_GROW
|
||||||
|
+#define F_SEAL_GROW 0x0004
|
||||||
|
+#endif
|
||||||
|
+#ifndef F_ADD_SEALS
|
||||||
|
+#define F_ADD_SEALS (F_LINUX_SPECIFIC_BASE + 9)
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
using sandbox::bpf_dsl::AllOf;
|
||||||
|
using sandbox::bpf_dsl::Allow;
|
||||||
|
using sandbox::bpf_dsl::Arg;
|
||||||
|
diff -up chromium-98.0.4758.80/ui/events/ozone/evdev/event_converter_evdev_impl.cc.epel7-header-workarounds chromium-98.0.4758.80/ui/events/ozone/evdev/event_converter_evdev_impl.cc
|
||||||
|
--- chromium-98.0.4758.80/ui/events/ozone/evdev/event_converter_evdev_impl.cc.epel7-header-workarounds 2022-02-03 18:37:49.536504389 +0000
|
||||||
|
+++ chromium-98.0.4758.80/ui/events/ozone/evdev/event_converter_evdev_impl.cc 2022-02-03 18:57:16.842897816 +0000
|
||||||
|
@@ -23,6 +23,10 @@
|
||||||
|
#include "ui/events/ozone/evdev/numberpad_metrics.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
+#ifndef SW_PEN_INSERTED
|
||||||
|
+#define SW_PEN_INSERTED 0x0f /* set = pen inserted */
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
namespace ui {
|
||||||
|
|
||||||
|
namespace {
|
@ -0,0 +1,12 @@
|
|||||||
|
diff -up chromium-98.0.4758.80/content/common/user_agent.cc.fedora-user-agent chromium-98.0.4758.80/content/common/user_agent.cc
|
||||||
|
--- chromium-98.0.4758.80/content/common/user_agent.cc.fedora-user-agent 2022-02-02 19:16:37.841755606 +0000
|
||||||
|
+++ chromium-98.0.4758.80/content/common/user_agent.cc 2022-02-02 19:19:52.395650550 +0000
|
||||||
|
@@ -34,7 +34,7 @@ std::string GetUserAgentPlatform() {
|
||||||
|
#elif defined(OS_MAC)
|
||||||
|
return "Macintosh; ";
|
||||||
|
#elif defined(USE_OZONE)
|
||||||
|
- return "X11; "; // strange, but that's what Firefox uses
|
||||||
|
+ return "X11; Fedora; "; // strange, but that's what Firefox uses
|
||||||
|
#elif defined(OS_ANDROID)
|
||||||
|
return "Linux; ";
|
||||||
|
#elif defined(OS_FUCHSIA)
|
@ -0,0 +1,56 @@
|
|||||||
|
diff -up chromium-98.0.4758.80/remoting/base/util.cc.remoting-cstring chromium-98.0.4758.80/remoting/base/util.cc
|
||||||
|
--- chromium-98.0.4758.80/remoting/base/util.cc.remoting-cstring 2022-02-01 00:41:54.000000000 +0000
|
||||||
|
+++ chromium-98.0.4758.80/remoting/base/util.cc 2022-02-02 15:55:01.352340901 +0000
|
||||||
|
@@ -4,6 +4,7 @@
|
||||||
|
|
||||||
|
#include "remoting/base/util.h"
|
||||||
|
|
||||||
|
+#include <cstring>
|
||||||
|
#include <math.h>
|
||||||
|
|
||||||
|
#include "base/logging.h"
|
||||||
|
diff -up chromium-98.0.4758.80/remoting/client/display/gl_helpers.cc.remoting-cstring chromium-98.0.4758.80/remoting/client/display/gl_helpers.cc
|
||||||
|
--- chromium-98.0.4758.80/remoting/client/display/gl_helpers.cc.remoting-cstring 2022-02-01 00:41:54.000000000 +0000
|
||||||
|
+++ chromium-98.0.4758.80/remoting/client/display/gl_helpers.cc 2022-02-02 15:55:01.353340854 +0000
|
||||||
|
@@ -5,6 +5,7 @@
|
||||||
|
#include "remoting/client/display/gl_helpers.h"
|
||||||
|
|
||||||
|
#include "base/logging.h"
|
||||||
|
+#include <cstring>
|
||||||
|
|
||||||
|
namespace remoting {
|
||||||
|
|
||||||
|
diff -up chromium-98.0.4758.80/remoting/host/fake_mouse_cursor_monitor.cc.remoting-cstring chromium-98.0.4758.80/remoting/host/fake_mouse_cursor_monitor.cc
|
||||||
|
--- chromium-98.0.4758.80/remoting/host/fake_mouse_cursor_monitor.cc.remoting-cstring 2022-02-01 00:41:54.000000000 +0000
|
||||||
|
+++ chromium-98.0.4758.80/remoting/host/fake_mouse_cursor_monitor.cc 2022-02-02 15:55:01.353340854 +0000
|
||||||
|
@@ -4,6 +4,7 @@
|
||||||
|
|
||||||
|
#include "remoting/host/fake_mouse_cursor_monitor.h"
|
||||||
|
|
||||||
|
+#include <cstring>
|
||||||
|
#include <memory>
|
||||||
|
|
||||||
|
#include "base/check.h"
|
||||||
|
diff -up chromium-98.0.4758.80/remoting/host/host_config_unittest.cc.remoting-cstring chromium-98.0.4758.80/remoting/host/host_config_unittest.cc
|
||||||
|
--- chromium-98.0.4758.80/remoting/host/host_config_unittest.cc.remoting-cstring 2022-02-02 15:55:01.353340854 +0000
|
||||||
|
+++ chromium-98.0.4758.80/remoting/host/host_config_unittest.cc 2022-02-02 15:57:20.295794172 +0000
|
||||||
|
@@ -10,6 +10,7 @@
|
||||||
|
#include "base/values.h"
|
||||||
|
#include "testing/gtest/include/gtest/gtest.h"
|
||||||
|
#include "third_party/abseil-cpp/absl/types/optional.h"
|
||||||
|
+#include <cstring>
|
||||||
|
|
||||||
|
namespace remoting {
|
||||||
|
|
||||||
|
diff -up chromium-98.0.4758.80/remoting/host/host_secret.cc.remoting-cstring chromium-98.0.4758.80/remoting/host/host_secret.cc
|
||||||
|
--- chromium-98.0.4758.80/remoting/host/host_secret.cc.remoting-cstring 2022-02-01 00:41:54.000000000 +0000
|
||||||
|
+++ chromium-98.0.4758.80/remoting/host/host_secret.cc 2022-02-02 15:55:01.353340854 +0000
|
||||||
|
@@ -6,7 +6,7 @@
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
|
-#include <string>
|
||||||
|
+#include <cstring>
|
||||||
|
|
||||||
|
#include "base/rand_util.h"
|
||||||
|
#include "base/strings/string_number_conversions.h"
|
@ -0,0 +1,84 @@
|
|||||||
|
diff -up chromium-98.0.4758.80/remoting/host/mojom/remoting_mojom_traits.h.extra-qualification chromium-98.0.4758.80/remoting/host/mojom/remoting_mojom_traits.h
|
||||||
|
--- chromium-98.0.4758.80/remoting/host/mojom/remoting_mojom_traits.h.extra-qualification 2022-02-04 00:55:00.643766557 +0000
|
||||||
|
+++ chromium-98.0.4758.80/remoting/host/mojom/remoting_mojom_traits.h 2022-02-04 00:56:18.272148934 +0000
|
||||||
|
@@ -21,7 +21,7 @@
|
||||||
|
namespace mojo {
|
||||||
|
|
||||||
|
template <>
|
||||||
|
-class mojo::StructTraits<remoting::mojom::BoolDataView, bool> {
|
||||||
|
+class StructTraits<remoting::mojom::BoolDataView, bool> {
|
||||||
|
public:
|
||||||
|
static bool value(bool value) { return value; }
|
||||||
|
|
||||||
|
@@ -32,7 +32,7 @@ class mojo::StructTraits<remoting::mojom
|
||||||
|
};
|
||||||
|
|
||||||
|
template <>
|
||||||
|
-class mojo::StructTraits<remoting::mojom::FloatDataView, float> {
|
||||||
|
+class StructTraits<remoting::mojom::FloatDataView, float> {
|
||||||
|
public:
|
||||||
|
static float value(float value) { return value; }
|
||||||
|
|
||||||
|
@@ -43,7 +43,7 @@ class mojo::StructTraits<remoting::mojom
|
||||||
|
};
|
||||||
|
|
||||||
|
template <>
|
||||||
|
-class mojo::StructTraits<remoting::mojom::Int32DataView, int32_t> {
|
||||||
|
+class StructTraits<remoting::mojom::Int32DataView, int32_t> {
|
||||||
|
public:
|
||||||
|
static int32_t value(int32_t value) { return value; }
|
||||||
|
|
||||||
|
@@ -109,7 +109,7 @@ struct EnumTraits<remoting::mojom::Mouse
|
||||||
|
};
|
||||||
|
|
||||||
|
template <>
|
||||||
|
-class mojo::StructTraits<remoting::mojom::ClipboardEventDataView,
|
||||||
|
+class StructTraits<remoting::mojom::ClipboardEventDataView,
|
||||||
|
::remoting::protocol::ClipboardEvent> {
|
||||||
|
public:
|
||||||
|
static const std::string& mime_type(
|
||||||
|
@@ -127,7 +127,7 @@ class mojo::StructTraits<remoting::mojom
|
||||||
|
};
|
||||||
|
|
||||||
|
template <>
|
||||||
|
-class mojo::StructTraits<remoting::mojom::KeyEventDataView,
|
||||||
|
+class StructTraits<remoting::mojom::KeyEventDataView,
|
||||||
|
::remoting::protocol::KeyEvent> {
|
||||||
|
public:
|
||||||
|
static bool pressed(const ::remoting::protocol::KeyEvent& event) {
|
||||||
|
@@ -163,7 +163,7 @@ class mojo::StructTraits<remoting::mojom
|
||||||
|
};
|
||||||
|
|
||||||
|
template <>
|
||||||
|
-class mojo::StructTraits<remoting::mojom::MouseEventDataView,
|
||||||
|
+class StructTraits<remoting::mojom::MouseEventDataView,
|
||||||
|
::remoting::protocol::MouseEvent> {
|
||||||
|
public:
|
||||||
|
static absl::optional<int32_t> x(
|
||||||
|
@@ -252,7 +252,7 @@ class mojo::StructTraits<remoting::mojom
|
||||||
|
};
|
||||||
|
|
||||||
|
template <>
|
||||||
|
-class mojo::StructTraits<remoting::mojom::TextEventDataView,
|
||||||
|
+class StructTraits<remoting::mojom::TextEventDataView,
|
||||||
|
::remoting::protocol::TextEvent> {
|
||||||
|
public:
|
||||||
|
static const std::string& text(const ::remoting::protocol::TextEvent& event) {
|
||||||
|
@@ -264,7 +264,7 @@ class mojo::StructTraits<remoting::mojom
|
||||||
|
};
|
||||||
|
|
||||||
|
template <>
|
||||||
|
-class mojo::StructTraits<remoting::mojom::TouchEventPointDataView,
|
||||||
|
+class StructTraits<remoting::mojom::TouchEventPointDataView,
|
||||||
|
::remoting::protocol::TouchEventPoint> {
|
||||||
|
public:
|
||||||
|
static uint32_t id(const ::remoting::protocol::TouchEventPoint& event) {
|
||||||
|
@@ -341,7 +341,7 @@ struct EnumTraits<remoting::mojom::Touch
|
||||||
|
};
|
||||||
|
|
||||||
|
template <>
|
||||||
|
-class mojo::StructTraits<remoting::mojom::TouchEventDataView,
|
||||||
|
+class StructTraits<remoting::mojom::TouchEventDataView,
|
||||||
|
::remoting::protocol::TouchEvent> {
|
||||||
|
public:
|
||||||
|
static ::remoting::protocol::TouchEvent::TouchEventType event_type(
|
Loading…
Reference in new issue