| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef UI_BASE_WIN_HWND_SUBCLASS_H_ | 5 #ifndef UI_BASE_WIN_HWND_SUBCLASS_H_ |
| 6 #define UI_BASE_WIN_HWND_SUBCLASS_H_ | 6 #define UI_BASE_WIN_HWND_SUBCLASS_H_ |
| 7 | 7 |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/gtest_prod_util.h" | |
| 12 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 13 #include "ui/base/ui_base_export.h" | 12 #include "ui/base/ui_base_export.h" |
| 14 #include "ui/base/view_prop.h" | 13 #include "ui/base/view_prop.h" |
| 15 | 14 |
| 16 namespace ui { | 15 namespace ui { |
| 17 | 16 |
| 18 // Classes implementing this interface get the opportunity to handle and consume | 17 // Classes implementing this interface get the opportunity to handle and consume |
| 19 // messages before they are sent to their target HWND. | 18 // messages before they are sent to their target HWND. |
| 20 class UI_BASE_EXPORT HWNDMessageFilter { | 19 class UI_BASE_EXPORT HWNDMessageFilter { |
| 21 public: | 20 public: |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 std::vector<HWNDMessageFilter*> filters_; | 73 std::vector<HWNDMessageFilter*> filters_; |
| 75 WNDPROC original_wnd_proc_; | 74 WNDPROC original_wnd_proc_; |
| 76 ui::ViewProp prop_; | 75 ui::ViewProp prop_; |
| 77 | 76 |
| 78 DISALLOW_COPY_AND_ASSIGN(HWNDSubclass); | 77 DISALLOW_COPY_AND_ASSIGN(HWNDSubclass); |
| 79 }; | 78 }; |
| 80 | 79 |
| 81 } // namespace ui | 80 } // namespace ui |
| 82 | 81 |
| 83 #endif // UI_BASE_WIN_HWND_SUBCLASS_H_ | 82 #endif // UI_BASE_WIN_HWND_SUBCLASS_H_ |
| OLD | NEW |