Chromium Code Reviews| OLD | NEW |
|---|---|
| (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_ | |
| OLD | NEW |