forked from Pissandshittium/pissandshittium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move implementation of WebCursor::GetNativeCursor to //ui for mac.
This gets closer to merging content::WebCursor into ui::Cursor, and also is needed to improve cursor handling for remote cocoa. Bug: 1149906, 1163879 Change-Id: I43d52bbda129ed39ef62e60a618b198a1d49f3fa Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3648432 Reviewed-by: Avi Drissman <avi@chromium.org> Commit-Queue: Marijn Kruisselbrink <mek@chromium.org> Cr-Commit-Position: refs/heads/main@{#1005265}
- Loading branch information
1 parent
17a833b
commit 24d2c7d
Showing
6 changed files
with
306 additions
and
277 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -297,7 +297,6 @@ source_set("common") { | |
deps += [ | ||
":mac_helpers", | ||
"//sandbox/mac:seatbelt", | ||
"//ui/resources", | ||
] | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,3 @@ | ||
include_rules = [ | ||
"+third_party/blink/public/platform", | ||
] | ||
|
||
specific_include_rules = { | ||
# TODO(mek): temporarily allow this until webcursor_mac implementation is | ||
# moved to //ui/base | ||
"webcursor_mac.mm": [ | ||
"+ui/base/resource/resource_bundle.h", | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Copyright 2022 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#ifndef UI_BASE_COCOA_CURSOR_UTILS_H_ | ||
#define UI_BASE_COCOA_CURSOR_UTILS_H_ | ||
|
||
#include "base/component_export.h" | ||
#include "ui/base/cursor/cursor.h" | ||
#include "ui/gfx/native_widget_types.h" | ||
|
||
namespace ui { | ||
|
||
COMPONENT_EXPORT(UI_BASE) | ||
gfx::NativeCursor GetNativeCursor(const ui::Cursor& cursor); | ||
|
||
} // namespace ui | ||
|
||
#endif // UI_BASE_COCOA_CURSOR_UTILS_H_ |
Oops, something went wrong.