[webkit-changes] [WebKit/WebKit] aebc19: Add Web Extension interfaces for windows and tabs ...
Timothy Hatcher
noreply at github.com
Thu Aug 24 11:47:13 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: aebc1969539a8aeec18bc36f907f3b48c8f13cd7
https://github.com/WebKit/WebKit/commit/aebc1969539a8aeec18bc36f907f3b48c8f13cd7
Author: Timothy Hatcher <timothy at apple.com>
Date: 2023-08-24 (Thu, 24 Aug 2023)
Changed paths:
M Source/WebKit/DerivedSources-input.xcfilelist
M Source/WebKit/DerivedSources-output.xcfilelist
M Source/WebKit/DerivedSources.make
M Source/WebKit/UIProcess/Extensions/WebExtensionTab.h
M Source/WebKit/WebKit.xcodeproj/project.pbxproj
M Source/WebKit/WebProcess/Extensions/API/Cocoa/WebExtensionAPINamespaceCocoa.mm
A Source/WebKit/WebProcess/Extensions/API/Cocoa/WebExtensionAPITabsCocoa.mm
M Source/WebKit/WebProcess/Extensions/API/Cocoa/WebExtensionAPIWebNavigationEventCocoa.mm
A Source/WebKit/WebProcess/Extensions/API/Cocoa/WebExtensionAPIWindowsCocoa.mm
A Source/WebKit/WebProcess/Extensions/API/Cocoa/WebExtensionAPIWindowsEventCocoa.mm
M Source/WebKit/WebProcess/Extensions/API/WebExtensionAPIEvent.h
M Source/WebKit/WebProcess/Extensions/API/WebExtensionAPINamespace.h
A Source/WebKit/WebProcess/Extensions/API/WebExtensionAPITabs.h
M Source/WebKit/WebProcess/Extensions/API/WebExtensionAPIWebNavigationEvent.h
A Source/WebKit/WebProcess/Extensions/API/WebExtensionAPIWindows.h
A Source/WebKit/WebProcess/Extensions/API/WebExtensionAPIWindowsEvent.h
M Source/WebKit/WebProcess/Extensions/Interfaces/WebExtensionAPINamespace.idl
A Source/WebKit/WebProcess/Extensions/Interfaces/WebExtensionAPITabs.idl
A Source/WebKit/WebProcess/Extensions/Interfaces/WebExtensionAPIWindows.idl
A Source/WebKit/WebProcess/Extensions/Interfaces/WebExtensionAPIWindowsEvent.idl
Log Message:
-----------
Add Web Extension interfaces for windows and tabs with stub implementations.
https://webkit.org/b/260664
rdar://problem/114387424
Reviewed by Brian Weinstein.
Implementation to come in future pull requests.
* Source/WebKit/DerivedSources-input.xcfilelist:
* Source/WebKit/DerivedSources-output.xcfilelist:
* Source/WebKit/DerivedSources.make:
* Source/WebKit/UIProcess/Extensions/WebExtensionTab.h:
* Source/WebKit/WebKit.xcodeproj/project.pbxproj:
* Source/WebKit/WebProcess/Extensions/API/Cocoa/WebExtensionAPINamespaceCocoa.mm:
(WebKit::WebExtensionAPINamespace::alarms):
(WebKit::WebExtensionAPINamespace::extension):
(WebKit::WebExtensionAPINamespace::permissions):
(WebKit::WebExtensionAPINamespace::runtime):
(WebKit::WebExtensionAPINamespace::tabs):
(WebKit::WebExtensionAPINamespace::test):
(WebKit::WebExtensionAPINamespace::windows):
(WebKit::WebExtensionAPINamespace::webNavigation):
* Source/WebKit/WebProcess/Extensions/API/Cocoa/WebExtensionAPITabsCocoa.mm: Added.
(WebKit::WebExtensionAPITabs::isPropertyAllowed):
(WebKit::WebExtensionAPITabs::createTab):
(WebKit::WebExtensionAPITabs::query):
(WebKit::WebExtensionAPITabs::get):
(WebKit::WebExtensionAPITabs::getCurrent):
(WebKit::WebExtensionAPITabs::getSelected):
(WebKit::WebExtensionAPITabs::duplicate):
(WebKit::WebExtensionAPITabs::update):
(WebKit::WebExtensionAPITabs::remove):
(WebKit::WebExtensionAPITabs::reload):
(WebKit::WebExtensionAPITabs::goBack):
(WebKit::WebExtensionAPITabs::goForward):
(WebKit::WebExtensionAPITabs::getZoom):
(WebKit::WebExtensionAPITabs::setZoom):
(WebKit::WebExtensionAPITabs::detectLanguage):
(WebKit::WebExtensionAPITabs::toggleReaderMode):
(WebKit::WebExtensionAPITabs::onActivated):
(WebKit::WebExtensionAPITabs::onAttached):
(WebKit::WebExtensionAPITabs::onCreated):
(WebKit::WebExtensionAPITabs::onDetached):
(WebKit::WebExtensionAPITabs::onHighlighted):
(WebKit::WebExtensionAPITabs::onMoved):
(WebKit::WebExtensionAPITabs::onRemoved):
(WebKit::WebExtensionAPITabs::onReplaced):
(WebKit::WebExtensionAPITabs::onUpdated):
* Source/WebKit/WebProcess/Extensions/API/Cocoa/WebExtensionAPIWebNavigationEventCocoa.mm:
(WebKit::WebExtensionAPIWebNavigationEvent::invokeListenersWithArgument):
(WebKit::WebExtensionAPIWebNavigationEvent::addListener):
* Source/WebKit/WebProcess/Extensions/API/Cocoa/WebExtensionAPIWindowsCocoa.mm: Added.
(WebKit::WebExtensionAPIWindows::isPropertyAllowed):
(WebKit::WebExtensionAPIWindows::createWindow):
(WebKit::WebExtensionAPIWindows::get):
(WebKit::WebExtensionAPIWindows::getCurrent):
(WebKit::WebExtensionAPIWindows::getLastFocused):
(WebKit::WebExtensionAPIWindows::getAll):
(WebKit::WebExtensionAPIWindows::update):
(WebKit::WebExtensionAPIWindows::remove):
(WebKit::WebExtensionAPIWindows::onCreated):
(WebKit::WebExtensionAPIWindows::onRemoved):
(WebKit::WebExtensionAPIWindows::onFocusChanged):
* Source/WebKit/WebProcess/Extensions/API/Cocoa/WebExtensionAPIWindowsEventCocoa.mm: Added.
(WebKit::WebExtensionAPIWindowsEvent::invokeListenersWithArgument):
(WebKit::WebExtensionAPIWindowsEvent::addListener):
(WebKit::WebExtensionAPIWindowsEvent::removeListener):
(WebKit::WebExtensionAPIWindowsEvent::hasListener):
* Source/WebKit/WebProcess/Extensions/API/WebExtensionAPIEvent.h:
(WebKit::WebExtensionAPIEvent::WebExtensionAPIEvent):
* Source/WebKit/WebProcess/Extensions/API/WebExtensionAPINamespace.h:
* Source/WebKit/WebProcess/Extensions/API/WebExtensionAPITabs.h: Added.
(WebKit::WebExtensionAPITabs::tabIdentifierNone const):
* Source/WebKit/WebProcess/Extensions/API/WebExtensionAPIWebNavigationEvent.h:
(WebKit::WebExtensionAPIWebNavigationEvent::WebExtensionAPIWebNavigationEvent):
* Source/WebKit/WebProcess/Extensions/API/WebExtensionAPIWindows.h: Added.
(WebKit::WebExtensionAPIWindows::windowIdentifierNone const):
(WebKit::WebExtensionAPIWindows::windowIdentifierCurrent const):
* Source/WebKit/WebProcess/Extensions/API/WebExtensionAPIWindowsEvent.h: Added.
(WebKit::WebExtensionAPIWindowsEvent::listeners const):
(WebKit::WebExtensionAPIWindowsEvent::WebExtensionAPIWindowsEvent):
* Source/WebKit/WebProcess/Extensions/Interfaces/WebExtensionAPINamespace.idl:
* Source/WebKit/WebProcess/Extensions/Interfaces/WebExtensionAPITabs.idl: Added.
* Source/WebKit/WebProcess/Extensions/Interfaces/WebExtensionAPIWindows.idl: Added.
* Source/WebKit/WebProcess/Extensions/Interfaces/WebExtensionAPIWindowsEvent.idl: Added.
Canonical link: https://commits.webkit.org/267238@main
More information about the webkit-changes
mailing list