| 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_HOST_H_ | 5 #ifndef VIEWS_CONTROLS_MENU_MENU_HOST_H_ |
| 6 #define VIEWS_CONTROLS_MENU_MENU_HOST_H_ | 6 #define VIEWS_CONTROLS_MENU_MENU_HOST_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 #include "gfx/rect.h" | 10 #include "ui/gfx/rect.h" |
| 11 | 11 |
| 12 namespace views { | 12 namespace views { |
| 13 | 13 |
| 14 class SubmenuView; | 14 class SubmenuView; |
| 15 class View; | 15 class View; |
| 16 | 16 |
| 17 // SubmenuView uses a MenuHost to house the SubmenuView. MenuHost typically | 17 // SubmenuView uses a MenuHost to house the SubmenuView. MenuHost typically |
| 18 // extends the native Widget type, but is defined here for clarity of what | 18 // extends the native Widget type, but is defined here for clarity of what |
| 19 // methods SubmenuView uses. | 19 // methods SubmenuView uses. |
| 20 // | 20 // |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 // Returns the native window of the MenuHost. | 56 // Returns the native window of the MenuHost. |
| 57 virtual gfx::NativeWindow GetMenuHostWindow() = 0; | 57 virtual gfx::NativeWindow GetMenuHostWindow() = 0; |
| 58 | 58 |
| 59 protected: | 59 protected: |
| 60 virtual ~MenuHost() {} | 60 virtual ~MenuHost() {} |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 } // namespace views | 63 } // namespace views |
| 64 | 64 |
| 65 #endif // VIEWS_CONTROLS_MENU_MENU_HOST_H_ | 65 #endif // VIEWS_CONTROLS_MENU_MENU_HOST_H_ |
| OLD | NEW |