|
@@ -35,10 +35,10 @@ system font by checking if it's kCTFontPriorityAttribute is set to
|
|
|
system priority.
|
|
|
|
|
|
diff --git a/base/BUILD.gn b/base/BUILD.gn
|
|
|
-index a989a351a87650d33342cc8eea9d719bcad31fb6..6c8cfaec9e3034d7f05d257211bfdd8172b0136b 100644
|
|
|
+index dcaabde395b859f13f238476d093279b644ca940..e9502fc39855d8f4f843dd3d5de925fa8a43c947 100644
|
|
|
--- a/base/BUILD.gn
|
|
|
+++ b/base/BUILD.gn
|
|
|
-@@ -1053,6 +1053,7 @@ component("base") {
|
|
|
+@@ -1050,6 +1050,7 @@ component("base") {
|
|
|
"//build/config/compiler:prevent_unsafe_narrowing",
|
|
|
"//build/config/compiler:wexit_time_destructors",
|
|
|
"//build/config/compiler:wglobal_constructors",
|
|
@@ -183,7 +183,7 @@ index a5815d7c1cab4795dbaf20bfd152810cb78ce0a9..5bb13f382e08f66ed3cb8cd67512b867
|
|
|
"alert.h",
|
|
|
"alert.mm",
|
|
|
diff --git a/components/remote_cocoa/app_shim/application_bridge.mm b/components/remote_cocoa/app_shim/application_bridge.mm
|
|
|
-index 5a096477c123a782341115f964c4975301ccaf9a..ecfbb3b405425af346a6ba6788fc1d8ff89760cd 100644
|
|
|
+index ee110fe82749fe69808f7c53f2e028d7033e1f54..55c2d643004a5acf9297693d28c3f71b43acc570 100644
|
|
|
--- a/components/remote_cocoa/app_shim/application_bridge.mm
|
|
|
+++ b/components/remote_cocoa/app_shim/application_bridge.mm
|
|
|
@@ -51,6 +51,7 @@
|
|
@@ -192,7 +192,7 @@ index 5a096477c123a782341115f964c4975301ccaf9a..ecfbb3b405425af346a6ba6788fc1d8f
|
|
|
id GetNativeViewAccessible() override {
|
|
|
+#if !IS_MAS_BUILD()
|
|
|
if (!remote_accessibility_element_) {
|
|
|
- int64_t browser_pid = 0;
|
|
|
+ base::ProcessId browser_pid = base::kNullProcessId;
|
|
|
std::vector<uint8_t> element_token;
|
|
|
@@ -61,6 +62,9 @@ id GetNativeViewAccessible() override {
|
|
|
ui::RemoteAccessibility::GetRemoteElementFromToken(element_token);
|
|
@@ -303,7 +303,7 @@ index 25672be4a7dac9a8cd53498184f537292e14d5c2..ef0844ae2845990832fc9777eade9455
|
|
|
// The NSWindow used by BridgedNativeWidget. Provides hooks into AppKit that
|
|
|
// can only be accomplished by overriding methods.
|
|
|
diff --git a/components/remote_cocoa/app_shim/native_widget_mac_nswindow.mm b/components/remote_cocoa/app_shim/native_widget_mac_nswindow.mm
|
|
|
-index 4c60785c1998677abc8845c087f672f51dc2ce8f..4c06d59cefb630a2cf7f79f1b41bd8a53ae84643 100644
|
|
|
+index 568f0c23f1b276f36f1871f23e4a1c8ed7366e6c..e0a8d474cafb654b2bb420ee914ef4f596de2d6d 100644
|
|
|
--- a/components/remote_cocoa/app_shim/native_widget_mac_nswindow.mm
|
|
|
+++ b/components/remote_cocoa/app_shim/native_widget_mac_nswindow.mm
|
|
|
@@ -104,7 +104,9 @@ void OrderChildWindow(NSWindow* child_window,
|
|
@@ -390,10 +390,38 @@ index 5756139efd53eb9ec6e74007fc10d9f7dfe51d44..8faf652dee5720e066b6ab5f2d4997ee
|
|
|
|
|
|
if (is_win) {
|
|
|
diff --git a/content/app_shim_remote_cocoa/ns_view_bridge_factory_impl.mm b/content/app_shim_remote_cocoa/ns_view_bridge_factory_impl.mm
|
|
|
-index b15bca430f99aaf02733061d986b3ea78204e748..6ad3b61e20361a68f8d799b5826b0ff303d98b69 100644
|
|
|
+index 0181e431874fcd9949be755e840af5afa32fdffa..2d9598de81977c7107e5f45d321e390f89cffa25 100644
|
|
|
--- a/content/app_shim_remote_cocoa/ns_view_bridge_factory_impl.mm
|
|
|
+++ b/content/app_shim_remote_cocoa/ns_view_bridge_factory_impl.mm
|
|
|
-@@ -90,8 +90,10 @@ id GetFocusedBrowserAccessibilityElement() override {
|
|
|
+@@ -64,7 +64,9 @@ explicit RenderWidgetHostNSViewBridgeOwner(
|
|
|
+ const RenderWidgetHostNSViewBridgeOwner&) = delete;
|
|
|
+
|
|
|
+ private:
|
|
|
++#if !IS_MAS_BUILD()
|
|
|
+ NSAccessibilityRemoteUIElement* __strong remote_accessibility_element_;
|
|
|
++#endif
|
|
|
+ void OnMojoDisconnect() { delete this; }
|
|
|
+
|
|
|
+ std::unique_ptr<blink::WebCoalescedInputEvent> TranslateEvent(
|
|
|
+@@ -76,6 +78,7 @@ explicit RenderWidgetHostNSViewBridgeOwner(
|
|
|
+ }
|
|
|
+
|
|
|
+ id GetAccessibilityElement() override {
|
|
|
++#if !IS_MAS_BUILD()
|
|
|
+ if (!remote_accessibility_element_) {
|
|
|
+ base::ProcessId browser_pid = base::kNullProcessId;
|
|
|
+ std::vector<uint8_t> element_token;
|
|
|
+@@ -86,6 +89,9 @@ id GetAccessibilityElement() override {
|
|
|
+ ui::RemoteAccessibility::GetRemoteElementFromToken(element_token);
|
|
|
+ }
|
|
|
+ return remote_accessibility_element_;
|
|
|
++#else
|
|
|
++ return nil;
|
|
|
++#endif
|
|
|
+ }
|
|
|
+
|
|
|
+ // RenderWidgetHostNSViewHostHelper implementation.
|
|
|
+@@ -104,8 +110,10 @@ id GetFocusedBrowserAccessibilityElement() override {
|
|
|
return [bridgedContentView accessibilityFocusedUIElement];
|
|
|
}
|
|
|
void SetAccessibilityWindow(NSWindow* window) override {
|
|
@@ -405,10 +433,10 @@ index b15bca430f99aaf02733061d986b3ea78204e748..6ad3b61e20361a68f8d799b5826b0ff3
|
|
|
|
|
|
void ForwardKeyboardEvent(const content::NativeWebKeyboardEvent& key_event,
|
|
|
diff --git a/content/app_shim_remote_cocoa/render_widget_host_view_cocoa.mm b/content/app_shim_remote_cocoa/render_widget_host_view_cocoa.mm
|
|
|
-index 5f6e5b078672c0336cee72300a7a37d6284db226..76650bac392c650946636cedc2f5d9c35ca113fa 100644
|
|
|
+index d520acc21839a63f5e1167c5ec3f119d89d43713..8b2f3c6cfa2615452fd43b7accd26ce852e50b63 100644
|
|
|
--- a/content/app_shim_remote_cocoa/render_widget_host_view_cocoa.mm
|
|
|
+++ b/content/app_shim_remote_cocoa/render_widget_host_view_cocoa.mm
|
|
|
-@@ -2014,15 +2014,21 @@ - (NSAccessibilityRole)accessibilityRole {
|
|
|
+@@ -2022,15 +2022,21 @@ - (NSAccessibilityRole)accessibilityRole {
|
|
|
// Since this implementation doesn't have to wait any IPC calls, this doesn't
|
|
|
// make any key-typing jank. --hbono 7/23/09
|
|
|
//
|
|
@@ -431,7 +459,7 @@ index 5f6e5b078672c0336cee72300a7a37d6284db226..76650bac392c650946636cedc2f5d9c3
|
|
|
return kAttributes;
|
|
|
}
|
|
|
diff --git a/content/browser/BUILD.gn b/content/browser/BUILD.gn
|
|
|
-index 64d7c47759e9c7899aaf1c513d0b1b8ee6d97f98..6f885f7ea451310cca7c7686548cd3467984874f 100644
|
|
|
+index 193558166b9587eb62ea7a13ab71716d38277aec..ac9c91c5b9048db4c33d8584dee96596e4aff68c 100644
|
|
|
--- a/content/browser/BUILD.gn
|
|
|
+++ b/content/browser/BUILD.gn
|
|
|
@@ -54,6 +54,7 @@ source_set("browser") {
|
|
@@ -489,7 +517,7 @@ index ce3623bd6353674fee92ba1c36eeda8da8906882..62746522bf5f398b12a8cee35f49bb4f
|
|
|
return false;
|
|
|
}
|
|
|
diff --git a/content/browser/renderer_host/render_widget_host_view_mac.h b/content/browser/renderer_host/render_widget_host_view_mac.h
|
|
|
-index 032a1da13d5f75e3b31aa868c5ff138f88c2eed2..2a190ba1e4fed6fa11ddfbf167aac2196dd16d86 100644
|
|
|
+index d4e154d08dc61e7240fbb564d942732d3eef7a1a..7b30649c6656107a9401475c745467dd525358ca 100644
|
|
|
--- a/content/browser/renderer_host/render_widget_host_view_mac.h
|
|
|
+++ b/content/browser/renderer_host/render_widget_host_view_mac.h
|
|
|
@@ -49,7 +49,9 @@ class ScopedPasswordInputEnabler;
|
|
@@ -502,7 +530,7 @@ index 032a1da13d5f75e3b31aa868c5ff138f88c2eed2..2a190ba1e4fed6fa11ddfbf167aac219
|
|
|
@class RenderWidgetHostViewCocoa;
|
|
|
@class CursorAccessibilityScaleFactorObserver;
|
|
|
|
|
|
-@@ -678,9 +680,11 @@ class CONTENT_EXPORT RenderWidgetHostViewMac
|
|
|
+@@ -681,9 +683,11 @@ class CONTENT_EXPORT RenderWidgetHostViewMac
|
|
|
// EnsureSurfaceSynchronizedForWebTest().
|
|
|
uint32_t latest_capture_sequence_number_ = 0u;
|
|
|
|
|
@@ -515,7 +543,7 @@ index 032a1da13d5f75e3b31aa868c5ff138f88c2eed2..2a190ba1e4fed6fa11ddfbf167aac219
|
|
|
// Used to force the NSApplication's focused accessibility element to be the
|
|
|
// content::BrowserAccessibilityCocoa accessibility tree when the NSView for
|
|
|
diff --git a/content/browser/renderer_host/render_widget_host_view_mac.mm b/content/browser/renderer_host/render_widget_host_view_mac.mm
|
|
|
-index 947af40d33f81c47ad7c3fa0ebcf3a45b697b530..e0fa7a8edcd3a71784d35cb3f18d0b2b8d77c816 100644
|
|
|
+index 72b957cd89704085ad44d040e0826148d56881fb..39e03b029c4ebf03020f6cc8b67922f73652772a 100644
|
|
|
--- a/content/browser/renderer_host/render_widget_host_view_mac.mm
|
|
|
+++ b/content/browser/renderer_host/render_widget_host_view_mac.mm
|
|
|
@@ -272,8 +272,10 @@
|
|
@@ -540,7 +568,7 @@ index 947af40d33f81c47ad7c3fa0ebcf3a45b697b530..e0fa7a8edcd3a71784d35cb3f18d0b2b
|
|
|
return [GetInProcessNSView() window];
|
|
|
}
|
|
|
|
|
|
-@@ -1695,9 +1699,11 @@ void CombineTextNodesAndMakeCallback(SpeechCallback callback,
|
|
|
+@@ -1699,9 +1703,11 @@ void CombineTextNodesAndMakeCallback(SpeechCallback callback,
|
|
|
}
|
|
|
|
|
|
void RenderWidgetHostViewMac::SetAccessibilityWindow(NSWindow* window) {
|
|
@@ -552,7 +580,19 @@ index 947af40d33f81c47ad7c3fa0ebcf3a45b697b530..e0fa7a8edcd3a71784d35cb3f18d0b2b
|
|
|
}
|
|
|
|
|
|
bool RenderWidgetHostViewMac::SyncIsWidgetForMainFrame(
|
|
|
-@@ -2204,12 +2210,14 @@ void CombineTextNodesAndMakeCallback(SpeechCallback callback,
|
|
|
+@@ -2209,20 +2215,26 @@ void CombineTextNodesAndMakeCallback(SpeechCallback callback,
|
|
|
+ void RenderWidgetHostViewMac::GetRenderWidgetAccessibilityToken(
|
|
|
+ GetRenderWidgetAccessibilityTokenCallback callback) {
|
|
|
+ base::ProcessId pid = getpid();
|
|
|
++#if !IS_MAS_BUILD()
|
|
|
+ id element_id = GetNativeViewAccessible();
|
|
|
+ std::vector<uint8_t> token =
|
|
|
+ ui::RemoteAccessibility::GetTokenForLocalElement(element_id);
|
|
|
+ std::move(callback).Run(pid, token);
|
|
|
++#else
|
|
|
++ std::move(callback).Run(pid, std::vector<uint8_t>());
|
|
|
++#endif
|
|
|
+ }
|
|
|
|
|
|
void RenderWidgetHostViewMac::SetRemoteAccessibilityWindowToken(
|
|
|
const std::vector<uint8_t>& window_token) {
|
|
@@ -568,10 +608,10 @@ index 947af40d33f81c47ad7c3fa0ebcf3a45b697b530..e0fa7a8edcd3a71784d35cb3f18d0b2b
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
diff --git a/content/common/BUILD.gn b/content/common/BUILD.gn
|
|
|
-index 250d68fe80384f4409e91dd94a37ebc6ad34d383..4f5f1021dcdf2ca45531b8f56fed44b4c1097e8f 100644
|
|
|
+index fdc1defcdd260872d4e5ce512dfea3bad48bb9e3..0f15dacce3c68e6122f5378050f019a9521bedfd 100644
|
|
|
--- a/content/common/BUILD.gn
|
|
|
+++ b/content/common/BUILD.gn
|
|
|
-@@ -240,6 +240,7 @@ source_set("common") {
|
|
|
+@@ -242,6 +242,7 @@ source_set("common") {
|
|
|
"//content:content_implementation",
|
|
|
"//build/config:precompiled_headers",
|
|
|
]
|
|
@@ -660,10 +700,10 @@ index a119b4439bfb9218c7aaf09dca8e78527da7f20d..faa813b003940280c6eeb87e70173019
|
|
|
|
|
|
} // namespace content
|
|
|
diff --git a/content/test/BUILD.gn b/content/test/BUILD.gn
|
|
|
-index 8d0a789cccacc4d6a54d9bc499c606f076a3d3b6..0c9dc99d03928defceaae741d588d292301b6ba8 100644
|
|
|
+index 7a0769c985c08a3b3834c9495b9ebcebad21e220..74a3b7da7024e468b0d0b0044b2137d59f0bf8e5 100644
|
|
|
--- a/content/test/BUILD.gn
|
|
|
+++ b/content/test/BUILD.gn
|
|
|
-@@ -479,6 +479,7 @@ static_library("test_support") {
|
|
|
+@@ -489,6 +489,7 @@ static_library("test_support") {
|
|
|
configs += [
|
|
|
"//build/config:precompiled_headers",
|
|
|
"//v8:external_startup_data",
|
|
@@ -671,7 +711,7 @@ index 8d0a789cccacc4d6a54d9bc499c606f076a3d3b6..0c9dc99d03928defceaae741d588d292
|
|
|
]
|
|
|
|
|
|
public_deps = [
|
|
|
-@@ -1075,6 +1076,7 @@ static_library("browsertest_support") {
|
|
|
+@@ -1086,6 +1087,7 @@ static_library("browsertest_support") {
|
|
|
}
|
|
|
|
|
|
configs += [ "//v8:external_startup_data" ]
|
|
@@ -679,7 +719,7 @@ index 8d0a789cccacc4d6a54d9bc499c606f076a3d3b6..0c9dc99d03928defceaae741d588d292
|
|
|
}
|
|
|
|
|
|
mojom("content_test_mojo_bindings") {
|
|
|
-@@ -1690,6 +1692,7 @@ test("content_browsertests") {
|
|
|
+@@ -1702,6 +1704,7 @@ test("content_browsertests") {
|
|
|
defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
|
|
|
|
|
|
configs += [ "//build/config:precompiled_headers" ]
|
|
@@ -687,7 +727,7 @@ index 8d0a789cccacc4d6a54d9bc499c606f076a3d3b6..0c9dc99d03928defceaae741d588d292
|
|
|
|
|
|
public_deps = [
|
|
|
":test_interfaces",
|
|
|
-@@ -2932,6 +2935,7 @@ test("content_unittests") {
|
|
|
+@@ -2945,6 +2948,7 @@ test("content_unittests") {
|
|
|
}
|
|
|
|
|
|
configs += [ "//build/config:precompiled_headers" ]
|
|
@@ -709,7 +749,7 @@ index 24facc48c2b6b30db3a7cb36e4222019b471e84b..d1d3e72407682b01e6c2173cd34445db
|
|
|
sources += [ "browser/web_test_shell_platform_delegate_mac.mm" ]
|
|
|
} else if (toolkit_views && !is_castos) {
|
|
|
diff --git a/device/bluetooth/BUILD.gn b/device/bluetooth/BUILD.gn
|
|
|
-index e09b425de7f7c799f675d385d6a8189baaeb13dd..3ddb0afe42879933c7a15c1bb82309736e78a15a 100644
|
|
|
+index ff6d030a46995536a7382ae67a0b7b783370ef7f..3aad6d951f9c51b5edb866238fa1c8e6ff4431ab 100644
|
|
|
--- a/device/bluetooth/BUILD.gn
|
|
|
+++ b/device/bluetooth/BUILD.gn
|
|
|
@@ -243,6 +243,7 @@ component("bluetooth") {
|
|
@@ -889,10 +929,10 @@ index 8cd474c33e514fd0aa90daf68a56ed7fc902d713..9fff9cc7b00b257c3bebb02c75a3c2e8
|
|
|
} // namespace
|
|
|
#endif
|
|
|
diff --git a/media/audio/mac/audio_manager_mac.cc b/media/audio/mac/audio_manager_mac.cc
|
|
|
-index ac44f991c6cbe464d8867d8b3c77e1a5082793a7..7933a70a4b88b3cd00724aa025e82aecd867a5f3 100644
|
|
|
+index 0c0243c2bb9e72c6eba6f9af554b99e2d5514a5d..f5f0e0ec951ccc8278b773c852134e4e29f53e8a 100644
|
|
|
--- a/media/audio/mac/audio_manager_mac.cc
|
|
|
+++ b/media/audio/mac/audio_manager_mac.cc
|
|
|
-@@ -969,7 +969,7 @@ AudioParameters AudioManagerMac::GetPreferredOutputStreamParameters(
|
|
|
+@@ -959,7 +959,7 @@ AudioParameters AudioManagerMac::GetPreferredOutputStreamParameters(
|
|
|
|
|
|
void AudioManagerMac::InitializeOnAudioThread() {
|
|
|
DCHECK(GetTaskRunner()->BelongsToCurrentThread());
|
|
@@ -1278,7 +1318,7 @@ index eb81a70e4d5d5cd3e6ae9b45f8cd1c795ea76c51..dc30306f2c5d20503399fc3a8860773a
|
|
|
|
|
|
} // namespace sandbox
|
|
|
diff --git a/third_party/blink/renderer/core/BUILD.gn b/third_party/blink/renderer/core/BUILD.gn
|
|
|
-index 421b11f8839a7304b0dd8a976b9f2176832c32bc..7738b5a04fb020681dfdd03dae5ac4331db08e4a 100644
|
|
|
+index c6ab1b11b29d574234aae9f30401b1ff8a9023ce..ff94cb56f884811f6eaf3f9b15c534e3284c773b 100644
|
|
|
--- a/third_party/blink/renderer/core/BUILD.gn
|
|
|
+++ b/third_party/blink/renderer/core/BUILD.gn
|
|
|
@@ -312,6 +312,7 @@ component("core") {
|
|
@@ -1290,7 +1330,7 @@ index 421b11f8839a7304b0dd8a976b9f2176832c32bc..7738b5a04fb020681dfdd03dae5ac433
|
|
|
public_deps = [
|
|
|
":core_generated",
|
|
|
diff --git a/third_party/blink/renderer/core/editing/build.gni b/third_party/blink/renderer/core/editing/build.gni
|
|
|
-index 16bc33b36fa860214a6b4647d69939080df1b556..3c170e36fbeaddee2790f79039d81c0ef958572f 100644
|
|
|
+index f12dd0a759fd8a79e648e14711274ccc40642a3d..63ae0ca4f63e68913c809b9440a922a95e914dcd 100644
|
|
|
--- a/third_party/blink/renderer/core/editing/build.gni
|
|
|
+++ b/third_party/blink/renderer/core/editing/build.gni
|
|
|
@@ -354,10 +354,14 @@ blink_core_sources_editing = [
|
|
@@ -1577,7 +1617,7 @@ index a64df51a061e4d1b1d923fab830e5b3be4c389ba..e0cb6abb7a5010c69f82a3edcea5700c
|
|
|
sources += [
|
|
|
"test/desktop_window_tree_host_win_test_api.cc",
|
|
|
diff --git a/ui/views/cocoa/native_widget_mac_ns_window_host.h b/ui/views/cocoa/native_widget_mac_ns_window_host.h
|
|
|
-index f37c02488e6ba943ebf9b880a04bcfef9afc9d97..b10ed25b5cdf5eb2f314ed72226f71c8bc35e58e 100644
|
|
|
+index 06cb52062e66fc27c00941e703b909cf42cfa322..309f7a351b8a2aa2ccc42a084a5af086ddb8691d 100644
|
|
|
--- a/ui/views/cocoa/native_widget_mac_ns_window_host.h
|
|
|
+++ b/ui/views/cocoa/native_widget_mac_ns_window_host.h
|
|
|
@@ -30,7 +30,9 @@
|
|
@@ -1604,7 +1644,7 @@ index f37c02488e6ba943ebf9b880a04bcfef9afc9d97..b10ed25b5cdf5eb2f314ed72226f71c8
|
|
|
// Used to force the NSApplication's focused accessibility element to be the
|
|
|
// views::Views accessibility tree when the NSView for this is focused.
|
|
|
diff --git a/ui/views/cocoa/native_widget_mac_ns_window_host.mm b/ui/views/cocoa/native_widget_mac_ns_window_host.mm
|
|
|
-index 52ee42399fdec85ab31da6cf6392698f58c4f2cb..9592cf7eadccbba522661da5a906896f11f69942 100644
|
|
|
+index 800e715ad7a7051743ce3b1da1b2f9a2c07a4b7e..57169b5f44e6a457c2747f407b8e2b5a26785297 100644
|
|
|
--- a/ui/views/cocoa/native_widget_mac_ns_window_host.mm
|
|
|
+++ b/ui/views/cocoa/native_widget_mac_ns_window_host.mm
|
|
|
@@ -345,7 +345,11 @@ void HandleAccelerator(const ui::Accelerator& accelerator,
|
|
@@ -1647,7 +1687,7 @@ index 52ee42399fdec85ab31da6cf6392698f58c4f2cb..9592cf7eadccbba522661da5a906896f
|
|
|
}
|
|
|
|
|
|
bool NativeWidgetMacNSWindowHost::GetRootViewAccessibilityToken(
|
|
|
- int64_t* pid,
|
|
|
+ base::ProcessId* pid,
|
|
|
std::vector<uint8_t>* token) {
|
|
|
+#if !IS_MAS_BUILD()
|
|
|
*pid = getpid();
|