summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/gtk/global_menu_owner.h
blob: 8594f794b84c91bf03ab3dc64eeed8792fbcc7bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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_