Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(157)

Side by Side Diff: ui/views/win/hwnd_util.h

Issue 13896011: Make javascript dialogs into top-level windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix non-aura build. Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_VIEWS_WIN_HWND_UTIL_H_ 5 #ifndef UI_VIEWS_WIN_HWND_UTIL_H_
6 #define UI_VIEWS_WIN_HWND_UTIL_H_ 6 #define UI_VIEWS_WIN_HWND_UTIL_H_
7 7
8 #include "ui/gfx/native_widget_types.h" 8 #include "ui/gfx/native_widget_types.h"
9 #include "ui/gfx/rect.h"
9 #include "ui/views/views_export.h" 10 #include "ui/views/views_export.h"
10 11
11 namespace views { 12 namespace views {
12 13
13 class View; 14 class View;
14 class Widget; 15 class Widget;
15 16
16 // Returns the HWND for the specified View. 17 // Returns the HWND for the specified View.
17 VIEWS_EXPORT HWND HWNDForView(View* view); 18 VIEWS_EXPORT HWND HWNDForView(View* view);
18 19
19 // Returns the HWND for the specified Widget. 20 // Returns the HWND for the specified Widget.
20 VIEWS_EXPORT HWND HWNDForWidget(Widget* widget); 21 VIEWS_EXPORT HWND HWNDForWidget(Widget* widget);
21 22
22 // Returns the HWND for the specified NativeView. 23 // Returns the HWND for the specified NativeView.
23 VIEWS_EXPORT HWND HWNDForNativeView(gfx::NativeView view); 24 VIEWS_EXPORT HWND HWNDForNativeView(gfx::NativeView view);
24 25
25 // Returns the HWND for the specified NativeWindow. 26 // Returns the HWND for the specified NativeWindow.
26 VIEWS_EXPORT HWND HWNDForNativeWindow(gfx::NativeWindow window); 27 VIEWS_EXPORT HWND HWNDForNativeWindow(gfx::NativeWindow window);
27 28
29 VIEWS_EXPORT gfx::Rect GetWindowBoundsForClientBounds(
30 View* view, const gfx::Rect& client_bounds);
28 } 31 }
29 32
30 #endif // UI_VIEWS_WIN_HWND_UTIL_H_ 33 #endif // UI_VIEWS_WIN_HWND_UTIL_H_
OLDNEW
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_native_widget_aura.cc ('k') | ui/views/win/hwnd_util_aurawin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698