| Index: chrome/browser/ui/views/omnibox/omnibox_view_views.cc
|
| diff --git a/chrome/browser/ui/views/omnibox/omnibox_view_views.cc b/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
|
| index b0f6ac270cce6b9eb580ecb7dfd5917835d1cf9d..48546768eed27eef43a6414f73ed37f6292896f4 100644
|
| --- a/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
|
| +++ b/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
|
| @@ -30,6 +30,7 @@
|
| #include "ui/base/dragdrop/os_exchange_data.h"
|
| #include "ui/base/ime/text_input_type.h"
|
| #include "ui/base/l10n/l10n_util.h"
|
| +#include "ui/base/models/simple_menu_model.h"
|
| #include "ui/base/resource/resource_bundle.h"
|
| #include "ui/gfx/font.h"
|
| #include "ui/gfx/render_text.h"
|
| @@ -715,6 +716,22 @@ void OmniboxViewViews::OnWriteDragData(ui::OSExchangeData* data) {
|
| data->SetURL(url, selected_text);
|
| }
|
|
|
| +void OmniboxViewViews::UpdateContextMenu(ui::SimpleMenuModel* menu_contents) {
|
| + // Minor note: We use IDC_ for command id here while the underlying textfield
|
| + // is using IDS_ for all its command ids. This is because views cannot depend
|
| + // on IDC_ for now.
|
| + menu_contents->AddItemWithStringId(IDC_EDIT_SEARCH_ENGINES,
|
| + IDS_EDIT_SEARCH_ENGINES);
|
| +}
|
| +
|
| +bool OmniboxViewViews::IsCommandIdEnabled(int command_id) const {
|
| + return command_updater_->IsCommandEnabled(command_id);
|
| +}
|
| +
|
| +void OmniboxViewViews::ExecuteCommand(int command_id) {
|
| + command_updater_->ExecuteCommand(command_id);
|
| +}
|
| +
|
| #if defined(OS_CHROMEOS)
|
| void OmniboxViewViews::CandidateWindowOpened(
|
| chromeos::input_method::InputMethodManager* manager) {
|
|
|