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

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: Fixed nits 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 class WebviewExecuteScriptFunction : public AsyncExtensionFunction {
12 public:
13 DECLARE_EXTENSION_FUNCTION("webview.executeScript", WEBVIEW_EXECUTESCRIPT)
14
15 WebviewExecuteScriptFunction();
16
17 protected:
18 virtual ~WebviewExecuteScriptFunction();
19
20 // ExtensionFunction implementation.
21 virtual bool RunImpl() OVERRIDE;
22
23 private:
24
25 void OnExecuteCodeFinished(const std::string& error,
26 int32 on_page_id,
27 const GURL& on_url,
28 const ListValue& result);
29
30 };
31 #endif // CHROME_BROWSER_EXTENSIONS_API_WEBVIEW_WEBVIEW_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698