electron/shell/common/gin_converters
trop[bot] 3b3f2112d5
fix: don't use deprecate-soon class v8::String::Value (#43553)
* fix: remove use of deprecated v8::String::Value

Upstream marked v8::String::Value as `V8_DEPRECATE_SOON` last month,
so let's stop using it.

The replacement code mostly does the same as v8::String::Value();
but since our test only cares about the length and not the contents,
we get a small perf win of not needing to allocate a char array and
not needing to call Local::String::Write().

Upstream V8_DEPRECATE_SOON:
Xref: https://chromium-review.googlesource.com/c/v8/v8/+/5667299kkk

v8::String::Value() implementation:
20226b740b/src/api/api.cc (10883)

History on why we used it:
80c1a9739d
f49ed30f72

Co-authored-by: Charles Kerr <charles@charleskerr.com>

* Update shell/common/gin_converters/file_path_converter.h

Co-authored-by: Robo <hop2deep@gmail.com>

Co-authored-by: Charles Kerr <charles@charleskerr.com>

* fixup! Update shell/common/gin_converters/file_path_converter.h

do not return success for all non-Null non-Strings

Co-authored-by: Charles Kerr <charles@charleskerr.com>

---------

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
2024-09-04 12:54:19 -05:00
..
accelerator_converter.cc
accelerator_converter.h chore: add ELECTRON_ prefix to C++ include guards (#31925) 2021-11-22 16:34:31 +09:00
base_converter.h chore: bump chromium to 121.0.6147.0 (main) (#40523) 2023-11-28 13:40:12 -08:00
blink_converter.cc chore: use v8::Local<>, not v8::Handle<> (#43037) 2024-07-25 11:00:05 +02:00
blink_converter.h chore: replace absl::optional<T> with std::optional<T> (#40928) 2024-01-10 16:23:35 -06:00
callback_converter.h chore: bump chromium to 111.0.5544.3 (main) (#36820) 2023-02-03 12:43:42 +01:00
content_converter.cc feat: implement File System API support (#41419) 2024-04-10 22:06:47 +02:00
content_converter.h feat: add support for keyboard initialized menu popup (#38903) 2023-06-29 15:54:06 -07:00
extension_converter.cc perf: avoid unnecessary base value clone (#38537) 2023-06-02 08:38:29 -05:00
extension_converter.h chore: remove unused std includes (#38767) 2023-06-14 11:07:18 -07:00
file_dialog_converter.cc refactor: add gin_helper::Dictionary::CreateEmpty() helper (#39547) 2023-08-21 10:43:41 +09:00
file_dialog_converter.h chore: add ELECTRON_ prefix to C++ include guards (#31925) 2021-11-22 16:34:31 +09:00
file_path_converter.h fix: don't use deprecate-soon class v8::String::Value (#43553) 2024-09-04 12:54:19 -05:00
frame_converter.cc chore: bump chromium to 119.0.6006.0 (main) (#39774) 2023-09-18 16:44:09 -04:00
frame_converter.h feat: session.setDisplayMediaRequestHandler (#30702) 2022-08-22 14:15:32 -07:00
gfx_converter.cc fix: BrowserView autoresizing conversion error (#42138) 2024-05-13 16:59:43 +02:00
gfx_converter.h feat: replace BrowserView with WebContentsView (#35658) 2023-12-13 13:01:03 -08:00
guid_converter.h chore: bump chromium to 100.0.4857.0 (main) (#32419) 2022-02-09 18:58:52 -08:00
gurl_converter.h chore: add ELECTRON_ prefix to C++ include guards (#31925) 2021-11-22 16:34:31 +09:00
hid_device_info_converter.h chore: bump chromium to 121.0.6147.0 (main) (#40523) 2023-11-28 13:40:12 -08:00
image_converter.cc refactor: remove path from nativeImage converter (#26546) 2021-01-04 12:58:31 -08:00
image_converter.h chore: add ELECTRON_ prefix to C++ include guards (#31925) 2021-11-22 16:34:31 +09:00
login_item_settings_converter.cc fix: app.setLoginItemSettings error getting swallowed by gin conversion (#41647) 2024-03-22 09:00:21 -04:00
login_item_settings_converter.h fix: app.setLoginItemSettings error getting swallowed by gin conversion (#41647) 2024-03-22 09:00:21 -04:00
media_converter.cc chore: remove unused std includes (#38767) 2023-06-14 11:07:18 -07:00
media_converter.h feat: session.setDisplayMediaRequestHandler (#30702) 2022-08-22 14:15:32 -07:00
message_box_converter.cc feat: add width option to dialog.showMessageBox() (#30474) 2021-09-23 19:56:14 +09:00
message_box_converter.h chore: add ELECTRON_ prefix to C++ include guards (#31925) 2021-11-22 16:34:31 +09:00
native_window_converter.h refactor: replace remaining NULL with nullptr (#40053) 2023-10-03 12:26:35 -07:00
net_converter.cc chore: bump chromium to 126.0.6445.0 (31-x-y) (#42119) 2024-05-13 20:19:31 +02:00
net_converter.h chore: remove unused std includes (#38767) 2023-06-14 11:07:18 -07:00
optional_converter.h chore: replace absl::optional<T> with std::optional<T> (#40928) 2024-01-10 16:23:35 -06:00
serial_port_info_converter.h refactor: add gin_helper::Dictionary::CreateEmpty() helper (#39547) 2023-08-21 10:43:41 +09:00
std_converter.h refactor: use constexpr lookup tables in gin helper (#38818) 2023-06-19 10:33:09 +02:00
time_converter.cc chore: bump chromium to 120.0.6099.0 (main) (#40316) 2023-11-01 10:02:12 -04:00
time_converter.h chore: add ELECTRON_ prefix to C++ include guards (#31925) 2021-11-22 16:34:31 +09:00
usb_device_info_converter.h feat: add support for WebUSB (#36289) 2022-11-22 16:50:32 -05:00
usb_protected_classes_converter.h feat: add USB protected classes handler (#38263) 2023-05-30 12:35:25 -04:00
value_converter.cc perf: avoid unnecessary base value clone (#38537) 2023-06-02 08:38:29 -05:00
value_converter.h perf: avoid unnecessary base value clone (#38537) 2023-06-02 08:38:29 -05:00