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

Unified Diff: views/widget/child_window_message_processor.cc

Issue 5184009: Revert 66784 - Converts usage of SetProp/GetProp to a map. Even after making ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 1 month 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 | « views/widget/child_window_message_processor.h ('k') | views/widget/widget.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/widget/child_window_message_processor.cc
===================================================================
--- views/widget/child_window_message_processor.cc (revision 66785)
+++ views/widget/child_window_message_processor.cc (working copy)
@@ -4,27 +4,24 @@
#include "views/widget/child_window_message_processor.h"
-#include "app/view_prop.h"
-#include "base/logging.h"
+#include "app/win/scoped_prop.h"
-#include "app/view_prop.h"
-
namespace views {
-static const char* const kChildWindowKey = "__CHILD_WINDOW_MESSAGE_PROCESSOR__";
+static const wchar_t* kChildWindowKey = L"__CHILD_WINDOW_MESSAGE_PROCESSOR__";
// static
-ViewProp* ChildWindowMessageProcessor::Register(
+app::win::ScopedProp* ChildWindowMessageProcessor::Register(
HWND hwnd,
ChildWindowMessageProcessor* processor) {
DCHECK(processor);
- return new ViewProp(hwnd, kChildWindowKey, processor);
+ return new app::win::ScopedProp(hwnd, kChildWindowKey, processor);
}
// static
ChildWindowMessageProcessor* ChildWindowMessageProcessor::Get(HWND hwnd) {
return reinterpret_cast<ChildWindowMessageProcessor*>(
- ViewProp::GetValue(hwnd, kChildWindowKey));
+ ::GetProp(hwnd, kChildWindowKey));
}
} // namespace
« no previous file with comments | « views/widget/child_window_message_processor.h ('k') | views/widget/widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698