| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_ | 5 #ifndef VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_ |
| 6 #define VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_ | 6 #define VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 namespace gfx { | 9 namespace gfx { |
| 10 class Canvas; | 10 class Canvas; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 // Called when the NativeWidget changed size to |new_size|. | 34 // Called when the NativeWidget changed size to |new_size|. |
| 35 virtual void OnSizeChanged(const gfx::Size& new_size) = 0; | 35 virtual void OnSizeChanged(const gfx::Size& new_size) = 0; |
| 36 | 36 |
| 37 // Returns true if the delegate has a FocusManager. | 37 // Returns true if the delegate has a FocusManager. |
| 38 virtual bool HasFocusManager() const = 0; | 38 virtual bool HasFocusManager() const = 0; |
| 39 | 39 |
| 40 // Paints the rootview in the canvas. This will also refresh the compositor | 40 // Paints the rootview in the canvas. This will also refresh the compositor |
| 41 // tree if necessary when accelerated painting is enabled. | 41 // tree if necessary when accelerated painting is enabled. |
| 42 virtual void OnNativeWidgetPaint(gfx::Canvas* canvas) = 0; | 42 virtual void OnNativeWidgetPaint(gfx::Canvas* canvas) = 0; |
| 43 |
| 44 // MouseEvent handlers. |
| 45 virtual bool OnMouseEvent(const MouseEvent& event) = 0; |
| 46 virtual void OnMouseCaptureLost() = 0; |
| 43 }; | 47 }; |
| 44 | 48 |
| 45 } // namespace internal | 49 } // namespace internal |
| 46 } // namespace views | 50 } // namespace views |
| 47 | 51 |
| 48 #endif // VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_ | 52 #endif // VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_ |
| OLD | NEW |