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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « views/widget/child_window_message_processor.h ('k') | views/widget/widget.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "views/widget/child_window_message_processor.h" 5 #include "views/widget/child_window_message_processor.h"
6 6
7 #include "app/view_prop.h" 7 #include "app/win/scoped_prop.h"
8 #include "base/logging.h"
9
10 #include "app/view_prop.h"
11 8
12 namespace views { 9 namespace views {
13 10
14 static const char* const kChildWindowKey = "__CHILD_WINDOW_MESSAGE_PROCESSOR__"; 11 static const wchar_t* kChildWindowKey = L"__CHILD_WINDOW_MESSAGE_PROCESSOR__";
15 12
16 // static 13 // static
17 ViewProp* ChildWindowMessageProcessor::Register( 14 app::win::ScopedProp* ChildWindowMessageProcessor::Register(
18 HWND hwnd, 15 HWND hwnd,
19 ChildWindowMessageProcessor* processor) { 16 ChildWindowMessageProcessor* processor) {
20 DCHECK(processor); 17 DCHECK(processor);
21 return new ViewProp(hwnd, kChildWindowKey, processor); 18 return new app::win::ScopedProp(hwnd, kChildWindowKey, processor);
22 } 19 }
23 20
24 // static 21 // static
25 ChildWindowMessageProcessor* ChildWindowMessageProcessor::Get(HWND hwnd) { 22 ChildWindowMessageProcessor* ChildWindowMessageProcessor::Get(HWND hwnd) {
26 return reinterpret_cast<ChildWindowMessageProcessor*>( 23 return reinterpret_cast<ChildWindowMessageProcessor*>(
27 ViewProp::GetValue(hwnd, kChildWindowKey)); 24 ::GetProp(hwnd, kChildWindowKey));
28 } 25 }
29 26
30 } // namespace 27 } // namespace
OLDNEW
« 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