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

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

Issue 8382010: Some fixups for app notifications: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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_install_ui.h" 10 #include "chrome/browser/extensions/extension_install_ui.h"
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 void HandleSaveAppPageName(const base::ListValue* args); 104 void HandleSaveAppPageName(const base::ListValue* args);
105 105
106 // Callback for the "generateAppForLink" message. 106 // Callback for the "generateAppForLink" message.
107 void HandleGenerateAppForLink(const base::ListValue* args); 107 void HandleGenerateAppForLink(const base::ListValue* args);
108 108
109 // Callback for the "recordAppLaunchByURL" message. Takes an escaped URL and a 109 // Callback for the "recordAppLaunchByURL" message. Takes an escaped URL and a
110 // launch source (integer), and if the URL represents an app, records the 110 // launch source (integer), and if the URL represents an app, records the
111 // action for UMA. 111 // action for UMA.
112 void HandleRecordAppLaunchByURL(const base::ListValue* args); 112 void HandleRecordAppLaunchByURL(const base::ListValue* args);
113 113
114 // Callback for "closeNotification" message.
115 void HandleNotificationClose(const base::ListValue* args);
116
114 // Register app launcher preferences. 117 // Register app launcher preferences.
115 static void RegisterUserPrefs(PrefService* pref_service); 118 static void RegisterUserPrefs(PrefService* pref_service);
116 119
117 private: 120 private:
118 struct AppInstallInfo { 121 struct AppInstallInfo {
119 bool is_bookmark_app; 122 bool is_bookmark_app;
120 string16 title; 123 string16 title;
121 GURL app_url; 124 GURL app_url;
122 int page_index; 125 int page_index;
123 }; 126 };
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 // when the app is added to the page (via getAppsCallback or appAdded). 208 // when the app is added to the page (via getAppsCallback or appAdded).
206 std::string highlight_app_id_; 209 std::string highlight_app_id_;
207 210
208 // Hold state for favicon requests. 211 // Hold state for favicon requests.
209 CancelableRequestConsumerTSimple<AppInstallInfo*> favicon_consumer_; 212 CancelableRequestConsumerTSimple<AppInstallInfo*> favicon_consumer_;
210 213
211 DISALLOW_COPY_AND_ASSIGN(AppLauncherHandler); 214 DISALLOW_COPY_AND_ASSIGN(AppLauncherHandler);
212 }; 215 };
213 216
214 #endif // CHROME_BROWSER_UI_WEBUI_NTP_APP_LAUNCHER_HANDLER_H_ 217 #endif // CHROME_BROWSER_UI_WEBUI_NTP_APP_LAUNCHER_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/resources/ntp4/apps_page.js ('k') | chrome/browser/ui/webui/ntp/app_launcher_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698