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

Unified Diff: ui/base/win/hwnd_util.h

Issue 7328011: Introduce ui.dll / libui.so for the component build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/base/view_prop.h ('k') | ui/base/win/ime_input.h » ('j') | ui/ui.gyp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « ui/base/view_prop.h ('k') | ui/base/win/ime_input.h » ('j') | ui/ui.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698