| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/ui/views/omnibox/omnibox_view_views.h" | 5 #include "chrome/browser/ui/views/omnibox/omnibox_view_views.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 #include "chrome/browser/ui/views/settings_api_bubble_helper_views.h" | 24 #include "chrome/browser/ui/views/settings_api_bubble_helper_views.h" |
| 25 #include "chrome/browser/ui/views/website_settings/website_settings_popup_view.h
" | 25 #include "chrome/browser/ui/views/website_settings/website_settings_popup_view.h
" |
| 26 #include "components/bookmarks/browser/bookmark_node_data.h" | 26 #include "components/bookmarks/browser/bookmark_node_data.h" |
| 27 #include "components/omnibox/autocomplete_input.h" | 27 #include "components/omnibox/autocomplete_input.h" |
| 28 #include "components/omnibox/autocomplete_match.h" | 28 #include "components/omnibox/autocomplete_match.h" |
| 29 #include "components/omnibox/omnibox_field_trial.h" | 29 #include "components/omnibox/omnibox_field_trial.h" |
| 30 #include "content/public/browser/web_contents.h" | 30 #include "content/public/browser/web_contents.h" |
| 31 #include "extensions/common/constants.h" | 31 #include "extensions/common/constants.h" |
| 32 #include "grit/app_locale_settings.h" | 32 #include "grit/app_locale_settings.h" |
| 33 #include "grit/generated_resources.h" | 33 #include "grit/generated_resources.h" |
| 34 #include "grit/ui_strings.h" | |
| 35 #include "net/base/escape.h" | 34 #include "net/base/escape.h" |
| 36 #include "third_party/skia/include/core/SkColor.h" | 35 #include "third_party/skia/include/core/SkColor.h" |
| 37 #include "ui/accessibility/ax_view_state.h" | 36 #include "ui/accessibility/ax_view_state.h" |
| 38 #include "ui/aura/client/focus_client.h" | 37 #include "ui/aura/client/focus_client.h" |
| 39 #include "ui/aura/window_event_dispatcher.h" | 38 #include "ui/aura/window_event_dispatcher.h" |
| 40 #include "ui/base/clipboard/scoped_clipboard_writer.h" | 39 #include "ui/base/clipboard/scoped_clipboard_writer.h" |
| 41 #include "ui/base/dragdrop/drag_drop_types.h" | 40 #include "ui/base/dragdrop/drag_drop_types.h" |
| 42 #include "ui/base/dragdrop/os_exchange_data.h" | 41 #include "ui/base/dragdrop/os_exchange_data.h" |
| 43 #include "ui/base/ime/text_input_client.h" | 42 #include "ui/base/ime/text_input_client.h" |
| 44 #include "ui/base/ime/text_input_type.h" | 43 #include "ui/base/ime/text_input_type.h" |
| 45 #include "ui/base/l10n/l10n_util.h" | 44 #include "ui/base/l10n/l10n_util.h" |
| 46 #include "ui/base/models/simple_menu_model.h" | 45 #include "ui/base/models/simple_menu_model.h" |
| 47 #include "ui/compositor/layer.h" | 46 #include "ui/compositor/layer.h" |
| 48 #include "ui/events/event.h" | 47 #include "ui/events/event.h" |
| 49 #include "ui/gfx/canvas.h" | 48 #include "ui/gfx/canvas.h" |
| 50 #include "ui/gfx/font_list.h" | 49 #include "ui/gfx/font_list.h" |
| 51 #include "ui/gfx/selection_model.h" | 50 #include "ui/gfx/selection_model.h" |
| 51 #include "ui/strings/grit/ui_strings.h" |
| 52 #include "ui/views/border.h" | 52 #include "ui/views/border.h" |
| 53 #include "ui/views/button_drag_utils.h" | 53 #include "ui/views/button_drag_utils.h" |
| 54 #include "ui/views/controls/textfield/textfield.h" | 54 #include "ui/views/controls/textfield/textfield.h" |
| 55 #include "ui/views/ime/input_method.h" | 55 #include "ui/views/ime/input_method.h" |
| 56 #include "ui/views/layout/fill_layout.h" | 56 #include "ui/views/layout/fill_layout.h" |
| 57 #include "ui/views/views_delegate.h" | 57 #include "ui/views/views_delegate.h" |
| 58 #include "ui/views/widget/widget.h" | 58 #include "ui/views/widget/widget.h" |
| 59 #include "url/gurl.h" | 59 #include "url/gurl.h" |
| 60 | 60 |
| 61 #if defined(OS_WIN) | 61 #if defined(OS_WIN) |
| (...skipping 978 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1040 menu_contents->InsertItemWithStringIdAt( | 1040 menu_contents->InsertItemWithStringIdAt( |
| 1041 select_all_position + 1, IDS_SHOW_URL, IDS_SHOW_URL); | 1041 select_all_position + 1, IDS_SHOW_URL, IDS_SHOW_URL); |
| 1042 } | 1042 } |
| 1043 | 1043 |
| 1044 // Minor note: We use IDC_ for command id here while the underlying textfield | 1044 // Minor note: We use IDC_ for command id here while the underlying textfield |
| 1045 // is using IDS_ for all its command ids. This is because views cannot depend | 1045 // is using IDS_ for all its command ids. This is because views cannot depend |
| 1046 // on IDC_ for now. | 1046 // on IDC_ for now. |
| 1047 menu_contents->AddItemWithStringId(IDC_EDIT_SEARCH_ENGINES, | 1047 menu_contents->AddItemWithStringId(IDC_EDIT_SEARCH_ENGINES, |
| 1048 IDS_EDIT_SEARCH_ENGINES); | 1048 IDS_EDIT_SEARCH_ENGINES); |
| 1049 } | 1049 } |
| OLD | NEW |