Upstream version 11.40.271.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / ui / app_list / search / search_resource_manager.h
1 // Copyright 2014 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_SEARCH_SEARCH_RESOURCE_MANAGER_H_
6 #define CHROME_BROWSER_UI_APP_LIST_SEARCH_SEARCH_RESOURCE_MANAGER_H_
7
8 #include "ui/app_list/speech_ui_model_observer.h"
9
10 class Profile;
11
12 namespace app_list {
13
14 class SearchBoxModel;
15 class SpeechUIModel;
16
17 // Manages the strings and assets of the app-list search box.
18 class SearchResourceManager : public SpeechUIModelObserver {
19  public:
20   SearchResourceManager(Profile* profile,
21                         SearchBoxModel* search_box,
22                         SpeechUIModel* speech_ui);
23   ~SearchResourceManager() override;
24
25  private:
26   // SpeechUIModelObserver overrides:
27   void OnSpeechRecognitionStateChanged(
28       SpeechRecognitionState new_state) override;
29
30   SearchBoxModel* search_box_;
31   SpeechUIModel* speech_ui_;
32
33   DISALLOW_COPY_AND_ASSIGN(SearchResourceManager);
34 };
35
36 }  // namespace app_list
37
38 #endif  // CHROME_BROWSER_UI_APP_LIST_SEARCH_SEARCH_RESOURCE_MANAGER_H_