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