Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(347)

Side by Side Diff: chrome/browser/ui/app_list/launcher_page_event_dispatcher.h

Issue 683703002: Notify launcher page with onTransitionChanged event (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@launcher_page_api_show_state_notify
Patch Set: fix mac compile Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 <string>
9
10 #include "base/macros.h"
11 #include "base/memory/scoped_ptr.h"
12
13 class Profile;
14
15 namespace base {
16 class ListValue;
17 }
18
19 namespace app_list {
20
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();
27
28 void ProgressChanged(double progress);
29
30 private:
31 void SendEventToLauncherPage(const std::string& event_name,
32 scoped_ptr<base::ListValue> args);
33
34 Profile* profile_;
35 std::string extension_id_;
36
37 DISALLOW_COPY_AND_ASSIGN(LauncherPageEventDispatcher);
38 };
39
40 } // namespace app_list
41
42 #endif // CHROME_BROWSER_UI_APP_LIST_LAUNCHER_PAGE_EVENT_DISPATCHER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/app_list_view_delegate.cc ('k') | chrome/browser/ui/app_list/launcher_page_event_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698