Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / ui / app_list / test / app_list_test_view_delegate.cc
index 73b236f..44644d4 100644 (file)
@@ -53,7 +53,8 @@ AppListTestViewDelegate::AppListTestViewDelegate()
     : dismiss_count_(0),
       open_search_result_count_(0),
       test_signin_delegate_(new TestSigninDelegate),
-      model_(new AppListTestModel) {
+      model_(new AppListTestModel),
+      speech_ui_(SPEECH_RECOGNITION_OFF) {
 }
 
 AppListTestViewDelegate::~AppListTestViewDelegate() {}
@@ -88,12 +89,17 @@ void AppListTestViewDelegate::GetShortcutPathForApp(
 }
 
 void AppListTestViewDelegate::OpenSearchResult(SearchResult* result,
+                                               bool auto_launch,
                                                int event_flags) {
   ++open_search_result_count_;
 }
 
 base::TimeDelta AppListTestViewDelegate::GetAutoLaunchTimeout() {
-  return base::TimeDelta();
+  return auto_launch_timeout_;
+}
+
+void AppListTestViewDelegate::AutoLaunchCanceled() {
+  auto_launch_timeout_ = base::TimeDelta();
 }
 
 void AppListTestViewDelegate::Dismiss() {