| 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/web_contents.h" | 10 #include "content/public/browser/web_contents.h" |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 | 69 |
| 70 void InstantPage::SendAutocompleteResults( | 70 void InstantPage::SendAutocompleteResults( |
| 71 const std::vector<InstantAutocompleteResult>& results) { | 71 const std::vector<InstantAutocompleteResult>& results) { |
| 72 Send(new ChromeViewMsg_SearchBoxAutocompleteResults(routing_id(), results)); | 72 Send(new ChromeViewMsg_SearchBoxAutocompleteResults(routing_id(), results)); |
| 73 } | 73 } |
| 74 | 74 |
| 75 void InstantPage::UpOrDownKeyPressed(int count) { | 75 void InstantPage::UpOrDownKeyPressed(int count) { |
| 76 Send(new ChromeViewMsg_SearchBoxUpOrDownKeyPressed(routing_id(), count)); | 76 Send(new ChromeViewMsg_SearchBoxUpOrDownKeyPressed(routing_id(), count)); |
| 77 } | 77 } |
| 78 | 78 |
| 79 void InstantPage::EscKeyPressed() { |
| 80 Send(new ChromeViewMsg_SearchBoxEscKeyPressed(routing_id())); |
| 81 } |
| 82 |
| 79 void InstantPage::CancelSelection(const string16& user_text, | 83 void InstantPage::CancelSelection(const string16& user_text, |
| 80 size_t selection_start, | 84 size_t selection_start, |
| 81 size_t selection_end, | 85 size_t selection_end, |
| 82 bool verbatim) { | 86 bool verbatim) { |
| 83 Send(new ChromeViewMsg_SearchBoxCancelSelection( | 87 Send(new ChromeViewMsg_SearchBoxCancelSelection( |
| 84 routing_id(), user_text, verbatim, selection_start, selection_end)); | 88 routing_id(), user_text, verbatim, selection_start, selection_end)); |
| 85 } | 89 } |
| 86 | 90 |
| 87 void InstantPage::SendThemeBackgroundInfo( | 91 void InstantPage::SendThemeBackgroundInfo( |
| 88 const ThemeBackgroundInfo& theme_info) { | 92 const ThemeBackgroundInfo& theme_info) { |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 delegate_->DeleteMostVisitedItem(restricted_id); | 255 delegate_->DeleteMostVisitedItem(restricted_id); |
| 252 } | 256 } |
| 253 | 257 |
| 254 void InstantPage::OnUndoMostVisitedDeletion(InstantRestrictedID restricted_id) { | 258 void InstantPage::OnUndoMostVisitedDeletion(InstantRestrictedID restricted_id) { |
| 255 delegate_->UndoMostVisitedDeletion(restricted_id); | 259 delegate_->UndoMostVisitedDeletion(restricted_id); |
| 256 } | 260 } |
| 257 | 261 |
| 258 void InstantPage::OnUndoAllMostVisitedDeletions() { | 262 void InstantPage::OnUndoAllMostVisitedDeletions() { |
| 259 delegate_->UndoAllMostVisitedDeletions(); | 263 delegate_->UndoAllMostVisitedDeletions(); |
| 260 } | 264 } |
| OLD | NEW |