mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Remove cursor_types.h in favor of cursor_type.mojom
https://chromium-review.googlesource.com/c/chromium/src/+/2052103
This commit is contained in:
@@ -90,6 +90,7 @@
|
||||
#include "third_party/blink/public/mojom/frame/find_in_page.mojom.h"
|
||||
#include "third_party/blink/public/mojom/frame/fullscreen.mojom.h"
|
||||
#include "third_party/blink/public/platform/web_cursor_info.h"
|
||||
#include "ui/base/mojom/cursor_type.mojom-shared.h"
|
||||
#include "ui/display/screen.h"
|
||||
#include "ui/events/base_event_utils.h"
|
||||
|
||||
@@ -2325,7 +2326,7 @@ bool WebContents::IsBeingCaptured() {
|
||||
void WebContents::OnCursorChange(const content::WebCursor& cursor) {
|
||||
const content::CursorInfo& info = cursor.info();
|
||||
|
||||
if (info.type == ui::CursorType::kCustom) {
|
||||
if (info.type == ui::mojom::CursorType::kCustom) {
|
||||
Emit("cursor-changed", CursorTypeToString(info),
|
||||
gfx::Image::CreateFrom1xBitmap(info.custom_image),
|
||||
info.image_scale_factor,
|
||||
|
||||
@@ -28,7 +28,6 @@
|
||||
#include "shell/browser/api/save_page_handler.h"
|
||||
#include "shell/browser/common_web_contents_delegate.h"
|
||||
#include "shell/common/gin_helper/trackable_object.h"
|
||||
#include "third_party/blink/public/mojom/favicon/favicon_url.mojom.h"
|
||||
#include "ui/gfx/image/image.h"
|
||||
|
||||
#if BUILDFLAG(ENABLE_PRINTING)
|
||||
|
||||
@@ -2,10 +2,12 @@
|
||||
// Use of this source code is governed by the MIT license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "shell/common/mouse_util.h"
|
||||
#include <string>
|
||||
|
||||
using Cursor = ui::CursorType;
|
||||
#include "shell/common/mouse_util.h"
|
||||
#include "ui/base/mojom/cursor_type.mojom-shared.h"
|
||||
|
||||
using Cursor = ui::mojom::CursorType;
|
||||
|
||||
namespace electron {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user