| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 | 10 |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 class MoveTabFunction : public SyncExtensionFunction { | 119 class MoveTabFunction : public SyncExtensionFunction { |
| 120 ~MoveTabFunction() {} | 120 ~MoveTabFunction() {} |
| 121 virtual bool RunImpl(); | 121 virtual bool RunImpl(); |
| 122 DECLARE_EXTENSION_FUNCTION_NAME("tabs.move") | 122 DECLARE_EXTENSION_FUNCTION_NAME("tabs.move") |
| 123 }; | 123 }; |
| 124 class RemoveTabFunction : public SyncExtensionFunction { | 124 class RemoveTabFunction : public SyncExtensionFunction { |
| 125 ~RemoveTabFunction() {} | 125 ~RemoveTabFunction() {} |
| 126 virtual bool RunImpl(); | 126 virtual bool RunImpl(); |
| 127 DECLARE_EXTENSION_FUNCTION_NAME("tabs.remove") | 127 DECLARE_EXTENSION_FUNCTION_NAME("tabs.remove") |
| 128 }; | 128 }; |
| 129 class SetZoomPercentTabFunction : public AsyncExtensionFunction, |
| 130 public NotificationObserver { |
| 131 private: |
| 132 ~SetZoomPercentTabFunction() {} |
| 133 virtual bool RunImpl(); |
| 134 |
| 135 virtual void Observe(NotificationType type, |
| 136 const NotificationSource& source, |
| 137 const NotificationDetails& details); |
| 138 NotificationRegistrar registrar_; |
| 139 int tab_id_; |
| 140 int request_id_; |
| 141 DECLARE_EXTENSION_FUNCTION_NAME("tabs.setZoomPercent") |
| 142 }; |
| 143 class GetZoomPercentTabFunction : public SyncExtensionFunction { |
| 144 ~GetZoomPercentTabFunction() {} |
| 145 virtual bool RunImpl(); |
| 146 DECLARE_EXTENSION_FUNCTION_NAME("tabs.getZoomPercent"); |
| 147 }; |
| 148 |
| 129 class DetectTabLanguageFunction : public AsyncExtensionFunction, | 149 class DetectTabLanguageFunction : public AsyncExtensionFunction, |
| 130 public NotificationObserver { | 150 public NotificationObserver { |
| 131 private: | 151 private: |
| 132 ~DetectTabLanguageFunction() {} | 152 ~DetectTabLanguageFunction() {} |
| 133 virtual bool RunImpl(); | 153 virtual bool RunImpl(); |
| 134 | 154 |
| 135 virtual void Observe(NotificationType type, | 155 virtual void Observe(NotificationType type, |
| 136 const NotificationSource& source, | 156 const NotificationSource& source, |
| 137 const NotificationDetails& details); | 157 const NotificationDetails& details); |
| 138 void GotLanguage(const std::string& language); | 158 void GotLanguage(const std::string& language); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 163 // The format (JPEG vs PNG) of the resulting image. Set in RunImpl(). | 183 // The format (JPEG vs PNG) of the resulting image. Set in RunImpl(). |
| 164 ImageFormat image_format_; | 184 ImageFormat image_format_; |
| 165 | 185 |
| 166 // Quality setting to use when encoding jpegs. Set in RunImpl(). | 186 // Quality setting to use when encoding jpegs. Set in RunImpl(). |
| 167 int image_quality_; | 187 int image_quality_; |
| 168 | 188 |
| 169 DECLARE_EXTENSION_FUNCTION_NAME("tabs.captureVisibleTab") | 189 DECLARE_EXTENSION_FUNCTION_NAME("tabs.captureVisibleTab") |
| 170 }; | 190 }; |
| 171 | 191 |
| 172 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TABS_MODULE_H__ | 192 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TABS_MODULE_H__ |
| OLD | NEW |