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 #include "views/views_api.h" | 9 #include "views/views_export.h" |
10 | 10 |
11 namespace gfx { | 11 namespace gfx { |
12 class Canvas; | 12 class Canvas; |
13 class Size; | 13 class Size; |
14 } | 14 } |
15 | 15 |
16 #if defined(TOUCH_UI) | 16 #if defined(TOUCH_UI) |
17 namespace ui { | 17 namespace ui { |
18 enum TouchStatus; | 18 enum TouchStatus; |
19 } | 19 } |
20 #endif | 20 #endif |
21 | 21 |
22 namespace views { | 22 namespace views { |
23 namespace internal { | 23 namespace internal { |
24 | 24 |
25 //////////////////////////////////////////////////////////////////////////////// | 25 //////////////////////////////////////////////////////////////////////////////// |
26 // NativeWidgetDelegate | 26 // NativeWidgetDelegate |
27 // | 27 // |
28 // An interface implemented by the object that handles events sent by a | 28 // An interface implemented by the object that handles events sent by a |
29 // NativeWidget implementation. | 29 // NativeWidget implementation. |
30 // | 30 // |
31 class VIEWS_API NativeWidgetDelegate { | 31 class VIEWS_EXPORT NativeWidgetDelegate { |
32 public: | 32 public: |
33 virtual ~NativeWidgetDelegate() {} | 33 virtual ~NativeWidgetDelegate() {} |
34 | 34 |
35 // Returns true if the window is modal. | 35 // Returns true if the window is modal. |
36 virtual bool IsModal() const = 0; | 36 virtual bool IsModal() const = 0; |
37 | 37 |
38 // Returns true if the window is a dialog box. | 38 // Returns true if the window is a dialog box. |
39 virtual bool IsDialogBox() const = 0; | 39 virtual bool IsDialogBox() const = 0; |
40 | 40 |
41 // Returns true if the window can be activated. | 41 // Returns true if the window can be activated. |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 | 101 |
102 // | 102 // |
103 virtual Widget* AsWidget() = 0; | 103 virtual Widget* AsWidget() = 0; |
104 virtual const Widget* AsWidget() const = 0; | 104 virtual const Widget* AsWidget() const = 0; |
105 }; | 105 }; |
106 | 106 |
107 } // namespace internal | 107 } // namespace internal |
108 } // namespace views | 108 } // namespace views |
109 | 109 |
110 #endif // VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_ | 110 #endif // VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_ |
OLD | NEW |