summaryrefslogtreecommitdiffstats
path: root/base/win_util.h
diff options
context:
space:
mode:
authorbrettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-30 15:38:47 +0000
committerbrettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-30 15:38:47 +0000
commitfff369b8be4e7df5af4f9c2cedd29234248fd35b (patch)
tree4e6494c94c2cb379273ab1beab20c0c142485601 /base/win_util.h
parentc376c45bd9f166acbdc776c640161d7fbd5956a4 (diff)
downloadchromium_src-fff369b8be4e7df5af4f9c2cedd29234248fd35b.zip
chromium_src-fff369b8be4e7df5af4f9c2cedd29234248fd35b.tar.gz
chromium_src-fff369b8be4e7df5af4f9c2cedd29234248fd35b.tar.bz2
Remove win_util::FormatMessage and FormatLastWin32Error. These were only used in a couple of diagnostic places and one can always use the "Error Lookup" utility.
Move window HWND-specific functions from base/win_util.h to a new file app/win/hwnd_util.h. I plan to put some more stuff from app/win_util into this file as well. Move gfx/window_impl.h into app/win TEST=it compiles BUG=none Review URL: http://codereview.chromium.org/6019007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70312 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/win_util.h')
-rw-r--r--base/win_util.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/base/win_util.h b/base/win_util.h
index 4ba7eeb..c06e9c7 100644
--- a/base/win_util.h
+++ b/base/win_util.h
@@ -23,14 +23,6 @@ void GetNonClientMetrics(NONCLIENTMETRICS* metrics);
// Returns the string representing the current user sid.
bool GetUserSidString(std::wstring* user_sid);
-// Useful for subclassing a HWND. Returns the previous window procedure.
-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);
-
// Returns true if the shift key is currently pressed.
bool IsShiftPressed();
@@ -40,10 +32,6 @@ bool IsCtrlPressed();
// Returns true if the alt key is currently pressed.
bool IsAltPressed();
-// A version of the GetClassNameW API that returns the class name in an
-// std::wstring. An empty result indicates a failure to get the class name.
-std::wstring GetClassName(HWND window);
-
// Returns false if user account control (UAC) has been disabled with the
// EnableLUA registry flag. Returns true if user account control is enabled.
// NOTE: The EnableLUA registry flag, which is ignored on Windows XP
@@ -52,13 +40,6 @@ std::wstring GetClassName(HWND window);
// if the OS is Vista.
bool UserAccountControlIsEnabled();
-// Use the Win32 API FormatMessage() function to generate a string, using
-// Windows's default Message Compiled resources; ignoring the inserts.
-std::wstring FormatMessage(unsigned messageid);
-
-// Uses the last Win32 error to generate a human readable message string.
-std::wstring FormatLastWin32Error();
-
// Sets the application id in given IPropertyStore. The function is intended
// for tagging application/chromium shortcut, browser window and jump list for
// Win7.