fix: return pointer instead of pointer's content (#16014)

This commit is contained in:
Cheng Zhao 2018-12-12 02:45:55 +09:00 committed by John Kleinschmidt
parent f3c64ea9d8
commit 624ade2c25
9 changed files with 302 additions and 253 deletions

View file

@ -1071,9 +1071,8 @@ gfx::AcceleratedWidget NativeWindowViews::GetAcceleratedWidget() const {
return GetNativeWindow()->GetHost()->GetAcceleratedWidget();
}
std::tuple<void*, int> NativeWindowViews::GetNativeWindowHandlePointer() const {
gfx::AcceleratedWidget handle = GetAcceleratedWidget();
return std::make_tuple(static_cast<void*>(&handle), sizeof(handle));
NativeWindowHandle NativeWindowViews::GetNativeWindowHandle() const {
return GetAcceleratedWidget();
}
gfx::Rect NativeWindowViews::ContentBoundsToWindowBounds(