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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 // Called when a scroll event is received. Returns true if the event was | 235 // Called when a scroll event is received. Returns true if the event was |
236 // handled by the delegate. | 236 // handled by the delegate. |
237 virtual bool HandleScrollEvent(const ui::ScrollEvent& event) = 0; | 237 virtual bool HandleScrollEvent(const ui::ScrollEvent& event) = 0; |
238 | 238 |
239 // Called when the window size is about to change. | 239 // Called when the window size is about to change. |
240 virtual void HandleWindowSizeChanging() = 0; | 240 virtual void HandleWindowSizeChanging() = 0; |
241 | 241 |
242 // Called when the window size has finished changing. | 242 // Called when the window size has finished changing. |
243 virtual void HandleWindowSizeChanged() = 0; | 243 virtual void HandleWindowSizeChanged() = 0; |
244 | 244 |
| 245 // Called when the window scale factor has changed. |
| 246 virtual void HandleWindowScaleFactorChanged(float window_scale_factor) = 0; |
| 247 |
245 protected: | 248 protected: |
246 virtual ~HWNDMessageHandlerDelegate() {} | 249 virtual ~HWNDMessageHandlerDelegate() {} |
247 }; | 250 }; |
248 | 251 |
249 } // namespace views | 252 } // namespace views |
250 | 253 |
251 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_ | 254 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_ |
OLD | NEW |