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_CONTROLS_MENU_NATIVE_MENU_HOST_DELEGATE_H_ | 5 #ifndef VIEWS_CONTROLS_MENU_NATIVE_MENU_HOST_DELEGATE_H_ |
6 #define VIEWS_CONTROLS_MENU_NATIVE_MENU_HOST_DELEGATE_H_ | 6 #define VIEWS_CONTROLS_MENU_NATIVE_MENU_HOST_DELEGATE_H_ |
7 | 7 |
8 namespace views { | 8 namespace views { |
| 9 |
9 class MenuHost; | 10 class MenuHost; |
10 class RootView; | 11 |
11 namespace internal { | 12 namespace internal { |
| 13 |
12 class NativeWidgetDelegate; | 14 class NativeWidgetDelegate; |
13 | 15 |
14 class NativeMenuHostDelegate { | 16 class NativeMenuHostDelegate { |
15 public: | 17 public: |
16 virtual ~NativeMenuHostDelegate() {} | 18 virtual ~NativeMenuHostDelegate() {} |
17 | 19 |
18 // Called when the NativeMenuHost is being destroyed. | 20 // Called when the NativeMenuHost is being destroyed. |
19 virtual void OnNativeMenuHostDestroy() = 0; | 21 virtual void OnNativeMenuHostDestroy() = 0; |
20 | 22 |
21 // Called when the NativeMenuHost is losing input capture. | 23 // Called when the NativeMenuHost is losing input capture. |
22 virtual void OnNativeMenuHostCancelCapture() = 0; | 24 virtual void OnNativeMenuHostCancelCapture() = 0; |
23 | 25 |
24 virtual NativeWidgetDelegate* AsNativeWidgetDelegate() = 0; | 26 virtual NativeWidgetDelegate* AsNativeWidgetDelegate() = 0; |
25 }; | 27 }; |
26 | 28 |
27 } // namespace internal | 29 } // namespace internal |
28 } // namespace views | 30 } // namespace views |
29 | 31 |
30 #endif // VIEWS_CONTROLS_MENU_NATIVE_MENU_HOST_DELEGATE_H_ | 32 #endif // VIEWS_CONTROLS_MENU_NATIVE_MENU_HOST_DELEGATE_H_ |
31 | |
OLD | NEW |