| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_EXTENSION_TABS_MODULE_H__ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_TABS_MODULE_H__ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_TABS_MODULE_H__ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_TABS_MODULE_H__ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 virtual bool RunImpl() OVERRIDE; | 105 virtual bool RunImpl() OVERRIDE; |
| 106 DECLARE_EXTENSION_FUNCTION_NAME("tabs.highlight") | 106 DECLARE_EXTENSION_FUNCTION_NAME("tabs.highlight") |
| 107 }; | 107 }; |
| 108 class UpdateTabFunction : public AsyncExtensionFunction, | 108 class UpdateTabFunction : public AsyncExtensionFunction, |
| 109 public TabContentsObserver { | 109 public TabContentsObserver { |
| 110 public: | 110 public: |
| 111 UpdateTabFunction(); | 111 UpdateTabFunction(); |
| 112 private: | 112 private: |
| 113 virtual ~UpdateTabFunction() {} | 113 virtual ~UpdateTabFunction() {} |
| 114 virtual bool RunImpl() OVERRIDE; | 114 virtual bool RunImpl() OVERRIDE; |
| 115 virtual bool OnMessageReceived(const IPC::Message& message); | 115 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 116 void OnExecuteCodeFinished(int request_id, | 116 void OnExecuteCodeFinished(int request_id, |
| 117 bool success, | 117 bool success, |
| 118 const std::string& error); | 118 const std::string& error); |
| 119 DECLARE_EXTENSION_FUNCTION_NAME("tabs.update") | 119 DECLARE_EXTENSION_FUNCTION_NAME("tabs.update") |
| 120 }; | 120 }; |
| 121 class MoveTabsFunction : public SyncExtensionFunction { | 121 class MoveTabsFunction : public SyncExtensionFunction { |
| 122 virtual ~MoveTabsFunction() {} | 122 virtual ~MoveTabsFunction() {} |
| 123 virtual bool RunImpl() OVERRIDE; | 123 virtual bool RunImpl() OVERRIDE; |
| 124 DECLARE_EXTENSION_FUNCTION_NAME("tabs.move") | 124 DECLARE_EXTENSION_FUNCTION_NAME("tabs.move") |
| 125 }; | 125 }; |
| 126 class ReloadTabFunction : public SyncExtensionFunction { | 126 class ReloadTabFunction : public SyncExtensionFunction { |
| 127 virtual ~ReloadTabFunction() {} | 127 virtual ~ReloadTabFunction() {} |
| 128 virtual bool RunImpl(); | 128 virtual bool RunImpl() OVERRIDE; |
| 129 DECLARE_EXTENSION_FUNCTION_NAME("tabs.reload") | 129 DECLARE_EXTENSION_FUNCTION_NAME("tabs.reload") |
| 130 }; | 130 }; |
| 131 class RemoveTabsFunction : public SyncExtensionFunction { | 131 class RemoveTabsFunction : public SyncExtensionFunction { |
| 132 virtual ~RemoveTabsFunction() {} | 132 virtual ~RemoveTabsFunction() {} |
| 133 virtual bool RunImpl() OVERRIDE; | 133 virtual bool RunImpl() OVERRIDE; |
| 134 DECLARE_EXTENSION_FUNCTION_NAME("tabs.remove") | 134 DECLARE_EXTENSION_FUNCTION_NAME("tabs.remove") |
| 135 }; | 135 }; |
| 136 class DetectTabLanguageFunction : public AsyncExtensionFunction, | 136 class DetectTabLanguageFunction : public AsyncExtensionFunction, |
| 137 public content::NotificationObserver { | 137 public content::NotificationObserver { |
| 138 private: | 138 private: |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 // The format (JPEG vs PNG) of the resulting image. Set in RunImpl(). | 170 // The format (JPEG vs PNG) of the resulting image. Set in RunImpl(). |
| 171 ImageFormat image_format_; | 171 ImageFormat image_format_; |
| 172 | 172 |
| 173 // Quality setting to use when encoding jpegs. Set in RunImpl(). | 173 // Quality setting to use when encoding jpegs. Set in RunImpl(). |
| 174 int image_quality_; | 174 int image_quality_; |
| 175 | 175 |
| 176 DECLARE_EXTENSION_FUNCTION_NAME("tabs.captureVisibleTab") | 176 DECLARE_EXTENSION_FUNCTION_NAME("tabs.captureVisibleTab") |
| 177 }; | 177 }; |
| 178 | 178 |
| 179 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TABS_MODULE_H__ | 179 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TABS_MODULE_H__ |
| OLD | NEW |