| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/search/instant_page.h" | 5 #include "chrome/browser/ui/search/instant_page.h" |
| 6 | 6 |
| 7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
| 8 #include "chrome/common/render_messages.h" | 8 #include "chrome/common/render_messages.h" |
| 9 #include "chrome/common/url_constants.h" | 9 #include "chrome/common/url_constants.h" |
| 10 #include "content/public/browser/navigation_details.h" | 10 #include "content/public/browser/navigation_details.h" |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 | 71 |
| 72 void InstantPage::SendAutocompleteResults( | 72 void InstantPage::SendAutocompleteResults( |
| 73 const std::vector<InstantAutocompleteResult>& results) { | 73 const std::vector<InstantAutocompleteResult>& results) { |
| 74 Send(new ChromeViewMsg_SearchBoxAutocompleteResults(routing_id(), results)); | 74 Send(new ChromeViewMsg_SearchBoxAutocompleteResults(routing_id(), results)); |
| 75 } | 75 } |
| 76 | 76 |
| 77 void InstantPage::UpOrDownKeyPressed(int count) { | 77 void InstantPage::UpOrDownKeyPressed(int count) { |
| 78 Send(new ChromeViewMsg_SearchBoxUpOrDownKeyPressed(routing_id(), count)); | 78 Send(new ChromeViewMsg_SearchBoxUpOrDownKeyPressed(routing_id(), count)); |
| 79 } | 79 } |
| 80 | 80 |
| 81 void InstantPage::EscKeyPressed() { |
| 82 Send(new ChromeViewMsg_SearchBoxEscKeyPressed(routing_id())); |
| 83 } |
| 84 |
| 81 void InstantPage::CancelSelection(const string16& user_text, | 85 void InstantPage::CancelSelection(const string16& user_text, |
| 82 size_t selection_start, | 86 size_t selection_start, |
| 83 size_t selection_end, | 87 size_t selection_end, |
| 84 bool verbatim) { | 88 bool verbatim) { |
| 85 Send(new ChromeViewMsg_SearchBoxCancelSelection( | 89 Send(new ChromeViewMsg_SearchBoxCancelSelection( |
| 86 routing_id(), user_text, verbatim, selection_start, selection_end)); | 90 routing_id(), user_text, verbatim, selection_start, selection_end)); |
| 87 } | 91 } |
| 88 | 92 |
| 89 void InstantPage::SendThemeBackgroundInfo( | 93 void InstantPage::SendThemeBackgroundInfo( |
| 90 const ThemeBackgroundInfo& theme_info) { | 94 const ThemeBackgroundInfo& theme_info) { |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 delegate_->DeleteMostVisitedItem(restricted_id); | 278 delegate_->DeleteMostVisitedItem(restricted_id); |
| 275 } | 279 } |
| 276 | 280 |
| 277 void InstantPage::OnUndoMostVisitedDeletion(InstantRestrictedID restricted_id) { | 281 void InstantPage::OnUndoMostVisitedDeletion(InstantRestrictedID restricted_id) { |
| 278 delegate_->UndoMostVisitedDeletion(restricted_id); | 282 delegate_->UndoMostVisitedDeletion(restricted_id); |
| 279 } | 283 } |
| 280 | 284 |
| 281 void InstantPage::OnUndoAllMostVisitedDeletions() { | 285 void InstantPage::OnUndoAllMostVisitedDeletions() { |
| 282 delegate_->UndoAllMostVisitedDeletions(); | 286 delegate_->UndoAllMostVisitedDeletions(); |
| 283 } | 287 } |
| OLD | NEW |