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

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: 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
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 13 matching lines...) Expand all
48 47
49 // Callback for pings related to launching apps on the NTP. 48 // Callback for pings related to launching apps on the NTP.
50 static bool HandlePing(Profile* profile, const std::string& path); 49 static bool HandlePing(Profile* profile, const std::string& path);
51 50
52 // WebUIMessageHandler implementation. 51 // WebUIMessageHandler implementation.
53 virtual WebUIMessageHandler* Attach(WebUI* web_ui) OVERRIDE; 52 virtual WebUIMessageHandler* Attach(WebUI* web_ui) OVERRIDE;
54 virtual void RegisterMessages() OVERRIDE; 53 virtual void RegisterMessages() OVERRIDE;
55 54
56 // NotificationObserver 55 // NotificationObserver
57 virtual void Observe(int type, 56 virtual void Observe(int type,
58 const NotificationSource& source, 57 const NotificationSource& source,
59 const NotificationDetails& details) OVERRIDE; 58 const NotificationDetails& details) OVERRIDE;
60 59
61 // Populate the given dictionary with all installed app info. 60 // Populate the given dictionary with all installed app info.
62 void FillAppDictionary(base::DictionaryValue* value); 61 void FillAppDictionary(base::DictionaryValue* value);
63 62
64 // Create a dictionary value for the given extension. May return NULL, e.g. if 63 // Create a dictionary value for the given extension. May return NULL, e.g. if
65 // the given extension is not an app. If non-NULL, the caller assumes 64 // the given extension is not an app. If non-NULL, the caller assumes
66 // ownership of the pointer. 65 // ownership of the pointer.
67 base::DictionaryValue* GetAppInfo(const Extension* extension); 66 base::DictionaryValue* GetAppInfo(const Extension* extension);
68 67
69 // Populate the given dictionary with the web store promo content. 68 // Populate the given dictionary with the web store promo content.
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 // refreshing. This is useful when making many batch updates to avoid flicker. 173 // refreshing. This is useful when making many batch updates to avoid flicker.
175 bool ignore_changes_; 174 bool ignore_changes_;
176 175
177 // Hold state for favicon requests. 176 // Hold state for favicon requests.
178 CancelableRequestConsumerTSimple<WebApplicationInfo*> favicon_consumer_; 177 CancelableRequestConsumerTSimple<WebApplicationInfo*> favicon_consumer_;
179 178
180 DISALLOW_COPY_AND_ASSIGN(AppLauncherHandler); 179 DISALLOW_COPY_AND_ASSIGN(AppLauncherHandler);
181 }; 180 };
182 181
183 #endif // CHROME_BROWSER_UI_WEBUI_NTP_APP_LAUNCHER_HANDLER_H_ 182 #endif // CHROME_BROWSER_UI_WEBUI_NTP_APP_LAUNCHER_HANDLER_H_
OLDNEW
« chrome/browser/resources/ntp4/new_tab.js ('K') | « 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