Switch global error menu icon to vectorized MD asset
[chromium-blink-merge.git] / chrome / browser / ui / app_list / launcher_page_event_dispatcher.h
blobadc84259679a4bebad9c7a8267d47e38655dd21a
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.
5 #ifndef CHROME_BROWSER_UI_APP_LIST_LAUNCHER_PAGE_EVENT_DISPATCHER_H_
6 #define CHROME_BROWSER_UI_APP_LIST_LAUNCHER_PAGE_EVENT_DISPATCHER_H_
8 #include <string>
10 #include "base/macros.h"
11 #include "base/memory/scoped_ptr.h"
12 #include "extensions/browser/event_router.h"
13 #include "extensions/browser/extension_event_histogram_value.h"
15 class Profile;
17 namespace base {
18 class ListValue;
21 namespace app_list {
23 // A class which sends API events to the custom launcher page.
24 class LauncherPageEventDispatcher {
25 public:
26 LauncherPageEventDispatcher(Profile* profile,
27 const std::string& extension_id);
28 ~LauncherPageEventDispatcher();
30 void ProgressChanged(double progress);
31 void PopSubpage();
33 private:
34 // Dispatches |event| to |extension_id_|.
35 void DispatchEvent(scoped_ptr<extensions::Event> event);
37 Profile* profile_;
38 std::string extension_id_;
40 DISALLOW_COPY_AND_ASSIGN(LauncherPageEventDispatcher);
43 } // namespace app_list
45 #endif // CHROME_BROWSER_UI_APP_LIST_LAUNCHER_PAGE_EVENT_DISPATCHER_H_