OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 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 #ifndef CHROME_BROWSER_EXTENSIONS_API_WEBVIEW_WEBVIEW_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_WEBVIEW_WEBVIEW_API_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_API_WEBVIEW_WEBVIEW_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_WEBVIEW_WEBVIEW_API_H_ |
7 | 7 |
8 #include "chrome/browser/extensions/api/execute_code_function.h" | 8 #include "chrome/browser/extensions/api/execute_code_function.h" |
9 | 9 |
10 class WebviewExecuteCodeFunction : public extensions::ExecuteCodeFunction { | 10 class WebviewExecuteCodeFunction : public extensions::ExecuteCodeFunction { |
(...skipping 18 matching lines...) Expand all Loading... |
29 int guest_instance_id_; | 29 int guest_instance_id_; |
30 }; | 30 }; |
31 | 31 |
32 class WebviewExecuteScriptFunction : public WebviewExecuteCodeFunction { | 32 class WebviewExecuteScriptFunction : public WebviewExecuteCodeFunction { |
33 protected: | 33 protected: |
34 virtual ~WebviewExecuteScriptFunction() {} | 34 virtual ~WebviewExecuteScriptFunction() {} |
35 | 35 |
36 virtual void OnExecuteCodeFinished(const std::string& error, | 36 virtual void OnExecuteCodeFinished(const std::string& error, |
37 int32 on_page_id, | 37 int32 on_page_id, |
38 const GURL& on_url, | 38 const GURL& on_url, |
39 const ListValue& result) OVERRIDE; | 39 const base::ListValue& result) OVERRIDE; |
40 | 40 |
41 DECLARE_EXTENSION_FUNCTION("webview.executeScript", WEBVIEW_EXECUTESCRIPT) | 41 DECLARE_EXTENSION_FUNCTION("webview.executeScript", WEBVIEW_EXECUTESCRIPT) |
42 }; | 42 }; |
43 | 43 |
44 class WebviewInsertCSSFunction : public WebviewExecuteCodeFunction { | 44 class WebviewInsertCSSFunction : public WebviewExecuteCodeFunction { |
45 protected: | 45 protected: |
46 virtual ~WebviewInsertCSSFunction() {} | 46 virtual ~WebviewInsertCSSFunction() {} |
47 | 47 |
48 virtual bool ShouldInsertCSS() const OVERRIDE; | 48 virtual bool ShouldInsertCSS() const OVERRIDE; |
49 | 49 |
50 DECLARE_EXTENSION_FUNCTION("webview.insertCSS", WEBVIEW_INSERTCSS) | 50 DECLARE_EXTENSION_FUNCTION("webview.insertCSS", WEBVIEW_INSERTCSS) |
51 }; | 51 }; |
52 #endif // CHROME_BROWSER_EXTENSIONS_API_WEBVIEW_WEBVIEW_API_H_ | 52 #endif // CHROME_BROWSER_EXTENSIONS_API_WEBVIEW_WEBVIEW_API_H_ |
OLD | NEW |