summaryrefslogtreecommitdiffstats
path: root/chromium/ui/views/widget/child_window_message_processor.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/ui/views/widget/child_window_message_processor.h')
-rw-r--r--chromium/ui/views/widget/child_window_message_processor.h47
1 files changed, 0 insertions, 47 deletions
diff --git a/chromium/ui/views/widget/child_window_message_processor.h b/chromium/ui/views/widget/child_window_message_processor.h
deleted file mode 100644
index 112d9d835d4..00000000000
--- a/chromium/ui/views/widget/child_window_message_processor.h
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef UI_VIEWS_WIDGET_CHILD_WINDOW_MESSAGE_PROCESSOR_H_
-#define UI_VIEWS_WIDGET_CHILD_WINDOW_MESSAGE_PROCESSOR_H_
-
-#include <windows.h>
-
-namespace ui {
-class ViewProp;
-}
-
-namespace views {
-
-// Windows sends a handful of messages to the parent window rather than the
-// window itself. For example, selection changes of a rich edit (EN_SELCHANGE)
-// are sent to the parent, not the window. Typically such message are best
-// dealt with by the window rather than the parent. NativeWidgetWin allows for
-// registering a ChildWindowMessageProcessor to handle such messages.
-class ChildWindowMessageProcessor {
- public:
- // Registers |processor| for |hwnd|. The caller takes ownership of the
- // returned object.
- static ui::ViewProp* Register(HWND hwnd,
- ChildWindowMessageProcessor* processor);
-
- // Returns the ChildWindowMessageProcessor for |hwnd|, NULL if there isn't
- // one.
- static ChildWindowMessageProcessor* Get(HWND hwnd);
-
- // Invoked for any messages that are sent to the parent and originated from
- // the HWND this ChildWindowMessageProcessor was registered for. Returns true
- // if the message was handled with a valid result in |result|. Returns false
- // if the message was not handled.
- virtual bool ProcessMessage(UINT message,
- WPARAM w_param,
- LPARAM l_param,
- LRESULT* result) = 0;
-
- protected:
- virtual ~ChildWindowMessageProcessor() {}
-};
-
-} // namespace views
-
-#endif // UI_VIEWS_WIDGET_CHILD_WINDOW_MESSAGE_PROCESSOR_H_