| 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_TABS_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_TABS_TABS_API_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_TABS_TABS_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_TABS_TABS_API_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "chrome/browser/extensions/chrome_extension_function.h" | 12 #include "chrome/browser/extensions/chrome_extension_function.h" |
| 13 #include "chrome/browser/extensions/chrome_extension_function_details.h" | 13 #include "chrome/browser/extensions/chrome_extension_function_details.h" |
| 14 #include "chrome/browser/ui/zoom/zoom_controller.h" | |
| 15 #include "chrome/common/extensions/api/tabs.h" | 14 #include "chrome/common/extensions/api/tabs.h" |
| 15 #include "components/ui/zoom/zoom_controller.h" |
| 16 #include "content/public/browser/notification_observer.h" | 16 #include "content/public/browser/notification_observer.h" |
| 17 #include "content/public/browser/notification_registrar.h" | 17 #include "content/public/browser/notification_registrar.h" |
| 18 #include "extensions/browser/api/capture_web_contents_function.h" | 18 #include "extensions/browser/api/capture_web_contents_function.h" |
| 19 #include "extensions/browser/api/execute_code_function.h" | 19 #include "extensions/browser/api/execute_code_function.h" |
| 20 #include "extensions/common/extension_resource.h" | 20 #include "extensions/common/extension_resource.h" |
| 21 #include "extensions/common/user_script.h" | 21 #include "extensions/common/user_script.h" |
| 22 #include "url/gurl.h" | 22 #include "url/gurl.h" |
| 23 | 23 |
| 24 class GURL; | 24 class GURL; |
| 25 class SkBitmap; | 25 class SkBitmap; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 37 class ListSelectionModel; | 37 class ListSelectionModel; |
| 38 } | 38 } |
| 39 | 39 |
| 40 namespace user_prefs { | 40 namespace user_prefs { |
| 41 class PrefRegistrySyncable; | 41 class PrefRegistrySyncable; |
| 42 } | 42 } |
| 43 | 43 |
| 44 namespace extensions { | 44 namespace extensions { |
| 45 | 45 |
| 46 // Converts a ZoomMode to its ZoomSettings representation. | 46 // Converts a ZoomMode to its ZoomSettings representation. |
| 47 void ZoomModeToZoomSettings(ZoomController::ZoomMode zoom_mode, | 47 void ZoomModeToZoomSettings(components::ZoomController::ZoomMode zoom_mode, |
| 48 api::tabs::ZoomSettings* zoom_settings); | 48 api::tabs::ZoomSettings* zoom_settings); |
| 49 | 49 |
| 50 // Windows | 50 // Windows |
| 51 class WindowsGetFunction : public ChromeSyncExtensionFunction { | 51 class WindowsGetFunction : public ChromeSyncExtensionFunction { |
| 52 ~WindowsGetFunction() override {} | 52 ~WindowsGetFunction() override {} |
| 53 bool RunSync() override; | 53 bool RunSync() override; |
| 54 DECLARE_EXTENSION_FUNCTION("windows.get", WINDOWS_GET) | 54 DECLARE_EXTENSION_FUNCTION("windows.get", WINDOWS_GET) |
| 55 }; | 55 }; |
| 56 class WindowsGetCurrentFunction : public ChromeSyncExtensionFunction { | 56 class WindowsGetCurrentFunction : public ChromeSyncExtensionFunction { |
| 57 ~WindowsGetCurrentFunction() override {} | 57 ~WindowsGetCurrentFunction() override {} |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 ~TabsGetZoomSettingsFunction() override {} | 309 ~TabsGetZoomSettingsFunction() override {} |
| 310 | 310 |
| 311 bool RunAsync() override; | 311 bool RunAsync() override; |
| 312 | 312 |
| 313 DECLARE_EXTENSION_FUNCTION("tabs.getZoomSettings", TABS_GETZOOMSETTINGS) | 313 DECLARE_EXTENSION_FUNCTION("tabs.getZoomSettings", TABS_GETZOOMSETTINGS) |
| 314 }; | 314 }; |
| 315 | 315 |
| 316 } // namespace extensions | 316 } // namespace extensions |
| 317 | 317 |
| 318 #endif // CHROME_BROWSER_EXTENSIONS_API_TABS_TABS_API_H_ | 318 #endif // CHROME_BROWSER_EXTENSIONS_API_TABS_TABS_API_H_ |
| OLD | NEW |