OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/bookmarks/bookmark_context_menu.h" | 5 #include "chrome/browser/bookmarks/bookmark_context_menu.h" |
6 | 6 |
7 #include "chrome/common/l10n_util.h" | 7 #include "app/l10n_util.h" |
8 | 8 |
9 void BookmarkContextMenu::PopupAsContext(guint32 event_time) { | 9 void BookmarkContextMenu::PopupAsContext(guint32 event_time) { |
10 menu_->PopupAsContext(event_time); | 10 menu_->PopupAsContext(event_time); |
11 } | 11 } |
12 | 12 |
13 void BookmarkContextMenu::CreateMenuObject() { | 13 void BookmarkContextMenu::CreateMenuObject() { |
14 menu_.reset(new MenuGtk(this, false)); | 14 menu_.reset(new MenuGtk(this, false)); |
15 } | 15 } |
16 | 16 |
17 void BookmarkContextMenu::AppendItem(int id) { | 17 void BookmarkContextMenu::AppendItem(int id) { |
(...skipping 14 matching lines...) Expand all Loading... |
32 menu_->AppendSeparator(); | 32 menu_->AppendSeparator(); |
33 } | 33 } |
34 | 34 |
35 void BookmarkContextMenu::AppendCheckboxItem(int id) { | 35 void BookmarkContextMenu::AppendCheckboxItem(int id) { |
36 // TODO(erg): Add support for checkbox items to gtk. | 36 // TODO(erg): Add support for checkbox items to gtk. |
37 menu_->AppendMenuItemWithLabel( | 37 menu_->AppendMenuItemWithLabel( |
38 id, | 38 id, |
39 MenuGtk::ConvertAcceleratorsFromWindowsStyle( | 39 MenuGtk::ConvertAcceleratorsFromWindowsStyle( |
40 l10n_util::GetStringUTF8(id))); | 40 l10n_util::GetStringUTF8(id))); |
41 } | 41 } |
OLD | NEW |