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_H_ | 5 #ifndef VIEWS_CONTROLS_MENU_NATIVE_MENU_HOST_H_ |
6 #define VIEWS_CONTROLS_MENU_NATIVE_MENU_HOST_H_ | 6 #define VIEWS_CONTROLS_MENU_NATIVE_MENU_HOST_H_ |
7 | 7 |
8 #include "ui/gfx/native_widget_types.h" | 8 #include "ui/gfx/native_widget_types.h" |
9 | 9 |
10 namespace gfx { | 10 namespace views { |
11 class Rect; | |
12 } | |
13 | 11 |
14 namespace views { | |
15 class NativeWidget; | 12 class NativeWidget; |
| 13 |
16 namespace internal { | 14 namespace internal { |
17 class NativeMenuHostDelegate; | 15 class NativeMenuHostDelegate; |
18 } | 16 } |
19 | 17 |
20 class NativeMenuHost { | 18 class NativeMenuHost { |
21 public: | 19 public: |
22 virtual ~NativeMenuHost() {} | 20 virtual ~NativeMenuHost() {} |
23 | 21 |
24 static NativeMenuHost* CreateNativeMenuHost( | 22 static NativeMenuHost* CreateNativeMenuHost( |
25 internal::NativeMenuHostDelegate* delegate); | 23 internal::NativeMenuHostDelegate* delegate); |
26 | 24 |
27 // Starts capturing input events. | 25 // Starts capturing input events. |
28 virtual void StartCapturing() = 0; | 26 virtual void StartCapturing() = 0; |
29 | 27 |
30 virtual NativeWidget* AsNativeWidget() = 0; | 28 virtual NativeWidget* AsNativeWidget() = 0; |
31 }; | 29 }; |
32 | 30 |
33 } // namespace views | 31 } // namespace views |
34 | 32 |
35 #endif // VIEWS_CONTROLS_MENU_NATIVE_MENU_HOST_H_ | 33 #endif // VIEWS_CONTROLS_MENU_NATIVE_MENU_HOST_H_ |
OLD | NEW |