9a198e8ef4
* chore: bump chromium in DEPS to 0476932294da8809a19189b9f54cee11d50cc512 * update chromium patches (#20838) * chore: bump chromium in DEPS to 838863f5ec9e8a12132a10bb47be8382ad9756a7 * IsRendererTransferNeededForNavigation went away https://chromium-review.googlesource.com/c/chromium/src/+/1867031 * [arraybuffer] Move the ArrayBuffer implementation from wtf to core https://chromium-review.googlesource.com/c/chromium/src/+/1875731 * URLLoaderRequest new mojo types * context menu enums moved around https://chromium-review.googlesource.com/c/chromium/src/+/1872004 https://chromium-review.googlesource.com/c/chromium/src/+/1876088 https://chromium-review.googlesource.com/c/chromium/src/+/1866520 * chore: bump chromium in DEPS to dc9525d251bf30828899e4cd7161f6dc6507023f * update chromium patches * [WIP] Convert network hints IPC to Mojo https://chromium-review.googlesource.com/c/chromium/src/+/1881967 * jumbo build is no longer supported https://chromium-review.googlesource.com/c/chromium/src/+/1881967 * fix disable-color-correct-rendering * [FIXME] fix printing patch compiles but prob doesn't work * explicitly include ax_enums https://chromium-review.googlesource.com/c/chromium/src/+/1759821 * fixup! [WIP] Convert network hints IPC to Mojo * fix base::span * fix AsarURLLoader to not double-std::move * fix debug build * fix msstl patch * lint * more fix msstl * mooooore fix msstl * fix compile * update backport_fix_msstl_compat_in_ui_events.patch * update msstl compat patch * don't try to build chrome's prefetch predictor * build: fix compilation on windows * Fixup patches for MAS build * Free up disk space for mac debug builds * fix: apply custom site instance only for main frame * Fixup from rebase * Try not generating symbols for mac debug builds * Remove double entry of patch * FIx compile errors * Trigger CI * Set symbol_level to 1 for mac debug builds
134 lines
4.1 KiB
C++
134 lines
4.1 KiB
C++
// Copyright (c) 2015 GitHub, Inc.
|
|
// Use of this source code is governed by the MIT license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#ifndef SHELL_COMMON_GIN_CONVERTERS_BLINK_CONVERTER_H_
|
|
#define SHELL_COMMON_GIN_CONVERTERS_BLINK_CONVERTER_H_
|
|
|
|
#include "gin/converter.h"
|
|
#include "third_party/blink/public/common/messaging/cloneable_message.h"
|
|
#include "third_party/blink/public/common/web_cache/web_cache_resource_type_stats.h"
|
|
#include "third_party/blink/public/platform/web_input_event.h"
|
|
#include "third_party/blink/public/web/web_context_menu_data.h"
|
|
|
|
namespace blink {
|
|
class WebMouseEvent;
|
|
class WebMouseWheelEvent;
|
|
class WebKeyboardEvent;
|
|
struct WebDeviceEmulationParams;
|
|
struct WebFloatPoint;
|
|
struct WebPoint;
|
|
struct WebSize;
|
|
} // namespace blink
|
|
|
|
namespace gin {
|
|
|
|
blink::WebInputEvent::Type GetWebInputEventType(v8::Isolate* isolate,
|
|
v8::Local<v8::Value> val);
|
|
|
|
template <>
|
|
struct Converter<blink::WebInputEvent> {
|
|
static bool FromV8(v8::Isolate* isolate,
|
|
v8::Local<v8::Value> val,
|
|
blink::WebInputEvent* out);
|
|
};
|
|
|
|
template <>
|
|
struct Converter<blink::WebKeyboardEvent> {
|
|
static bool FromV8(v8::Isolate* isolate,
|
|
v8::Local<v8::Value> val,
|
|
blink::WebKeyboardEvent* out);
|
|
};
|
|
|
|
template <>
|
|
struct Converter<blink::WebMouseEvent> {
|
|
static bool FromV8(v8::Isolate* isolate,
|
|
v8::Local<v8::Value> val,
|
|
blink::WebMouseEvent* out);
|
|
};
|
|
|
|
template <>
|
|
struct Converter<blink::WebMouseWheelEvent> {
|
|
static bool FromV8(v8::Isolate* isolate,
|
|
v8::Local<v8::Value> val,
|
|
blink::WebMouseWheelEvent* out);
|
|
};
|
|
|
|
template <>
|
|
struct Converter<blink::WebFloatPoint> {
|
|
static bool FromV8(v8::Isolate* isolate,
|
|
v8::Local<v8::Value> val,
|
|
blink::WebFloatPoint* out);
|
|
};
|
|
|
|
template <>
|
|
struct Converter<blink::WebPoint> {
|
|
static bool FromV8(v8::Isolate* isolate,
|
|
v8::Local<v8::Value> val,
|
|
blink::WebPoint* out);
|
|
};
|
|
|
|
template <>
|
|
struct Converter<blink::WebSize> {
|
|
static bool FromV8(v8::Isolate* isolate,
|
|
v8::Local<v8::Value> val,
|
|
blink::WebSize* out);
|
|
};
|
|
|
|
template <>
|
|
struct Converter<blink::WebDeviceEmulationParams> {
|
|
static bool FromV8(v8::Isolate* isolate,
|
|
v8::Local<v8::Value> val,
|
|
blink::WebDeviceEmulationParams* out);
|
|
};
|
|
|
|
template <>
|
|
struct Converter<blink::ContextMenuDataMediaType> {
|
|
static v8::Local<v8::Value> ToV8(v8::Isolate* isolate,
|
|
const blink::ContextMenuDataMediaType& in);
|
|
};
|
|
|
|
template <>
|
|
struct Converter<blink::ContextMenuDataInputFieldType> {
|
|
static v8::Local<v8::Value> ToV8(
|
|
v8::Isolate* isolate,
|
|
const blink::ContextMenuDataInputFieldType& in);
|
|
};
|
|
|
|
template <>
|
|
struct Converter<blink::WebCacheResourceTypeStat> {
|
|
static v8::Local<v8::Value> ToV8(v8::Isolate* isolate,
|
|
const blink::WebCacheResourceTypeStat& stat);
|
|
};
|
|
|
|
template <>
|
|
struct Converter<blink::WebCacheResourceTypeStats> {
|
|
static v8::Local<v8::Value> ToV8(
|
|
v8::Isolate* isolate,
|
|
const blink::WebCacheResourceTypeStats& stats);
|
|
};
|
|
|
|
template <>
|
|
struct Converter<network::mojom::ReferrerPolicy> {
|
|
static v8::Local<v8::Value> ToV8(v8::Isolate* isolate,
|
|
const network::mojom::ReferrerPolicy& in);
|
|
static bool FromV8(v8::Isolate* isolate,
|
|
v8::Local<v8::Value> val,
|
|
network::mojom::ReferrerPolicy* out);
|
|
};
|
|
|
|
template <>
|
|
struct Converter<blink::CloneableMessage> {
|
|
static v8::Local<v8::Value> ToV8(v8::Isolate* isolate,
|
|
const blink::CloneableMessage& in);
|
|
static bool FromV8(v8::Isolate* isolate,
|
|
v8::Local<v8::Value> val,
|
|
blink::CloneableMessage* out);
|
|
};
|
|
|
|
v8::Local<v8::Value> EditFlagsToV8(v8::Isolate* isolate, int editFlags);
|
|
v8::Local<v8::Value> MediaFlagsToV8(v8::Isolate* isolate, int mediaFlags);
|
|
|
|
} // namespace gin
|
|
|
|
#endif // SHELL_COMMON_GIN_CONVERTERS_BLINK_CONVERTER_H_
|