summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/bookmark_context_menu_gtk.cc
blob: fc8f73bda0f1fda23726af4b75f7ceefbde32579 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright (c) 2009 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.

#include "chrome/browser/gtk/bookmark_context_menu.h"

#include "app/l10n_util.h"

void BookmarkContextMenu::PopupAsContext(guint32 event_time) {
  menu_->PopupAsContext(event_time);
}

void BookmarkContextMenu::CreateMenuObject() {
  menu_.reset(new MenuGtk(this, false));
}

void BookmarkContextMenu::AppendItem(int id) {
  menu_->AppendMenuItemWithLabel(id, l10n_util::GetStringUTF8(id));
}

void BookmarkContextMenu::AppendItem(int id, int localization_id) {
  menu_->AppendMenuItemWithLabel(id, l10n_util::GetStringUTF8(localization_id));
}

void BookmarkContextMenu::AppendSeparator() {
  menu_->AppendSeparator();
}

void BookmarkContextMenu::AppendCheckboxItem(int id) {
  menu_->AppendCheckMenuItemWithLabel(id, l10n_util::GetStringUTF8(id));
}