| 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 "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/string_util.h" | 9 #include "base/strings/string_util.h" |
| 10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
| 11 #include "chrome/app/chrome_command_ids.h" | 11 #include "chrome/app/chrome_command_ids.h" |
| 12 #include "chrome/browser/autocomplete/autocomplete_input.h" | 12 #include "chrome/browser/autocomplete/autocomplete_input.h" |
| 13 #include "chrome/browser/autocomplete/autocomplete_match.h" | 13 #include "chrome/browser/autocomplete/autocomplete_match.h" |
| 14 #include "chrome/browser/bookmarks/bookmark_node_data.h" | 14 #include "chrome/browser/bookmarks/bookmark_node_data.h" |
| 15 #include "chrome/browser/command_updater.h" | 15 #include "chrome/browser/command_updater.h" |
| 16 #include "chrome/browser/search/search.h" | 16 #include "chrome/browser/search/search.h" |
| 17 #include "chrome/browser/ui/omnibox/omnibox_edit_controller.h" | 17 #include "chrome/browser/ui/omnibox/omnibox_edit_controller.h" |
| 18 #include "chrome/browser/ui/omnibox/omnibox_edit_model.h" | 18 #include "chrome/browser/ui/omnibox/omnibox_edit_model.h" |
| 19 #include "chrome/browser/ui/omnibox/omnibox_popup_model.h" | 19 #include "chrome/browser/ui/omnibox/omnibox_popup_model.h" |
| (...skipping 862 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 882 const string16 text(GetClipboardText()); | 882 const string16 text(GetClipboardText()); |
| 883 if (!text.empty()) { | 883 if (!text.empty()) { |
| 884 // Record this paste, so we can do different behavior. | 884 // Record this paste, so we can do different behavior. |
| 885 model()->on_paste(); | 885 model()->on_paste(); |
| 886 // Force a Paste operation to trigger the text_changed code in | 886 // Force a Paste operation to trigger the text_changed code in |
| 887 // OnAfterPossibleChange(), even if identical contents are pasted. | 887 // OnAfterPossibleChange(), even if identical contents are pasted. |
| 888 text_before_change_.clear(); | 888 text_before_change_.clear(); |
| 889 ReplaceSelection(text); | 889 ReplaceSelection(text); |
| 890 } | 890 } |
| 891 } | 891 } |
| OLD | NEW |