OLD | NEW |
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 #ifndef CHROME_BROWSER_EXTENSIONS_API_TABS_EXECUTE_CODE_IN_TAB_FUNCTION_H__ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_TABS_EXECUTE_CODE_IN_TAB_FUNCTION_H__ |
6 #define CHROME_BROWSER_EXTENSIONS_API_TABS_EXECUTE_CODE_IN_TAB_FUNCTION_H__ | 6 #define CHROME_BROWSER_EXTENSIONS_API_TABS_EXECUTE_CODE_IN_TAB_FUNCTION_H__ |
7 #pragma once | |
8 | 7 |
9 #include <string> | 8 #include <string> |
10 | 9 |
11 #include "chrome/browser/extensions/extension_function.h" | 10 #include "chrome/browser/extensions/extension_function.h" |
12 #include "chrome/common/extensions/extension_resource.h" | 11 #include "chrome/common/extensions/extension_resource.h" |
13 #include "chrome/common/extensions/user_script.h" | 12 #include "chrome/common/extensions/user_script.h" |
14 | 13 |
15 // Implement API call tabs.executeScript and tabs.insertCSS. | 14 // Implement API call tabs.executeScript and tabs.insertCSS. |
16 class ExecuteCodeInTabFunction : public AsyncExtensionFunction { | 15 class ExecuteCodeInTabFunction : public AsyncExtensionFunction { |
17 public: | 16 public: |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 }; | 70 }; |
72 | 71 |
73 class TabsInsertCSSFunction : public ExecuteCodeInTabFunction { | 72 class TabsInsertCSSFunction : public ExecuteCodeInTabFunction { |
74 private: | 73 private: |
75 virtual ~TabsInsertCSSFunction() {} | 74 virtual ~TabsInsertCSSFunction() {} |
76 | 75 |
77 DECLARE_EXTENSION_FUNCTION_NAME("tabs.insertCSS") | 76 DECLARE_EXTENSION_FUNCTION_NAME("tabs.insertCSS") |
78 }; | 77 }; |
79 | 78 |
80 #endif // CHROME_BROWSER_EXTENSIONS_API_TABS_EXECUTE_CODE_IN_TAB_FUNCTION_H__ | 79 #endif // CHROME_BROWSER_EXTENSIONS_API_TABS_EXECUTE_CODE_IN_TAB_FUNCTION_H__ |
OLD | NEW |