| 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/autocomplete/autocomplete_edit_view_win.h" | 5 #include "chrome/browser/autocomplete/autocomplete_edit_view_win.h" |
| 6 | 6 |
| 7 #include <locale> | 7 #include <locale> |
| 8 | 8 |
| 9 #include "app/clipboard/clipboard.h" | 9 #include "app/clipboard/clipboard.h" |
| 10 #include "app/clipboard/scoped_clipboard_writer.h" | 10 #include "app/clipboard/scoped_clipboard_writer.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 #include "chrome/browser/search_engines/template_url.h" | 36 #include "chrome/browser/search_engines/template_url.h" |
| 37 #include "chrome/browser/search_engines/template_url_model.h" | 37 #include "chrome/browser/search_engines/template_url_model.h" |
| 38 #include "chrome/browser/tab_contents/tab_contents.h" | 38 #include "chrome/browser/tab_contents/tab_contents.h" |
| 39 #include "chrome/browser/views/location_bar_view.h" | 39 #include "chrome/browser/views/location_bar_view.h" |
| 40 #include "chrome/common/gfx/utils.h" | 40 #include "chrome/common/gfx/utils.h" |
| 41 #include "chrome/common/notification_service.h" | 41 #include "chrome/common/notification_service.h" |
| 42 #include "googleurl/src/url_util.h" | 42 #include "googleurl/src/url_util.h" |
| 43 #include "grit/generated_resources.h" | 43 #include "grit/generated_resources.h" |
| 44 #include "net/base/escape.h" | 44 #include "net/base/escape.h" |
| 45 #include "skia/ext/skia_utils_win.h" | 45 #include "skia/ext/skia_utils_win.h" |
| 46 #include "views/controls/menu/menu_2.h" | |
| 47 #include "views/drag_utils.h" | 46 #include "views/drag_utils.h" |
| 48 #include "views/focus/focus_util_win.h" | 47 #include "views/focus/focus_util_win.h" |
| 49 #include "views/widget/widget.h" | 48 #include "views/widget/widget.h" |
| 50 | 49 |
| 51 #pragma comment(lib, "oleacc.lib") // Needed for accessibility support. | 50 #pragma comment(lib, "oleacc.lib") // Needed for accessibility support. |
| 52 | 51 |
| 53 /////////////////////////////////////////////////////////////////////////////// | 52 /////////////////////////////////////////////////////////////////////////////// |
| 54 // AutocompleteEditModel | 53 // AutocompleteEditModel |
| 55 | 54 |
| 56 namespace { | 55 namespace { |
| (...skipping 2367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2424 context_menu_contents_->AddItemWithStringId(IDS_PASTE_AND_GO, | 2423 context_menu_contents_->AddItemWithStringId(IDS_PASTE_AND_GO, |
| 2425 IDS_PASTE_AND_GO); | 2424 IDS_PASTE_AND_GO); |
| 2426 context_menu_contents_->AddSeparator(); | 2425 context_menu_contents_->AddSeparator(); |
| 2427 context_menu_contents_->AddItemWithStringId(IDS_SELECT_ALL, IDS_SELECT_ALL); | 2426 context_menu_contents_->AddItemWithStringId(IDS_SELECT_ALL, IDS_SELECT_ALL); |
| 2428 context_menu_contents_->AddSeparator(); | 2427 context_menu_contents_->AddSeparator(); |
| 2429 context_menu_contents_->AddItemWithStringId(IDS_EDIT_SEARCH_ENGINES, | 2428 context_menu_contents_->AddItemWithStringId(IDS_EDIT_SEARCH_ENGINES, |
| 2430 IDS_EDIT_SEARCH_ENGINES); | 2429 IDS_EDIT_SEARCH_ENGINES); |
| 2431 } | 2430 } |
| 2432 context_menu_.reset(new views::Menu2(context_menu_contents_.get())); | 2431 context_menu_.reset(new views::Menu2(context_menu_contents_.get())); |
| 2433 } | 2432 } |
| OLD | NEW |