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

Side by Side Diff: chrome/renderer/extensions/app_bindings.h

Issue 12680004: Remove chrome/ code to handle App Notifications (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix merge conflicts. Created 7 years, 9 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // The AppObjectExtension is a v8 extension that creates an object 5 // The AppObjectExtension is a v8 extension that creates an object
6 // at window.chrome.app. This object allows javascript to get details 6 // at window.chrome.app. This object allows javascript to get details
7 // on the app state of the page. 7 // on the app state of the page.
8 // The read-only property app.isInstalled is true if the current page is 8 // The read-only property app.isInstalled is true if the current page is
9 // within the extent of an installed, enabled app. 9 // within the extent of an installed, enabled app.
10 10
(...skipping 16 matching lines...) Expand all
27 AppBindings(Dispatcher* dispatcher, ChromeV8Context* context); 27 AppBindings(Dispatcher* dispatcher, ChromeV8Context* context);
28 28
29 private: 29 private:
30 // IPC::Listener 30 // IPC::Listener
31 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 31 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
32 32
33 v8::Handle<v8::Value> GetIsInstalled(const v8::Arguments& args); 33 v8::Handle<v8::Value> GetIsInstalled(const v8::Arguments& args);
34 v8::Handle<v8::Value> Install(const v8::Arguments& args); 34 v8::Handle<v8::Value> Install(const v8::Arguments& args);
35 v8::Handle<v8::Value> GetDetails(const v8::Arguments& args); 35 v8::Handle<v8::Value> GetDetails(const v8::Arguments& args);
36 v8::Handle<v8::Value> GetDetailsForFrame(const v8::Arguments& args); 36 v8::Handle<v8::Value> GetDetailsForFrame(const v8::Arguments& args);
37 v8::Handle<v8::Value> GetAppNotifyChannel(const v8::Arguments& args);
38 v8::Handle<v8::Value> GetInstallState(const v8::Arguments& args); 37 v8::Handle<v8::Value> GetInstallState(const v8::Arguments& args);
39 v8::Handle<v8::Value> GetRunningState(const v8::Arguments& args); 38 v8::Handle<v8::Value> GetRunningState(const v8::Arguments& args);
40 39
41 v8::Handle<v8::Value> GetDetailsForFrameImpl(WebKit::WebFrame* frame); 40 v8::Handle<v8::Value> GetDetailsForFrameImpl(WebKit::WebFrame* frame);
42 41
43 void OnGetAppNotifyChannelResponse(const std::string& channel_id,
44 const std::string& error,
45 int callback_id);
46 void OnAppInstallStateResponse(const std::string& state, int callback_id); 42 void OnAppInstallStateResponse(const std::string& state, int callback_id);
47 43
48 DISALLOW_COPY_AND_ASSIGN(AppBindings); 44 DISALLOW_COPY_AND_ASSIGN(AppBindings);
49 }; 45 };
50 46
51 } // namespace extensions 47 } // namespace extensions
52 48
53 #endif // CHROME_RENDERER_EXTENSIONS_APP_BINDINGS_H_ 49 #endif // CHROME_RENDERER_EXTENSIONS_APP_BINDINGS_H_
OLDNEW
« no previous file with comments | « chrome/common/extensions/permissions/permission_set_unittest.cc ('k') | chrome/renderer/extensions/app_bindings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698