Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(104)

Side by Side Diff: chrome/browser/ui/app_list/start_page_service.h

Issue 907833002: Hide experimental app list Google logo and custom launcher page when search engine is not Google. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@update_app_list_bg_color
Patch Set: address comment, add service dependency Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 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 #ifndef CHROME_BROWSER_UI_APP_LIST_START_PAGE_SERVICE_H_ 5 #ifndef CHROME_BROWSER_UI_APP_LIST_START_PAGE_SERVICE_H_
6 #define CHROME_BROWSER_UI_APP_LIST_START_PAGE_SERVICE_H_ 6 #define CHROME_BROWSER_UI_APP_LIST_START_PAGE_SERVICE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 void WebUILoaded(); 70 void WebUILoaded();
71 71
72 // Returns true if the hotword is enabled in the app-launcher. 72 // Returns true if the hotword is enabled in the app-launcher.
73 bool HotwordEnabled(); 73 bool HotwordEnabled();
74 74
75 // They return essentially the same web contents but might return NULL when 75 // They return essentially the same web contents but might return NULL when
76 // some flag disables the feature. 76 // some flag disables the feature.
77 content::WebContents* GetStartPageContents(); 77 content::WebContents* GetStartPageContents();
78 content::WebContents* GetSpeechRecognitionContents(); 78 content::WebContents* GetSpeechRecognitionContents();
79 79
80 void set_search_engine_is_google(bool search_engine_is_google) {
81 search_engine_is_google_ = search_engine_is_google;
82 }
80 Profile* profile() { return profile_; } 83 Profile* profile() { return profile_; }
81 SpeechRecognitionState state() { return state_; } 84 SpeechRecognitionState state() { return state_; }
82 85
83 // Overridden from app_list::SpeechRecognizerDelegate: 86 // Overridden from app_list::SpeechRecognizerDelegate:
84 void OnSpeechResult(const base::string16& query, bool is_final) override; 87 void OnSpeechResult(const base::string16& query, bool is_final) override;
85 void OnSpeechSoundLevelChanged(int16_t level) override; 88 void OnSpeechSoundLevelChanged(int16_t level) override;
86 void OnSpeechRecognitionStateChanged( 89 void OnSpeechRecognitionStateChanged(
87 SpeechRecognitionState new_state) override; 90 SpeechRecognitionState new_state) override;
88 void GetSpeechAuthParameters(std::string* auth_scope, 91 void GetSpeechAuthParameters(std::string* auth_scope,
89 std::string* auth_token) override; 92 std::string* auth_token) override;
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 scoped_ptr<SpeechRecognizer> speech_recognizer_; 163 scoped_ptr<SpeechRecognizer> speech_recognizer_;
161 scoped_ptr<SpeechAuthHelper> speech_auth_helper_; 164 scoped_ptr<SpeechAuthHelper> speech_auth_helper_;
162 165
163 bool network_available_; 166 bool network_available_;
164 bool microphone_available_; 167 bool microphone_available_;
165 #if defined(OS_CHROMEOS) 168 #if defined(OS_CHROMEOS)
166 scoped_ptr<AudioStatus> audio_status_; 169 scoped_ptr<AudioStatus> audio_status_;
167 #endif 170 #endif
168 scoped_ptr<NetworkChangeObserver> network_change_observer_; 171 scoped_ptr<NetworkChangeObserver> network_change_observer_;
169 172
173 bool search_engine_is_google_;
170 scoped_ptr<net::URLFetcher> doodle_fetcher_; 174 scoped_ptr<net::URLFetcher> doodle_fetcher_;
171 175
172 base::WeakPtrFactory<StartPageService> weak_factory_; 176 base::WeakPtrFactory<StartPageService> weak_factory_;
173 177
174 DISALLOW_COPY_AND_ASSIGN(StartPageService); 178 DISALLOW_COPY_AND_ASSIGN(StartPageService);
175 }; 179 };
176 180
177 } // namespace app_list 181 } // namespace app_list
178 182
179 #endif // CHROME_BROWSER_UI_APP_LIST_START_PAGE_SERVICE_H_ 183 #endif // CHROME_BROWSER_UI_APP_LIST_START_PAGE_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/app_list_view_delegate.cc ('k') | chrome/browser/ui/app_list/start_page_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698