1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "ui/views/widget/child_window_message_processor.h"
7 #include "base/logging.h"
8 #include "ui/base/view_prop.h"
12 static const char* const kChildWindowKey = "__CHILD_WINDOW_MESSAGE_PROCESSOR__";
15 ui::ViewProp* ChildWindowMessageProcessor::Register(
17 ChildWindowMessageProcessor* processor) {
19 return new ui::ViewProp(hwnd, kChildWindowKey, processor);
23 ChildWindowMessageProcessor* ChildWindowMessageProcessor::Get(HWND hwnd) {
24 return reinterpret_cast<ChildWindowMessageProcessor*>(
25 ui::ViewProp::GetValue(hwnd, kChildWindowKey));