OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_MENU_WRAPPER_H_ | 5 #ifndef VIEWS_CONTROLS_MENU_MENU_WRAPPER_H_ |
6 #define VIEWS_CONTROLS_MENU_MENU_WRAPPER_H_ | 6 #define VIEWS_CONTROLS_MENU_MENU_WRAPPER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "gfx/native_widget_types.h" | 9 #include "ui/gfx/native_widget_types.h" |
10 | 10 |
11 namespace gfx { | 11 namespace gfx { |
12 class Point; | 12 class Point; |
13 } | 13 } |
14 | 14 |
15 namespace views { | 15 namespace views { |
16 | 16 |
17 class Menu2; | 17 class Menu2; |
18 | 18 |
19 // An interface for clients that want a notification when a menu is opened. | 19 // An interface for clients that want a notification when a menu is opened. |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 // Sets the minimum width of the menu. | 67 // Sets the minimum width of the menu. |
68 virtual void SetMinimumWidth(int width) = 0; | 68 virtual void SetMinimumWidth(int width) = 0; |
69 | 69 |
70 // Creates the appropriate instance of this wrapper for the current platform. | 70 // Creates the appropriate instance of this wrapper for the current platform. |
71 static MenuWrapper* CreateWrapper(Menu2* menu); | 71 static MenuWrapper* CreateWrapper(Menu2* menu); |
72 }; | 72 }; |
73 | 73 |
74 } // namespace views | 74 } // namespace views |
75 | 75 |
76 #endif // VIEWS_CONTROLS_MENU_MENU_WRAPPER_H_ | 76 #endif // VIEWS_CONTROLS_MENU_MENU_WRAPPER_H_ |
OLD | NEW |