Add ENABLE_MEDIA_ROUTER define to builds other than Android and iOS.
[chromium-blink-merge.git] / chrome / browser / ui / app_list / launcher_page_event_dispatcher.h
blob1719fa2beac6db9af85e8729d5cdf50078bd13a3
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"
13 class Profile;
15 namespace base {
16 class ListValue;
19 namespace app_list {
21 // A class which sends API events to the custom launcher page.
22 class LauncherPageEventDispatcher {
23 public:
24 LauncherPageEventDispatcher(Profile* profile,
25 const std::string& extension_id);
26 ~LauncherPageEventDispatcher();
28 void ProgressChanged(double progress);
29 void PopSubpage();
31 private:
32 void SendEventToLauncherPage(const std::string& event_name,
33 scoped_ptr<base::ListValue> args);
35 Profile* profile_;
36 std::string extension_id_;
38 DISALLOW_COPY_AND_ASSIGN(LauncherPageEventDispatcher);
41 } // namespace app_list
43 #endif // CHROME_BROWSER_UI_APP_LIST_LAUNCHER_PAGE_EVENT_DISPATCHER_H_