| OLD | NEW |
| 1 // #ifndef CHROME_VIEWS_NATIVE_CONTROL_WIN_H_// Copyright (c) 2009 The Chromium
Authors. All rights reserved. Use of this | 1 // #ifndef CHROME_VIEWS_NATIVE_CONTROL_WIN_H_// Copyright (c) 2009 The Chromium
Authors. All rights reserved. Use of this |
| 2 // source code is governed by a BSD-style license that can be found in the | 2 // source code is governed by a BSD-style license that can be found in the |
| 3 // LICENSE file. | 3 // LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/views/controls/native_control_win.h" | 5 #include "chrome/views/controls/native_control_win.h" |
| 6 | 6 |
| 7 #include "app/l10n_util_win.h" |
| 7 #include "base/logging.h" | 8 #include "base/logging.h" |
| 8 #include "base/win_util.h" | 9 #include "base/win_util.h" |
| 9 #include "chrome/common/l10n_util_win.h" | |
| 10 | 10 |
| 11 namespace views { | 11 namespace views { |
| 12 | 12 |
| 13 // static | 13 // static |
| 14 const wchar_t* NativeControlWin::kNativeControlWinKey = | 14 const wchar_t* NativeControlWin::kNativeControlWinKey = |
| 15 L"__NATIVE_CONTROL_WIN__"; | 15 L"__NATIVE_CONTROL_WIN__"; |
| 16 | 16 |
| 17 static const wchar_t* kNativeControlOriginalWndProcKey = | 17 static const wchar_t* kNativeControlOriginalWndProcKey = |
| 18 L"__NATIVE_CONTROL_ORIGINAL_WNDPROC__"; | 18 L"__NATIVE_CONTROL_ORIGINAL_WNDPROC__"; |
| 19 | 19 |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 win_util::SetWindowProc(window, native_control->original_wndproc_); | 192 win_util::SetWindowProc(window, native_control->original_wndproc_); |
| 193 RemoveProp(window, kNativeControlWinKey); | 193 RemoveProp(window, kNativeControlWinKey); |
| 194 TRACK_HWND_DESTRUCTION(window); | 194 TRACK_HWND_DESTRUCTION(window); |
| 195 } | 195 } |
| 196 | 196 |
| 197 return CallWindowProc(native_control->original_wndproc_, window, message, | 197 return CallWindowProc(native_control->original_wndproc_, window, message, |
| 198 w_param, l_param); | 198 w_param, l_param); |
| 199 } | 199 } |
| 200 | 200 |
| 201 } // namespace views | 201 } // namespace views |
| OLD | NEW |