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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_APP_LIST_START_PAGE_OBSERVER_H_
6 #define CHROME_BROWSER_UI_APP_LIST_START_PAGE_OBSERVER_H_
8 #include "base/strings/string16.h"
9 #include "ui/app_list/speech_ui_model_observer.h"
13 class StartPageObserver
{
15 // Invoked when a search query happens from the start page.
16 virtual void OnSpeechResult(const base::string16
& query
, bool is_final
) = 0;
18 // Invoked when a sound level of speech recognition is changed.
19 virtual void OnSpeechSoundLevelChanged(int16 level
) = 0;
21 // Invoked when the online speech recognition state is changed.
22 virtual void OnSpeechRecognitionStateChanged(
23 SpeechRecognitionState new_state
) = 0;
26 virtual ~StartPageObserver() {}
29 } // namespace app_list
31 #endif // CHROME_BROWSER_UI_APP_LIST_START_PAGE_OBSERVER_H_