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

Side by Side Diff: chrome/browser/extensions/api/webview/webview_api.h

Issue 11968054: <webview>: Implement ExecuteScript (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated stale browser_plugin_messages.h Created 7 years, 11 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
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_EXTENSIONS_API_WEBVIEW_WEBVIEW_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_WEBVIEW_WEBVIEW_API_H_
7
8 #include "chrome/browser/extensions/extension_function.h"
9 #include "chrome/browser/extensions/script_executor.h"
10
11 namespace extensions {
12 namespace webview {
13 struct InjectDetails;
Matt Perry 2013/01/23 20:23:58 Do you need this forward decl?
Fady Samuel 2013/01/23 20:54:32 No. Removed.
14 } // namespace webview
15 namespace api {
16 } // namespace api
17 } // namespace extensions
18
19 class WebviewExecuteScriptFunction : public AsyncExtensionFunction {
20 public:
21 DECLARE_EXTENSION_FUNCTION("webview.executeScript", WEBVIEW_EXECUTESCRIPT)
22
23 WebviewExecuteScriptFunction();
24
25 protected:
26 virtual ~WebviewExecuteScriptFunction();
27
28 // ExtensionFunction implementation.
29 virtual bool RunImpl() OVERRIDE;
30
31 private:
32
33 void OnExecuteCodeFinished(const std::string& error,
34 int32 on_page_id,
35 const GURL& on_url,
36 const ListValue& result);
37
38 };
39 #endif // CHROME_BROWSER_EXTENSIONS_API_WEBVIEW_WEBVIEW_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698