bc1ba1fe9d
* chore: bump chromium in DEPS to 120.0.6086.0 * chore: update patches * chore: rename FrameSubscriber::OnNewCropVersion() Xref: https://chromium-review.googlesource.com/c/chromium/src/+/4905819 just a simple renaming * chore: rename ToJsTime() to .InMillisecondsFSinceUnixEpoch() Xref: https://chromium-review.googlesource.com/c/chromium/src/+/4956111 function renamed upstream * chore: rename ToDoubleT() to .InSecondsFSinceUnixEpoch() Xref: https://chromium-review.googlesource.com/c/chromium/src/+/4956111 function renamed upstream * chore: rename FromDoubleT() to .FromSecondsSinceUnixEpoch() Xref: https://chromium-review.googlesource.com/c/chromium/src/+/4956111 function renamed upstream * chore: bump chromium in DEPS to 120.0.6088.2 * chore: update patches * chore: regen filenames.libcxx.gni * chore: migrate from (removed upstream) inputFormType to formControlType * chore: bump chromium in DEPS to 120.0.6089.0 * chore: update allow_disabling_blink_scheduler_throttling_per_renderview.patch Xref: https://chromium-review.googlesource.com/c/chromium/src/+/4828507 manually sync to upstream changes + reduce diff size * chore: update patches * chore: bump chromium in DEPS to 120.0.6090.0 * chore: update fix_disabling_background_throttling_in_compositor.patch no manual changes; patch applied with fuzz 2 (4 lines) Xref: https://chromium-review.googlesource.com/c/chromium/src/+/4944206 * chore: update fix_handle_no_top_level_aura_window_in_webcontentsimpl.patch Xref: https://chromium-review.googlesource.com/c/chromium/src/+/4946653 do not patch WebContentsImpl::SetWindowShowState() any longer because it has been removed * chore: update patches * chore: bump chromium in DEPS to 120.0.6091.0 * chore: update patches * chore: bump chromium in DEPS to 120.0.6093.0 * chore: bump chromium in DEPS to 120.0.6095.0 * chore: bump chromium in DEPS to 120.0.6096.0 * chore: bump chromium in DEPS to 120.0.6097.0 * chore: update patches * chore: update patch after rebase * 4961495: [document pip] Focus the window when opened manually https://chromium-review.googlesource.com/c/chromium/src/+/4961495 * [Extensions UserScripts] Store extensions with user scripts in tracker | https://chromium-review.googlesource.com/c/chromium/src/+/4950530 * chore: bump chromium in DEPS to 120.0.6099.0 * chore: update patches * chore: update filenames.libcxx.gni * chore: remove trailing space --------- Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com> Co-authored-by: PatchUp <73610968+patchup[bot]@users.noreply.github.com> Co-authored-by: Charles Kerr <charles@charleskerr.com> Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com> Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org>
134 lines
4.5 KiB
C++
134 lines
4.5 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 ELECTRON_SHELL_COMMON_GIN_CONVERTERS_BLINK_CONVERTER_H_
|
|
#define ELECTRON_SHELL_COMMON_GIN_CONVERTERS_BLINK_CONVERTER_H_
|
|
|
|
#include "gin/converter.h"
|
|
#include "third_party/blink/public/common/context_menu_data/context_menu_data.h"
|
|
#include "third_party/blink/public/common/input/web_input_event.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/mojom/loader/referrer.mojom-forward.h"
|
|
|
|
namespace blink {
|
|
class WebMouseEvent;
|
|
class WebMouseWheelEvent;
|
|
class WebKeyboardEvent;
|
|
struct DeviceEmulationParams;
|
|
} // namespace blink
|
|
|
|
namespace gin {
|
|
|
|
blink::WebInputEvent::Type GetWebInputEventType(v8::Isolate* isolate,
|
|
v8::Local<v8::Value> val);
|
|
|
|
template <>
|
|
struct Converter<blink::WebInputEvent::Type> {
|
|
static bool FromV8(v8::Isolate* isolate,
|
|
v8::Local<v8::Value> val,
|
|
blink::WebInputEvent::Type* out);
|
|
static v8::Local<v8::Value> ToV8(v8::Isolate* isolate,
|
|
const blink::WebInputEvent::Type& in);
|
|
};
|
|
|
|
template <>
|
|
struct Converter<blink::WebInputEvent> {
|
|
static bool FromV8(v8::Isolate* isolate,
|
|
v8::Local<v8::Value> val,
|
|
blink::WebInputEvent* out);
|
|
static v8::Local<v8::Value> ToV8(v8::Isolate* isolate,
|
|
const blink::WebInputEvent& in);
|
|
};
|
|
|
|
template <>
|
|
struct Converter<blink::WebKeyboardEvent> {
|
|
static bool FromV8(v8::Isolate* isolate,
|
|
v8::Local<v8::Value> val,
|
|
blink::WebKeyboardEvent* out);
|
|
static v8::Local<v8::Value> ToV8(v8::Isolate* isolate,
|
|
const blink::WebKeyboardEvent& in);
|
|
};
|
|
|
|
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::DeviceEmulationParams> {
|
|
static bool FromV8(v8::Isolate* isolate,
|
|
v8::Local<v8::Value> val,
|
|
blink::DeviceEmulationParams* out);
|
|
};
|
|
|
|
template <>
|
|
struct Converter<blink::mojom::ContextMenuDataMediaType> {
|
|
static v8::Local<v8::Value> ToV8(
|
|
v8::Isolate* isolate,
|
|
const blink::mojom::ContextMenuDataMediaType& in);
|
|
};
|
|
|
|
template <>
|
|
struct Converter<absl::optional<blink::mojom::FormControlType>> {
|
|
static v8::Local<v8::Value> ToV8(
|
|
v8::Isolate* isolate,
|
|
const absl::optional<blink::mojom::FormControlType>& 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::mojom::Referrer> {
|
|
static v8::Local<v8::Value> ToV8(v8::Isolate* isolate,
|
|
const blink::mojom::Referrer& val);
|
|
static bool FromV8(v8::Isolate* isolate,
|
|
v8::Local<v8::Value> val,
|
|
blink::mojom::Referrer* 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 // ELECTRON_SHELL_COMMON_GIN_CONVERTERS_BLINK_CONVERTER_H_
|