summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/bookmark_context_menu_gtk.cc
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-25 00:35:35 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-25 00:35:35 +0000
commitb6d9749b1f5ac0001432fe56eadacbf8808ccca9 (patch)
tree46cde6690df9b6b4093d627869a427d5673b7c09 /chrome/browser/gtk/bookmark_context_menu_gtk.cc
parent546ddd17b101f5a18e4cd55485378de9f6eea1c3 (diff)
downloadchromium_src-b6d9749b1f5ac0001432fe56eadacbf8808ccca9.zip
chromium_src-b6d9749b1f5ac0001432fe56eadacbf8808ccca9.tar.gz
chromium_src-b6d9749b1f5ac0001432fe56eadacbf8808ccca9.tar.bz2
Fork bookmark context menu logic across platforms. There's too much crazy stuff going on here, I can't begin to unravel it on more than one platform at a time.
TBR=sky BUG=none TEST=none Review URL: http://codereview.chromium.org/146125 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19207 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/bookmark_context_menu_gtk.cc')
-rw-r--r--chrome/browser/gtk/bookmark_context_menu_gtk.cc31
1 files changed, 31 insertions, 0 deletions
diff --git a/chrome/browser/gtk/bookmark_context_menu_gtk.cc b/chrome/browser/gtk/bookmark_context_menu_gtk.cc
new file mode 100644
index 0000000..fc8f73b
--- /dev/null
+++ b/chrome/browser/gtk/bookmark_context_menu_gtk.cc
@@ -0,0 +1,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));
+}