Index: ui/base/win/hwnd_util.h |
=================================================================== |
--- ui/base/win/hwnd_util.h (revision 92815) |
+++ ui/base/win/hwnd_util.h (working copy) |
@@ -9,6 +9,7 @@ |
#include <windows.h> |
#include "base/string16.h" |
+#include "ui/ui_api.h" |
namespace gfx { |
class Size; |
@@ -18,35 +19,35 @@ |
// A version of the GetClassNameW API that returns the class name in an |
// string16. An empty result indicates a failure to get the class name. |
-string16 GetClassName(HWND hwnd); |
+UI_API string16 GetClassName(HWND hwnd); |
// Useful for subclassing a HWND. Returns the previous window procedure. |
-WNDPROC SetWindowProc(HWND hwnd, WNDPROC wndproc); |
+UI_API WNDPROC SetWindowProc(HWND hwnd, WNDPROC wndproc); |
// Pointer-friendly wrappers around Get/SetWindowLong(..., GWLP_USERDATA, ...) |
// Returns the previously set value. |
-void* SetWindowUserData(HWND hwnd, void* user_data); |
-void* GetWindowUserData(HWND hwnd); |
+UI_API void* SetWindowUserData(HWND hwnd, void* user_data); |
+UI_API void* GetWindowUserData(HWND hwnd); |
// Returns true if the specified window is the current active top window or one |
// of its children. |
-bool DoesWindowBelongToActiveWindow(HWND window); |
+UI_API bool DoesWindowBelongToActiveWindow(HWND window); |
// Sizes the window to have a client or window size (depending on the value of |
// |pref_is_client|) of pref, then centers the window over parent, ensuring the |
// window fits on screen. |
-void CenterAndSizeWindow(HWND parent, |
- HWND window, |
- const gfx::Size& pref, |
- bool pref_is_client); |
+UI_API void CenterAndSizeWindow(HWND parent, |
+ HWND window, |
+ const gfx::Size& pref, |
+ bool pref_is_client); |
// If |hwnd| is NULL logs various thing and CHECKs. Invoke right after calling |
// CreateWindow. |
-void CheckWindowCreated(HWND hwnd); |
+UI_API void CheckWindowCreated(HWND hwnd); |
// Shows the system menu for |window| and sends the selected command (if the |
// user selected something. |
-void ShowSystemMenu(HWND window, int screen_x, int screen_y); |
+UI_API void ShowSystemMenu(HWND window, int screen_x, int screen_y); |
} // namespace ui |