fix: send NSView* as the response to getNativeWindowHandle() instead of a null handle (#15521)

This commit is contained in:
Samuel Attard 2018-11-09 04:03:19 +11:00 committed by Shelley Vohr
parent 746beb0d8b
commit 9aed2a465f
6 changed files with 22 additions and 2 deletions

View file

@ -9,6 +9,7 @@
#include <memory>
#include <string>
#include <tuple>
#include <vector>
#include "atom/browser/native_window.h"
@ -106,6 +107,7 @@ class NativeWindowMac : public NativeWindow {
gfx::NativeView GetNativeView() const override;
gfx::NativeWindow GetNativeWindow() const override;
gfx::AcceleratedWidget GetAcceleratedWidget() const override;
std::tuple<void*, int> GetNativeWindowHandlePointer() const override;
void SetProgressBar(double progress, const ProgressState state) override;
void SetOverlayIcon(const gfx::Image& overlay,
const std::string& description) override;