| 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 26 matching lines...) Expand all Loading... |
| 37 #include "ui/accessibility/ax_view_state.h" | 37 #include "ui/accessibility/ax_view_state.h" |
| 38 #include "ui/aura/client/focus_client.h" | 38 #include "ui/aura/client/focus_client.h" |
| 39 #include "ui/aura/window_event_dispatcher.h" | 39 #include "ui/aura/window_event_dispatcher.h" |
| 40 #include "ui/base/clipboard/scoped_clipboard_writer.h" | 40 #include "ui/base/clipboard/scoped_clipboard_writer.h" |
| 41 #include "ui/base/dragdrop/drag_drop_types.h" | 41 #include "ui/base/dragdrop/drag_drop_types.h" |
| 42 #include "ui/base/dragdrop/os_exchange_data.h" | 42 #include "ui/base/dragdrop/os_exchange_data.h" |
| 43 #include "ui/base/ime/text_input_client.h" | 43 #include "ui/base/ime/text_input_client.h" |
| 44 #include "ui/base/ime/text_input_type.h" | 44 #include "ui/base/ime/text_input_type.h" |
| 45 #include "ui/base/l10n/l10n_util.h" | 45 #include "ui/base/l10n/l10n_util.h" |
| 46 #include "ui/base/models/simple_menu_model.h" | 46 #include "ui/base/models/simple_menu_model.h" |
| 47 #include "ui/base/resource/resource_bundle.h" | |
| 48 #include "ui/compositor/layer.h" | 47 #include "ui/compositor/layer.h" |
| 49 #include "ui/events/event.h" | 48 #include "ui/events/event.h" |
| 50 #include "ui/gfx/canvas.h" | 49 #include "ui/gfx/canvas.h" |
| 51 #include "ui/gfx/font_list.h" | 50 #include "ui/gfx/font_list.h" |
| 52 #include "ui/gfx/selection_model.h" | 51 #include "ui/gfx/selection_model.h" |
| 53 #include "ui/views/border.h" | 52 #include "ui/views/border.h" |
| 54 #include "ui/views/button_drag_utils.h" | 53 #include "ui/views/button_drag_utils.h" |
| 55 #include "ui/views/controls/textfield/textfield.h" | 54 #include "ui/views/controls/textfield/textfield.h" |
| 56 #include "ui/views/ime/input_method.h" | 55 #include "ui/views/ime/input_method.h" |
| 57 #include "ui/views/layout/fill_layout.h" | 56 #include "ui/views/layout/fill_layout.h" |
| (...skipping 983 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1041 menu_contents->InsertItemWithStringIdAt( | 1040 menu_contents->InsertItemWithStringIdAt( |
| 1042 select_all_position + 1, IDS_SHOW_URL, IDS_SHOW_URL); | 1041 select_all_position + 1, IDS_SHOW_URL, IDS_SHOW_URL); |
| 1043 } | 1042 } |
| 1044 | 1043 |
| 1045 // 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 |
| 1046 // 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 |
| 1047 // on IDC_ for now. | 1046 // on IDC_ for now. |
| 1048 menu_contents->AddItemWithStringId(IDC_EDIT_SEARCH_ENGINES, | 1047 menu_contents->AddItemWithStringId(IDC_EDIT_SEARCH_ENGINES, |
| 1049 IDS_EDIT_SEARCH_ENGINES); | 1048 IDS_EDIT_SEARCH_ENGINES); |
| 1050 } | 1049 } |
| OLD | NEW |