| 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/search/search_model.h" | 5 #include "chrome/browser/ui/search/search_model.h" |
| 6 | 6 |
| 7 #include "chrome/browser/search/search.h" | |
| 8 #include "chrome/browser/ui/search/search_model_observer.h" | 7 #include "chrome/browser/ui/search/search_model_observer.h" |
| 8 #include "components/search/search.h" |
| 9 | 9 |
| 10 SearchModel::State::State() | 10 SearchModel::State::State() |
| 11 : instant_support(INSTANT_SUPPORT_UNKNOWN), | 11 : instant_support(INSTANT_SUPPORT_UNKNOWN), |
| 12 voice_search_supported(false) { | 12 voice_search_supported(false) { |
| 13 } | 13 } |
| 14 | 14 |
| 15 SearchModel::State::State(const SearchMode& mode, | 15 SearchModel::State::State(const SearchMode& mode, |
| 16 InstantSupportState instant_support, | 16 InstantSupportState instant_support, |
| 17 bool voice_search_supported) | 17 bool voice_search_supported) |
| 18 : mode(mode), | 18 : mode(mode), |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 ModelChanged(old_state, state_)); | 90 ModelChanged(old_state, state_)); |
| 91 } | 91 } |
| 92 | 92 |
| 93 void SearchModel::AddObserver(SearchModelObserver* observer) { | 93 void SearchModel::AddObserver(SearchModelObserver* observer) { |
| 94 observers_.AddObserver(observer); | 94 observers_.AddObserver(observer); |
| 95 } | 95 } |
| 96 | 96 |
| 97 void SearchModel::RemoveObserver(SearchModelObserver* observer) { | 97 void SearchModel::RemoveObserver(SearchModelObserver* observer) { |
| 98 observers_.RemoveObserver(observer); | 98 observers_.RemoveObserver(observer); |
| 99 } | 99 } |
| OLD | NEW |