| Index: chrome/browser/ui/search/search_model.h
|
| diff --git a/chrome/browser/ui/search/search_model.h b/chrome/browser/ui/search/search_model.h
|
| index e7e701e3e7004b5f4cd09bd173fa9bf5283d1ad4..3e97cf2a981e95263101a45e9ae29d702733ab1d 100644
|
| --- a/chrome/browser/ui/search/search_model.h
|
| +++ b/chrome/browser/ui/search/search_model.h
|
| @@ -24,7 +24,9 @@
|
| public:
|
| struct State {
|
| State();
|
| - State(const SearchMode& mode, InstantSupportState instant_support);
|
| + State(const SearchMode& mode,
|
| + InstantSupportState instant_support,
|
| + bool voice_search_supported);
|
|
|
| bool operator==(const State& rhs) const;
|
|
|
| @@ -33,6 +35,9 @@
|
|
|
| // Does the current page support Instant?
|
| InstantSupportState instant_support;
|
| +
|
| + // Does the current page support voice search?
|
| + bool voice_search_supported;
|
| };
|
|
|
| SearchModel();
|
| @@ -59,6 +64,13 @@
|
| return state_.instant_support;
|
| }
|
|
|
| + // Sets the page voice search support state. Change notifications are sent to
|
| + // observers.
|
| + void SetVoiceSearchSupported(bool supported);
|
| +
|
| + // Gets the voice search support state of the page.
|
| + bool voice_search_supported() const { return state_.voice_search_supported; }
|
| +
|
| // Add and remove observers.
|
| void AddObserver(SearchModelObserver* observer);
|
| void RemoveObserver(SearchModelObserver* observer);
|
|
|