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

@ -10,6 +10,7 @@
#include <memory>
#include <set>
#include <string>
#include <tuple>
#include "ui/views/widget/widget_observer.h"
@ -128,6 +129,7 @@ class NativeWindowViews : public NativeWindow,
bool IsVisibleOnAllWorkspaces() override;
gfx::AcceleratedWidget GetAcceleratedWidget() const override;
std::tuple<void*, int> GetNativeWindowHandlePointer() const override;
gfx::Rect ContentBoundsToWindowBounds(const gfx::Rect& bounds) const override;
gfx::Rect WindowBoundsToContentBounds(const gfx::Rect& bounds) const override;