Commit 3176791d authored by Jeremy Roman's avatar Jeremy Roman Committed by Commit Bot

Move PortalActivateEvent to core/html/portal/.

This code is more tightly entangled with the other portal code than the other
event types, and should usually be reviewed by the same owners that review
HTMLPortalElement and related changes.

There are already a number of events that live outside core/events/, so this
is not the first instance of that, either.

Change-Id: I470457d065f9e669664b2b645655563f1878d059
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1799399Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Reviewed-by: default avatarLucas Gadani <lfg@chromium.org>
Commit-Queue: Jeremy Roman <jbroman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#695939}
parent e274f239
......@@ -165,7 +165,6 @@ core_idl_files =
"events/page_transition_event.idl",
"events/pointer_event.idl",
"events/pop_state_event.idl",
"events/portal_activate_event.idl",
"events/progress_event.idl",
"events/promise_rejection_event.idl",
"events/resource_progress_event.idl",
......@@ -292,6 +291,7 @@ core_idl_files =
"html/media/html_audio_element.idl",
"html/media/media_error.idl",
"html/portal/html_portal_element.idl",
"html/portal/portal_activate_event.idl",
"html/portal/portal_host.idl",
"html/track/audio_track_list.idl",
"html/track/html_track_element.idl",
......@@ -643,7 +643,6 @@ core_dictionary_idl_files =
"events/page_transition_event_init.idl",
"events/pointer_event_init.idl",
"events/pop_state_event_init.idl",
"events/portal_activate_event_init.idl",
"events/progress_event_init.idl",
"events/promise_rejection_event_init.idl",
"events/security_policy_violation_event_init.idl",
......@@ -674,6 +673,7 @@ core_dictionary_idl_files =
"html/canvas/image_encode_options.idl",
"html/custom/validity_state_flags.idl",
"html/forms/form_data_event_init.idl",
"html/portal/portal_activate_event_init.idl",
"html/portal/portal_activate_options.idl",
"html/track/track_event_init.idl",
"imagebitmap/image_bitmap_options.idl",
......
......@@ -58,8 +58,6 @@ blink_core_sources("events") {
"pointer_event_factory.h",
"pop_state_event.cc",
"pop_state_event.h",
"portal_activate_event.cc",
"portal_activate_event.h",
"progress_event.cc",
"progress_event.h",
"promise_rejection_event.cc",
......
......@@ -171,7 +171,6 @@
#include "third_party/blink/renderer/core/editing/writing_direction.h"
#include "third_party/blink/renderer/core/events/after_print_event.h"
#include "third_party/blink/renderer/core/events/before_print_event.h"
#include "third_party/blink/renderer/core/events/portal_activate_event.h"
#include "third_party/blink/renderer/core/exported/local_frame_client_impl.h"
#include "third_party/blink/renderer/core/exported/web_dev_tools_agent_impl.h"
#include "third_party/blink/renderer/core/exported/web_document_loader_impl.h"
......@@ -212,6 +211,7 @@
#include "third_party/blink/renderer/core/html/portal/document_portals.h"
#include "third_party/blink/renderer/core/html/portal/dom_window_portal_host.h"
#include "third_party/blink/renderer/core/html/portal/html_portal_element.h"
#include "third_party/blink/renderer/core/html/portal/portal_activate_event.h"
#include "third_party/blink/renderer/core/html/portal/portal_host.h"
#include "third_party/blink/renderer/core/html_names.h"
#include "third_party/blink/renderer/core/input/context_menu_allowed_scope.h"
......
......@@ -505,6 +505,8 @@ blink_core_sources("html") {
"portal/dom_window_portal_host.h",
"portal/html_portal_element.cc",
"portal/html_portal_element.h",
"portal/portal_activate_event.cc",
"portal/portal_activate_event.h",
"portal/portal_contents.cc",
"portal/portal_contents.h",
"portal/portal_host.cc",
......
......@@ -2,15 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/core/events/portal_activate_event.h"
#include "third_party/blink/renderer/core/html/portal/portal_activate_event.h"
#include <utility>
#include "third_party/blink/renderer/bindings/core/v8/script_value.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/event_type_names.h"
#include "third_party/blink/renderer/core/events/portal_activate_event_init.h"
#include "third_party/blink/renderer/core/frame/local_frame.h"
#include "third_party/blink/renderer/core/html/portal/html_portal_element.h"
#include "third_party/blink/renderer/core/html/portal/portal_activate_event_init.h"
#include "third_party/blink/renderer/core/messaging/message_port.h"
#include "third_party/blink/renderer/platform/bindings/script_state.h"
#include "third_party/blink/renderer/platform/bindings/v8_per_isolate_data.h"
......
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_EVENTS_PORTAL_ACTIVATE_EVENT_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_EVENTS_PORTAL_ACTIVATE_EVENT_H_
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_HTML_PORTAL_PORTAL_ACTIVATE_EVENT_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_HTML_PORTAL_PORTAL_ACTIVATE_EVENT_H_
#include "base/unguessable_token.h"
#include "mojo/public/cpp/bindings/associated_remote.h"
......@@ -101,4 +101,4 @@ class CORE_EXPORT PortalActivateEvent : public Event {
} // namespace blink
#endif // THIRD_PARTY_BLINK_RENDERER_CORE_EVENTS_PORTAL_ACTIVATE_EVENT_H_
#endif // THIRD_PARTY_BLINK_RENDERER_CORE_HTML_PORTAL_PORTAL_ACTIVATE_EVENT_H_
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment