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

Unified Diff: chrome/browser/ui/gtk/global_menu_owner.h

Issue 7017028: Revert "Revert 85330 - GTK: Bring global menu out of about:flags." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/gtk/global_menu_bar.cc ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/global_menu_owner.h
diff --git a/chrome/browser/ui/gtk/global_menu_owner.h b/chrome/browser/ui/gtk/global_menu_owner.h
new file mode 100644
index 0000000000000000000000000000000000000000..8594f794b84c91bf03ab3dc64eeed8792fbcc7bc
--- /dev/null
+++ b/chrome/browser/ui/gtk/global_menu_owner.h
@@ -0,0 +1,21 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_GTK_GLOBAL_MENU_OWNER_H_
+#define CHROME_BROWSER_UI_GTK_GLOBAL_MENU_OWNER_H_
+
+typedef struct _GtkWidget GtkWidget;
+
+// A simple interface that states that this class will own the Init-ed GtkMenu*.
+class GlobalMenuOwner {
+ public:
+ virtual ~GlobalMenuOwner() {}
+
+ // Should take OwnedWidgetship of |menu|. |menu_item| is passed in for
+ // convenience since some some subclasses will want to listen to signals on
+ // that.
+ virtual void Init(GtkWidget* menu, GtkWidget* menu_item) = 0;
+};
+
+#endif // CHROME_BROWSER_UI_GTK_GLOBAL_MENU_OWNER_H_
« no previous file with comments | « chrome/browser/ui/gtk/global_menu_bar.cc ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698