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

Side by Side Diff: chrome/browser/ui/webui/ntp/app_launcher_handler.h

Issue 7577002: ntp4: new app animation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clear hash Created 9 years, 4 months 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/resources/ntp4/new_tab.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_WEBUI_NTP_APP_LAUNCHER_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_NTP_APP_LAUNCHER_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_NTP_APP_LAUNCHER_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_NTP_APP_LAUNCHER_HANDLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/extensions/extension_app_api.h" 10 #include "chrome/browser/extensions/extension_app_api.h"
11 #include "chrome/browser/extensions/extension_install_ui.h" 11 #include "chrome/browser/extensions/extension_install_ui.h"
12 #include "chrome/browser/extensions/extension_uninstall_dialog.h" 12 #include "chrome/browser/extensions/extension_uninstall_dialog.h"
13 #include "chrome/browser/favicon/favicon_service.h" 13 #include "chrome/browser/favicon/favicon_service.h"
14 #include "chrome/browser/prefs/pref_change_registrar.h" 14 #include "chrome/browser/prefs/pref_change_registrar.h"
15 #include "chrome/common/extensions/extension.h" 15 #include "chrome/common/extensions/extension.h"
16 #include "chrome/common/extensions/extension_constants.h" 16 #include "chrome/common/extensions/extension_constants.h"
17 #include "content/browser/cancelable_request.h" 17 #include "content/browser/cancelable_request.h"
18 #include "content/browser/webui/web_ui.h" 18 #include "content/browser/webui/web_ui.h"
19 #include "content/common/notification_observer.h" 19 #include "content/common/notification_observer.h"
20 #include "content/common/notification_registrar.h" 20 #include "content/common/notification_registrar.h"
21 21
22 class ExtensionPrefs; 22 class ExtensionPrefs;
23 class ExtensionService; 23 class ExtensionService;
24 class NotificationRegistrar;
25 class PrefChangeRegistrar; 24 class PrefChangeRegistrar;
26 class PrefsService; 25 class PrefsService;
27 class Profile; 26 class Profile;
28 struct WebApplicationInfo; 27 struct WebApplicationInfo;
29 28
30 namespace gfx { 29 namespace gfx {
31 class Rect; 30 class Rect;
32 } 31 }
33 32
34 // The handler for Javascript messages related to the "apps" view. 33 // The handler for Javascript messages related to the "apps" view.
(...skipping 18 matching lines...) Expand all
53 52
54 // Callback for pings related to launching apps on the NTP. 53 // Callback for pings related to launching apps on the NTP.
55 static bool HandlePing(Profile* profile, const std::string& path); 54 static bool HandlePing(Profile* profile, const std::string& path);
56 55
57 // WebUIMessageHandler implementation. 56 // WebUIMessageHandler implementation.
58 virtual WebUIMessageHandler* Attach(WebUI* web_ui) OVERRIDE; 57 virtual WebUIMessageHandler* Attach(WebUI* web_ui) OVERRIDE;
59 virtual void RegisterMessages() OVERRIDE; 58 virtual void RegisterMessages() OVERRIDE;
60 59
61 // NotificationObserver 60 // NotificationObserver
62 virtual void Observe(int type, 61 virtual void Observe(int type,
63 const NotificationSource& source, 62 const NotificationSource& source,
64 const NotificationDetails& details) OVERRIDE; 63 const NotificationDetails& details) OVERRIDE;
65 64
66 // Populate the given dictionary with all installed app info. 65 // Populate the given dictionary with all installed app info.
67 void FillAppDictionary(base::DictionaryValue* value); 66 void FillAppDictionary(base::DictionaryValue* value);
68 67
69 // Create a dictionary value for the given extension. May return NULL, e.g. if 68 // Create a dictionary value for the given extension. May return NULL, e.g. if
70 // the given extension is not an app. If non-NULL, the caller assumes 69 // the given extension is not an app. If non-NULL, the caller assumes
71 // ownership of the pointer. 70 // ownership of the pointer.
72 base::DictionaryValue* GetAppInfo(const Extension* extension); 71 base::DictionaryValue* GetAppInfo(const Extension* extension);
73 72
74 // Populate the given dictionary with the web store promo content. 73 // Populate the given dictionary with the web store promo content.
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 // refreshing. This is useful when making many batch updates to avoid flicker. 183 // refreshing. This is useful when making many batch updates to avoid flicker.
185 bool ignore_changes_; 184 bool ignore_changes_;
186 185
187 // Hold state for favicon requests. 186 // Hold state for favicon requests.
188 CancelableRequestConsumerTSimple<WebApplicationInfo*> favicon_consumer_; 187 CancelableRequestConsumerTSimple<WebApplicationInfo*> favicon_consumer_;
189 188
190 DISALLOW_COPY_AND_ASSIGN(AppLauncherHandler); 189 DISALLOW_COPY_AND_ASSIGN(AppLauncherHandler);
191 }; 190 };
192 191
193 #endif // CHROME_BROWSER_UI_WEBUI_NTP_APP_LAUNCHER_HANDLER_H_ 192 #endif // CHROME_BROWSER_UI_WEBUI_NTP_APP_LAUNCHER_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/resources/ntp4/new_tab.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698