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

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

Issue 630603003: Replacing the OVERRIDE with override in chrome/renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased the patch Created 6 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
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 11 matching lines...) Expand all
22 // Implements the chrome.app JavaScript object. 22 // Implements the chrome.app JavaScript object.
23 // 23 //
24 // TODO(aa): Add unit testing for this class. 24 // TODO(aa): Add unit testing for this class.
25 class AppBindings : public ObjectBackedNativeHandler, 25 class AppBindings : public ObjectBackedNativeHandler,
26 public ChromeV8ExtensionHandler { 26 public ChromeV8ExtensionHandler {
27 public: 27 public:
28 AppBindings(Dispatcher* dispatcher, ScriptContext* context); 28 AppBindings(Dispatcher* dispatcher, ScriptContext* context);
29 29
30 private: 30 private:
31 // IPC::Listener 31 // IPC::Listener
32 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 32 virtual bool OnMessageReceived(const IPC::Message& message) override;
33 33
34 void GetIsInstalled(const v8::FunctionCallbackInfo<v8::Value>& args); 34 void GetIsInstalled(const v8::FunctionCallbackInfo<v8::Value>& args);
35 void GetDetails(const v8::FunctionCallbackInfo<v8::Value>& args); 35 void GetDetails(const v8::FunctionCallbackInfo<v8::Value>& args);
36 void GetDetailsForFrame(const v8::FunctionCallbackInfo<v8::Value>& args); 36 void GetDetailsForFrame(const v8::FunctionCallbackInfo<v8::Value>& args);
37 void GetInstallState(const v8::FunctionCallbackInfo<v8::Value>& args); 37 void GetInstallState(const v8::FunctionCallbackInfo<v8::Value>& args);
38 void GetRunningState(const v8::FunctionCallbackInfo<v8::Value>& args); 38 void GetRunningState(const v8::FunctionCallbackInfo<v8::Value>& args);
39 39
40 v8::Handle<v8::Value> GetDetailsForFrameImpl(blink::WebFrame* frame); 40 v8::Handle<v8::Value> GetDetailsForFrameImpl(blink::WebFrame* frame);
41 41
42 void OnAppInstallStateResponse(const std::string& state, int callback_id); 42 void OnAppInstallStateResponse(const std::string& state, int callback_id);
43 43
44 // Dispatcher handle. Not owned. 44 // Dispatcher handle. Not owned.
45 Dispatcher* dispatcher_; 45 Dispatcher* dispatcher_;
46 46
47 DISALLOW_COPY_AND_ASSIGN(AppBindings); 47 DISALLOW_COPY_AND_ASSIGN(AppBindings);
48 }; 48 };
49 49
50 } // namespace extensions 50 } // namespace extensions
51 51
52 #endif // CHROME_RENDERER_EXTENSIONS_APP_BINDINGS_H_ 52 #endif // CHROME_RENDERER_EXTENSIONS_APP_BINDINGS_H_
OLDNEW
« no previous file with comments | « chrome/renderer/content_settings_observer.h ('k') | chrome/renderer/extensions/chrome_extensions_dispatcher_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698