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_VIEWS_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_ | 5 #ifndef UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_ |
6 #define UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_ | 6 #define UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_ |
7 | 7 |
8 #include "ui/views/views_export.h" | 8 #include "ui/views/views_export.h" |
9 | 9 |
10 namespace gfx { | 10 namespace gfx { |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 // Like PreHandleMSG, but called after HWNDMessageHandler's built-in handling | 226 // Like PreHandleMSG, but called after HWNDMessageHandler's built-in handling |
227 // has run and after DefWindowProc. | 227 // has run and after DefWindowProc. |
228 virtual void PostHandleMSG(UINT message, | 228 virtual void PostHandleMSG(UINT message, |
229 WPARAM w_param, | 229 WPARAM w_param, |
230 LPARAM l_param) = 0; | 230 LPARAM l_param) = 0; |
231 | 231 |
232 // Called when a scroll event is received. Returns true if the event was | 232 // Called when a scroll event is received. Returns true if the event was |
233 // handled by the delegate. | 233 // handled by the delegate. |
234 virtual bool HandleScrollEvent(const ui::ScrollEvent& event) = 0; | 234 virtual bool HandleScrollEvent(const ui::ScrollEvent& event) = 0; |
235 | 235 |
| 236 // Called when the window size is about to change. |
| 237 virtual void HandleWindowSizeChanging() = 0; |
| 238 |
236 protected: | 239 protected: |
237 virtual ~HWNDMessageHandlerDelegate() {} | 240 virtual ~HWNDMessageHandlerDelegate() {} |
238 }; | 241 }; |
239 | 242 |
240 } // namespace views | 243 } // namespace views |
241 | 244 |
242 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_ | 245 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_ |
OLD | NEW |