зеркало из https://github.com/mozilla/gecko-dev.git
Bug 913953 - Part u: Remove unused HWND user data functions; r=ehsan
This commit is contained in:
Родитель
35187deb42
Коммит
8354637364
|
@ -258,16 +258,6 @@ WNDPROC SetWindowProc(HWND hwnd, WNDPROC proc) {
|
|||
return oldwindow_proc;
|
||||
}
|
||||
|
||||
void* SetWindowUserData(HWND hwnd, void* user_data) {
|
||||
return
|
||||
reinterpret_cast<void*>(SetWindowLongPtr(hwnd, GWLP_USERDATA,
|
||||
reinterpret_cast<LONG_PTR>(user_data)));
|
||||
}
|
||||
|
||||
void* GetWindowUserData(HWND hwnd) {
|
||||
return reinterpret_cast<void*>(GetWindowLongPtr(hwnd, GWLP_USERDATA));
|
||||
}
|
||||
|
||||
// Maps to the WNDPROC for a window that was active before the subclass was
|
||||
// installed.
|
||||
static const wchar_t* const kHandlerKey = L"__ORIGINAL_MESSAGE_HANDLER__";
|
||||
|
|
|
@ -73,11 +73,6 @@ bool Unsubclass(HWND window, WNDPROC subclass_proc);
|
|||
// SubclassWindow.
|
||||
WNDPROC GetSuperclassWNDPROC(HWND window);
|
||||
|
||||
// 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();
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче