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_MENU_HOST_WIN_H_ | 5 #ifndef VIEWS_CONTROLS_MENU_MENU_HOST_WIN_H_ |
6 #define VIEWS_CONTROLS_MENU_MENU_HOST_WIN_H_ | 6 #define VIEWS_CONTROLS_MENU_MENU_HOST_WIN_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "views/controls/menu/native_menu_host.h" | 9 #include "views/controls/menu/native_menu_host.h" |
10 #include "views/widget/widget_win.h" | 10 #include "views/widget/widget_win.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 virtual ~MenuHostWin(); | 22 virtual ~MenuHostWin(); |
23 | 23 |
24 private: | 24 private: |
25 // Overridden from NativeMenuHost: | 25 // Overridden from NativeMenuHost: |
26 virtual void StartCapturing() OVERRIDE; | 26 virtual void StartCapturing() OVERRIDE; |
27 virtual NativeWidget* AsNativeWidget() OVERRIDE; | 27 virtual NativeWidget* AsNativeWidget() OVERRIDE; |
28 | 28 |
29 // Overridden from WidgetWin: | 29 // Overridden from WidgetWin: |
30 virtual void OnDestroy() OVERRIDE; | 30 virtual void OnDestroy() OVERRIDE; |
31 virtual void OnCancelMode() OVERRIDE; | 31 virtual void OnCancelMode() OVERRIDE; |
32 virtual RootView* CreateRootView() OVERRIDE; | |
33 virtual bool ShouldReleaseCaptureOnMouseReleased() const OVERRIDE; | |
34 | 32 |
35 scoped_ptr<internal::NativeMenuHostDelegate> delegate_; | 33 internal::NativeMenuHostDelegate* delegate_; |
36 | 34 |
37 DISALLOW_COPY_AND_ASSIGN(MenuHostWin); | 35 DISALLOW_COPY_AND_ASSIGN(MenuHostWin); |
38 }; | 36 }; |
39 | 37 |
40 } // namespace views | 38 } // namespace views |
41 | 39 |
42 #endif // VIEWS_CONTROLS_MENU_MENU_HOST_WIN_H_ | 40 #endif // VIEWS_CONTROLS_MENU_MENU_HOST_WIN_H_ |
OLD | NEW |