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 | 5 |
6 #ifndef VIEWS_CONTROLS_MENU_MENU_HOST_GTK_H_ | 6 #ifndef VIEWS_CONTROLS_MENU_MENU_HOST_GTK_H_ |
7 #define VIEWS_CONTROLS_MENU_MENU_HOST_GTK_H_ | 7 #define VIEWS_CONTROLS_MENU_MENU_HOST_GTK_H_ |
8 #pragma once | 8 #pragma once |
9 | 9 |
10 #include "views/controls/menu/native_menu_host.h" | 10 #include "views/controls/menu/native_menu_host.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 explicit MenuHostGtk(internal::NativeMenuHostDelegate* delegate); | 22 explicit MenuHostGtk(internal::NativeMenuHostDelegate* delegate); |
23 virtual ~MenuHostGtk(); | 23 virtual ~MenuHostGtk(); |
24 | 24 |
25 private: | 25 private: |
26 // Overridden from NativeMenuHost: | 26 // Overridden from NativeMenuHost: |
27 virtual void StartCapturing() OVERRIDE; | 27 virtual void StartCapturing() OVERRIDE; |
28 virtual NativeWidget* AsNativeWidget() OVERRIDE; | 28 virtual NativeWidget* AsNativeWidget() OVERRIDE; |
29 | 29 |
30 // Overridden from WidgetGtk: | 30 // Overridden from WidgetGtk: |
31 virtual void InitNativeWidget(const Widget::InitParams& params) OVERRIDE; | 31 virtual void InitNativeWidget(const Widget::InitParams& params) OVERRIDE; |
32 virtual RootView* CreateRootView() OVERRIDE; | |
33 virtual bool ShouldReleaseCaptureOnMouseReleased() const OVERRIDE; | |
34 virtual void ReleaseMouseCapture() OVERRIDE; | 32 virtual void ReleaseMouseCapture() OVERRIDE; |
35 virtual void OnDestroy(GtkWidget* object) OVERRIDE; | 33 virtual void OnDestroy(GtkWidget* object) OVERRIDE; |
36 virtual void HandleGtkGrabBroke() OVERRIDE; | 34 virtual void HandleGtkGrabBroke() OVERRIDE; |
37 virtual void HandleXGrabBroke() OVERRIDE; | 35 virtual void HandleXGrabBroke() OVERRIDE; |
38 | 36 |
39 // Have we done input grab? | 37 // Have we done input grab? |
40 bool did_input_grab_; | 38 bool did_input_grab_; |
41 | 39 |
42 scoped_ptr<internal::NativeMenuHostDelegate> delegate_; | 40 internal::NativeMenuHostDelegate* delegate_; |
43 | 41 |
44 DISALLOW_COPY_AND_ASSIGN(MenuHostGtk); | 42 DISALLOW_COPY_AND_ASSIGN(MenuHostGtk); |
45 }; | 43 }; |
46 | 44 |
47 } // namespace views | 45 } // namespace views |
48 | 46 |
49 #endif // VIEWS_CONTROLS_MENU_MENU_HOST_GTK_H_ | 47 #endif // VIEWS_CONTROLS_MENU_MENU_HOST_GTK_H_ |
OLD | NEW |