hwnd_util.h revision 2a99a7e74a7f215066514fe81d2bfa6639d9eddd
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.
4
5#ifndef UI_VIEWS_WIN_HWND_UTIL_H_
6#define UI_VIEWS_WIN_HWND_UTIL_H_
7
8#include "ui/gfx/native_widget_types.h"
9#include "ui/views/views_export.h"
10
11namespace views {
12
13class View;
14class Widget;
15
16// Returns the HWND for the specified View.
17VIEWS_EXPORT HWND HWNDForView(View* view);
18
19// Returns the HWND for the specified Widget.
20VIEWS_EXPORT HWND HWNDForWidget(Widget* widget);
21
22// Returns the HWND for the specified NativeWindow.
23VIEWS_EXPORT HWND HWNDForNativeWindow(gfx::NativeWindow window);
24
25}
26
27#endif  // UI_VIEWS_WIN_HWND_UTIL_H_
28