Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_UI_APP_LIST_LAUNCHER_PAGE_EVENT_DISPATCHER_H_ | |
| 6 #define CHROME_BROWSER_UI_APP_LIST_LAUNCHER_PAGE_EVENT_DISPATCHER_H_ | |
| 7 | |
| 8 #include "base/basictypes.h" | |
|
tapted
2014/11/06 06:05:45
nit: I think base/macros.h is preferred
you shoul
calamity
2014/11/07 03:43:29
Done.
| |
| 9 #include "base/memory/scoped_ptr.h" | |
| 10 | |
| 11 class Profile; | |
| 12 | |
| 13 namespace base { | |
| 14 class ListValue; | |
| 15 } | |
| 16 | |
| 17 namespace app_list { | |
| 18 | |
| 19 // A class which sends API events to the custom launcher page. | |
| 20 class LauncherPageEventDispatcher { | |
| 21 public: | |
| 22 LauncherPageEventDispatcher(Profile* profile, | |
| 23 const std::string& extension_id); | |
| 24 ~LauncherPageEventDispatcher(); | |
| 25 | |
| 26 void ProgressChanged(double progress); | |
| 27 | |
| 28 private: | |
| 29 void SendEventToLauncherPage(const std::string& event_name, | |
| 30 scoped_ptr<base::ListValue> args); | |
| 31 | |
| 32 Profile* profile_; | |
| 33 std::string extension_id_; | |
| 34 | |
| 35 DISALLOW_COPY_AND_ASSIGN(LauncherPageEventDispatcher); | |
| 36 }; | |
| 37 | |
| 38 } // namespace app_list | |
| 39 | |
| 40 #endif // CHROME_BROWSER_UI_APP_LIST_LAUNCHER_PAGE_EVENT_DISPATCHER_H_ | |
| OLD | NEW |