blob: bef7564d45ad00352a3d5ad64fb496ec28b433d5 [file] [log] [blame]
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_APP_LIST_SEARCH_RESULT_OBSERVER_H_
#define UI_APP_LIST_SEARCH_RESULT_OBSERVER_H_
#include "ui/app_list/app_list_export.h"
namespace app_list {
class APP_LIST_EXPORT SearchResultObserver {
public:
// Invoked when the SearchResult's icon has changed.
virtual void OnIconChanged() = 0;
// Invoked when the SearchResult's actions have changed.
virtual void OnActionsChanged() = 0;
// Invoked when the SearchResult's is_installing flag has changed.
virtual void OnIsInstallingChanged() = 0;
// Invoked when the download percentage has changed.
virtual void OnPercentDownloadedChanged() = 0;
// Invoked when the item represented by the SearchResult is installed.
virtual void OnItemInstalled() = 0;
// Invoked when the item represented by the SearchResult is uninstalled.
virtual void OnItemUninstalled() = 0;
protected:
virtual ~SearchResultObserver() {}
};
} // namespace app_list
#endif // UI_APP_LIST_SEARCH_RESULT_OBSERVER_H_