blob: 8594f794b84c91bf03ab3dc64eeed8792fbcc7bc [file] [log] [blame]
// 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_