
Use brotli by default (https://chromium.googlesource.com/chromium/src/+/36d58dd325f958ed2b25b870f16574eaa309e342) Update Mac ui headers (https://chromium.googlesource.com/chromium/src/+/897636c9f85adf2f0e06d5f0f7b8de0d1e2e3d26) Update AtomBrowserClient::HandleExternalProtocol API (https://chromium.googlesource.com/chromium/src/+/cb656e1fd16bdb5f28142bea5178dff2db86cffe)
47 lines
1.4 KiB
Objective-C
47 lines
1.4 KiB
Objective-C
// Copyright (c) 2018 GitHub, Inc.
|
|
// Use of this source code is governed by the MIT license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#ifndef ATOM_BROWSER_UI_COCOA_ATOM_NS_WINDOW_H_
|
|
#define ATOM_BROWSER_UI_COCOA_ATOM_NS_WINDOW_H_
|
|
|
|
#include "atom/browser/ui/cocoa/event_dispatching_window.h"
|
|
#include "components/remote_cocoa/app_shim/native_widget_mac_nswindow.h"
|
|
#include "ui/views/widget/native_widget_mac.h"
|
|
|
|
namespace atom {
|
|
|
|
class NativeWindowMac;
|
|
|
|
// Prevents window from resizing during the scope.
|
|
class ScopedDisableResize {
|
|
public:
|
|
ScopedDisableResize() { disable_resize_ = true; }
|
|
~ScopedDisableResize() { disable_resize_ = false; }
|
|
|
|
static bool IsResizeDisabled() { return disable_resize_; }
|
|
|
|
private:
|
|
static bool disable_resize_;
|
|
};
|
|
|
|
} // namespace atom
|
|
|
|
@interface AtomNSWindow : NativeWidgetMacNSWindow {
|
|
@private
|
|
atom::NativeWindowMac* shell_;
|
|
}
|
|
@property BOOL acceptsFirstMouse;
|
|
@property BOOL enableLargerThanScreen;
|
|
@property BOOL disableAutoHideCursor;
|
|
@property BOOL disableKeyOrMainWindow;
|
|
@property(nonatomic, retain) NSView* vibrantView;
|
|
- (id)initWithShell:(atom::NativeWindowMac*)shell
|
|
styleMask:(NSUInteger)styleMask;
|
|
- (atom::NativeWindowMac*)shell;
|
|
- (id)accessibilityFocusedUIElement;
|
|
- (NSRect)originalContentRectForFrameRect:(NSRect)frameRect;
|
|
- (void)toggleFullScreenMode:(id)sender;
|
|
@end
|
|
|
|
#endif // ATOM_BROWSER_UI_COCOA_ATOM_NS_WINDOW_H_
|