mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 18:10:56 +09:00
Ladybird/AppKit: Remove system header workarounds for global names
This commit is contained in:
parent
88044f59c6
commit
349a3ceec5
Notes:
sideshowbarker
2024-07-18 23:46:23 +09:00
Author: https://github.com/ADKaster
Commit: 349a3ceec5
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/676
Reviewed-by: https://github.com/AtkinsSJ ✅
Reviewed-by: https://github.com/trflynn89 ✅
20 changed files with 16 additions and 83 deletions
|
@ -11,7 +11,7 @@
|
|||
#include <LibIPC/Forward.h>
|
||||
#include <LibWebView/Forward.h>
|
||||
|
||||
#import <System/Cocoa.h>
|
||||
#import <Cocoa/Cocoa.h>
|
||||
|
||||
namespace Ladybird {
|
||||
class WebViewBridge;
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
#include <LibWeb/HTML/ActivateTab.h>
|
||||
#include <LibWebView/CookieJar.h>
|
||||
|
||||
#import <System/Cocoa.h>
|
||||
#import <Cocoa/Cocoa.h>
|
||||
|
||||
@class Tab;
|
||||
@class TabController;
|
||||
|
|
|
@ -13,8 +13,8 @@
|
|||
#include <LibCore/ThreadEventQueue.h>
|
||||
|
||||
#import <Application/EventLoopImplementation.h>
|
||||
#import <System/Cocoa.h>
|
||||
#import <System/CoreFoundation.h>
|
||||
#import <Cocoa/Cocoa.h>
|
||||
#import <CoreFoundation/CoreFoundation.h>
|
||||
|
||||
#include <sys/event.h>
|
||||
#include <sys/time.h>
|
||||
|
|
|
@ -1,13 +0,0 @@
|
|||
/*
|
||||
* Copyright (c) 2023, Tim Flynn <trflynn89@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "Detail/Header.h"
|
||||
|
||||
#import <Carbon/Carbon.h>
|
||||
|
||||
#include "Detail/Footer.h"
|
|
@ -1,13 +0,0 @@
|
|||
/*
|
||||
* Copyright (c) 2023, Tim Flynn <trflynn89@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "Detail/Header.h"
|
||||
|
||||
#import <Cocoa/Cocoa.h>
|
||||
|
||||
#include "Detail/Footer.h"
|
|
@ -1,13 +0,0 @@
|
|||
/*
|
||||
* Copyright (c) 2023, Tim Flynn <trflynn89@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "Detail/Header.h"
|
||||
|
||||
#import <CoreFoundation/CoreFoundation.h>
|
||||
|
||||
#include "Detail/Footer.h"
|
|
@ -1,14 +0,0 @@
|
|||
/*
|
||||
* Copyright (c) 2023, Tim Flynn <trflynn89@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#if !defined(MACOS_UGLY_WORKAROUND)
|
||||
# error Footer.h was included before Header.h.
|
||||
#endif
|
||||
|
||||
#undef Duration
|
||||
#undef FixedPoint
|
||||
|
||||
#undef MACOS_UGLY_WORKAROUND
|
|
@ -1,14 +0,0 @@
|
|||
/*
|
||||
* Copyright (c) 2023, Tim Flynn <trflynn89@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#if defined(MACOS_UGLY_WORKAROUND)
|
||||
# error Header.h was included again before Footer.h.
|
||||
#endif
|
||||
|
||||
#define Duration DurationMacOS
|
||||
#define FixedPoint FixedPointMacOS
|
||||
|
||||
#define MACOS_UGLY_WORKAROUND
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
#include <LibWeb/Page/InputEvent.h>
|
||||
|
||||
#import <System/Cocoa.h>
|
||||
#import <Cocoa/Cocoa.h>
|
||||
|
||||
namespace Ladybird {
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#include <AK/TypeCasts.h>
|
||||
#include <AK/Utf8View.h>
|
||||
|
||||
#import <System/Carbon.h>
|
||||
#import <Carbon/Carbon.h>
|
||||
#import <UI/Event.h>
|
||||
#import <Utilities/Conversions.h>
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#import <System/Cocoa.h>
|
||||
#import <Cocoa/Cocoa.h>
|
||||
|
||||
@class LadybirdWebView;
|
||||
@class Tab;
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#import <System/Cocoa.h>
|
||||
#import <Cocoa/Cocoa.h>
|
||||
|
||||
@class Tab;
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
#include <LibWeb/HTML/AudioPlayState.h>
|
||||
#include <LibWebView/Forward.h>
|
||||
|
||||
#import <System/Cocoa.h>
|
||||
#import <Cocoa/Cocoa.h>
|
||||
|
||||
@protocol LadybirdWebViewObserver <NSObject>
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#include <LibGfx/Palette.h>
|
||||
#include <LibGfx/SystemTheme.h>
|
||||
|
||||
#import <System/Cocoa.h>
|
||||
#import <Cocoa/Cocoa.h>
|
||||
#import <UI/Palette.h>
|
||||
|
||||
namespace Ladybird {
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
#include <AK/Optional.h>
|
||||
|
||||
#import <System/Cocoa.h>
|
||||
#import <Cocoa/Cocoa.h>
|
||||
|
||||
@interface SearchPanel : NSStackView
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#import <System/Cocoa.h>
|
||||
#import <Cocoa/Cocoa.h>
|
||||
|
||||
@class LadybirdWebView;
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#include <AK/Forward.h>
|
||||
#include <LibURL/URL.h>
|
||||
|
||||
#import <System/Cocoa.h>
|
||||
#import <Cocoa/Cocoa.h>
|
||||
|
||||
struct TabSettings {
|
||||
BOOL should_show_line_box_borders { NO };
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#import <System/Cocoa.h>
|
||||
#import <Cocoa/Cocoa.h>
|
||||
|
||||
@class LadybirdWebView;
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#import <System/Cocoa.h>
|
||||
#import <Cocoa/Cocoa.h>
|
||||
|
||||
@protocol TaskManagerDelegate <NSObject>
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
#include <LibGfx/Rect.h>
|
||||
#include <LibGfx/Size.h>
|
||||
|
||||
#import <System/Cocoa.h>
|
||||
#import <Cocoa/Cocoa.h>
|
||||
|
||||
namespace Ladybird {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue