1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef UI_VIEWS_WIN_HWND_UTIL_H_
6 #define UI_VIEWS_WIN_HWND_UTIL_H_
8 #include "ui/gfx/native_widget_types.h"
9 #include "ui/gfx/rect.h"
10 #include "ui/views/views_export.h"
17 // Returns the HWND for the specified View.
18 VIEWS_EXPORT HWND
HWNDForView(const View
* view
);
20 // Returns the HWND for the specified Widget.
21 VIEWS_EXPORT HWND
HWNDForWidget(const Widget
* widget
);
23 // Returns the HWND for the specified NativeView.
24 VIEWS_EXPORT HWND
HWNDForNativeView(const gfx::NativeView view
);
26 // Returns the HWND for the specified NativeWindow.
27 VIEWS_EXPORT HWND
HWNDForNativeWindow(const gfx::NativeWindow window
);
29 VIEWS_EXPORT
gfx::Rect
GetWindowBoundsForClientBounds(
30 View
* view
, const gfx::Rect
& client_bounds
);
33 #endif // UI_VIEWS_WIN_HWND_UTIL_H_