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

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

Issue 23769011: Move a bunch of windows stuff from ui/base/win to ui/gfx/win (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moar bustage. Created 7 years, 3 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
« no previous file with comments | « ui/gfx/win/dpi.cc ('k') | ui/gfx/win/hwnd_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_BASE_WIN_HWND_UTIL_H_ 5 #ifndef UI_GFX_WIN_HWND_UTIL_H_
6 #define UI_BASE_WIN_HWND_UTIL_H_ 6 #define UI_GFX_WIN_HWND_UTIL_H_
7 7
8 #include <windows.h> 8 #include <windows.h>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
11 #include "ui/base/ui_export.h" 11 #include "ui/gfx/gfx_export.h"
12 12
13 namespace gfx { 13 namespace gfx {
14 class Point; 14 class Point;
15 class Size; 15 class Size;
16 }
17
18 namespace ui {
19 16
20 // A version of the GetClassNameW API that returns the class name in an 17 // A version of the GetClassNameW API that returns the class name in an
21 // string16. An empty result indicates a failure to get the class name. 18 // string16. An empty result indicates a failure to get the class name.
22 UI_EXPORT string16 GetClassName(HWND hwnd); 19 UI_EXPORT string16 GetClassName(HWND hwnd);
23 20
24 // Useful for subclassing a HWND. Returns the previous window procedure. 21 // Useful for subclassing a HWND. Returns the previous window procedure.
25 UI_EXPORT WNDPROC SetWindowProc(HWND hwnd, WNDPROC wndproc); 22 UI_EXPORT WNDPROC SetWindowProc(HWND hwnd, WNDPROC wndproc);
26 23
27 // Pointer-friendly wrappers around Get/SetWindowLong(..., GWLP_USERDATA, ...) 24 // Pointer-friendly wrappers around Get/SetWindowLong(..., GWLP_USERDATA, ...)
28 // Returns the previously set value. 25 // Returns the previously set value.
(...skipping 16 matching lines...) Expand all
45 42
46 // Shows |window|'s system menu (at a specified |point| in screen coordinates). 43 // Shows |window|'s system menu (at a specified |point| in screen coordinates).
47 UI_EXPORT void ShowSystemMenu(HWND window); 44 UI_EXPORT void ShowSystemMenu(HWND window);
48 UI_EXPORT void ShowSystemMenuAtPoint(HWND window, const gfx::Point& point); 45 UI_EXPORT void ShowSystemMenuAtPoint(HWND window, const gfx::Point& point);
49 46
50 // Returns the window you can use to parent a top level window. 47 // Returns the window you can use to parent a top level window.
51 // Note that in some cases we create child windows not parented to its final 48 // Note that in some cases we create child windows not parented to its final
52 // container so in those cases you should pass true in |get_real_hwnd|. 49 // container so in those cases you should pass true in |get_real_hwnd|.
53 UI_EXPORT HWND GetWindowToParentTo(bool get_real_hwnd); 50 UI_EXPORT HWND GetWindowToParentTo(bool get_real_hwnd);
54 51
55 } // namespace ui 52 } // namespace gfx
56 53
57 #endif // UI_BASE_WIN_HWND_UTIL_H_ 54 #endif // UI_GFX_WIN_HWND_UTIL_H_
OLDNEW
« no previous file with comments | « ui/gfx/win/dpi.cc ('k') | ui/gfx/win/hwnd_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698