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_ |