Chromium Code Reviews| Index: chrome/browser/ui/app_list/launcher_page_event_dispatcher.h |
| diff --git a/chrome/browser/ui/app_list/launcher_page_event_dispatcher.h b/chrome/browser/ui/app_list/launcher_page_event_dispatcher.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..c6ea694a9d64a141629cd08e6b0b0fb3ba24b647 |
| --- /dev/null |
| +++ b/chrome/browser/ui/app_list/launcher_page_event_dispatcher.h |
| @@ -0,0 +1,40 @@ |
| +// Copyright 2014 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 CHROME_BROWSER_UI_APP_LIST_LAUNCHER_PAGE_EVENT_DISPATCHER_H_ |
| +#define CHROME_BROWSER_UI_APP_LIST_LAUNCHER_PAGE_EVENT_DISPATCHER_H_ |
| + |
| +#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.
|
| +#include "base/memory/scoped_ptr.h" |
| + |
| +class Profile; |
| + |
| +namespace base { |
| +class ListValue; |
| +} |
| + |
| +namespace app_list { |
| + |
| +// A class which sends API events to the custom launcher page. |
| +class LauncherPageEventDispatcher { |
| + public: |
| + LauncherPageEventDispatcher(Profile* profile, |
| + const std::string& extension_id); |
| + ~LauncherPageEventDispatcher(); |
| + |
| + void ProgressChanged(double progress); |
| + |
| + private: |
| + void SendEventToLauncherPage(const std::string& event_name, |
| + scoped_ptr<base::ListValue> args); |
| + |
| + Profile* profile_; |
| + std::string extension_id_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(LauncherPageEventDispatcher); |
| +}; |
| + |
| +} // namespace app_list |
| + |
| +#endif // CHROME_BROWSER_UI_APP_LIST_LAUNCHER_PAGE_EVENT_DISPATCHER_H_ |