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

This commit is contained in:
Tom Moor 2018-11-27 18:00:37 -08:00 committed by Cheng Zhao
parent 3ed5a24c72
commit 250a09a43f
6 changed files with 22 additions and 2 deletions

View file

@ -9,6 +9,7 @@
#include <set>
#include <string>
#include <tuple>
#include "ui/views/widget/widget_observer.h"
@ -123,6 +124,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;