| 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_controller.h" | 10 #include "content/public/browser/navigation_controller.h" |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 Send(new ChromeViewMsg_SearchBoxSetDisplayInstantResults( | 111 Send(new ChromeViewMsg_SearchBoxSetDisplayInstantResults( |
| 112 routing_id(), display_instant_results)); | 112 routing_id(), display_instant_results)); |
| 113 } | 113 } |
| 114 | 114 |
| 115 void InstantPage::FocusChanged(OmniboxFocusState state, | 115 void InstantPage::FocusChanged(OmniboxFocusState state, |
| 116 OmniboxFocusChangeReason reason) { | 116 OmniboxFocusChangeReason reason) { |
| 117 Send(new ChromeViewMsg_SearchBoxFocusChanged(routing_id(), state, reason)); | 117 Send(new ChromeViewMsg_SearchBoxFocusChanged(routing_id(), state, reason)); |
| 118 } | 118 } |
| 119 | 119 |
| 120 void InstantPage::SendMostVisitedItems( | 120 void InstantPage::SendMostVisitedItems( |
| 121 const std::vector<InstantMostVisitedItemIDPair>& items) { | 121 const std::vector<InstantMostVisitedItem>& items) { |
| 122 Send(new ChromeViewMsg_SearchBoxMostVisitedItemsChanged(routing_id(), items)); | 122 Send(new ChromeViewMsg_SearchBoxMostVisitedItemsChanged(routing_id(), items)); |
| 123 } | 123 } |
| 124 | 124 |
| 125 void InstantPage::ToggleVoiceSearch() { | 125 void InstantPage::ToggleVoiceSearch() { |
| 126 Send(new ChromeViewMsg_SearchBoxToggleVoiceSearch(routing_id())); | 126 Send(new ChromeViewMsg_SearchBoxToggleVoiceSearch(routing_id())); |
| 127 } | 127 } |
| 128 | 128 |
| 129 InstantPage::InstantPage(Delegate* delegate, const std::string& instant_url) | 129 InstantPage::InstantPage(Delegate* delegate, const std::string& instant_url) |
| 130 : delegate_(delegate), | 130 : delegate_(delegate), |
| 131 instant_url_(instant_url), | 131 instant_url_(instant_url), |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 delegate_->DeleteMostVisitedItem(url); | 311 delegate_->DeleteMostVisitedItem(url); |
| 312 } | 312 } |
| 313 | 313 |
| 314 void InstantPage::OnUndoMostVisitedDeletion(const GURL& url) { | 314 void InstantPage::OnUndoMostVisitedDeletion(const GURL& url) { |
| 315 delegate_->UndoMostVisitedDeletion(url); | 315 delegate_->UndoMostVisitedDeletion(url); |
| 316 } | 316 } |
| 317 | 317 |
| 318 void InstantPage::OnUndoAllMostVisitedDeletions() { | 318 void InstantPage::OnUndoAllMostVisitedDeletions() { |
| 319 delegate_->UndoAllMostVisitedDeletions(); | 319 delegate_->UndoAllMostVisitedDeletions(); |
| 320 } | 320 } |
| OLD | NEW |