Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(149)

Side by Side Diff: views/controls/menu/menu_host_gtk.h

Issue 7015051: Re-land: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « views/controls/menu/menu_host.cc ('k') | views/controls/menu/menu_host_gtk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « views/controls/menu/menu_host.cc ('k') | views/controls/menu/menu_host_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698