| 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 #include "chrome/browser/extensions/api/tabs/tabs_api.h" | 5 #include "chrome/browser/extensions/api/tabs/tabs_api.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <limits> | 8 #include <limits> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 #include "content/public/common/url_constants.h" | 65 #include "content/public/common/url_constants.h" |
| 66 #include "extensions/browser/api/capture_web_contents_function_impl.h" | 66 #include "extensions/browser/api/capture_web_contents_function_impl.h" |
| 67 #include "extensions/browser/api/execute_code_function_impl.h" | 67 #include "extensions/browser/api/execute_code_function_impl.h" |
| 68 #include "extensions/browser/api/tabs/tabs_constants.h" | 68 #include "extensions/browser/api/tabs/tabs_constants.h" |
| 69 #include "extensions/browser/app_window/app_window.h" | 69 #include "extensions/browser/app_window/app_window.h" |
| 70 #include "extensions/browser/extension_function_dispatcher.h" | 70 #include "extensions/browser/extension_function_dispatcher.h" |
| 71 #include "extensions/browser/extension_function_util.h" | 71 #include "extensions/browser/extension_function_util.h" |
| 72 #include "extensions/browser/extension_host.h" | 72 #include "extensions/browser/extension_host.h" |
| 73 #include "extensions/browser/file_reader.h" | 73 #include "extensions/browser/file_reader.h" |
| 74 #include "extensions/browser/script_executor.h" | 74 #include "extensions/browser/script_executor.h" |
| 75 #include "extensions/common/api/extension_types.h" |
| 75 #include "extensions/common/constants.h" | 76 #include "extensions/common/constants.h" |
| 76 #include "extensions/common/error_utils.h" | 77 #include "extensions/common/error_utils.h" |
| 77 #include "extensions/common/extension.h" | 78 #include "extensions/common/extension.h" |
| 78 #include "extensions/common/manifest_constants.h" | 79 #include "extensions/common/manifest_constants.h" |
| 79 #include "extensions/common/message_bundle.h" | 80 #include "extensions/common/message_bundle.h" |
| 80 #include "extensions/common/permissions/permissions_data.h" | 81 #include "extensions/common/permissions/permissions_data.h" |
| 81 #include "extensions/common/user_script.h" | 82 #include "extensions/common/user_script.h" |
| 82 #include "skia/ext/image_operations.h" | 83 #include "skia/ext/image_operations.h" |
| 83 #include "skia/ext/platform_canvas.h" | 84 #include "skia/ext/platform_canvas.h" |
| 84 #include "third_party/skia/include/core/SkBitmap.h" | 85 #include "third_party/skia/include/core/SkBitmap.h" |
| (...skipping 1813 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1898 ZoomController::ZoomMode zoom_mode = zoom_controller->zoom_mode(); | 1899 ZoomController::ZoomMode zoom_mode = zoom_controller->zoom_mode(); |
| 1899 api::tabs::ZoomSettings zoom_settings; | 1900 api::tabs::ZoomSettings zoom_settings; |
| 1900 ZoomModeToZoomSettings(zoom_mode, &zoom_settings); | 1901 ZoomModeToZoomSettings(zoom_mode, &zoom_settings); |
| 1901 | 1902 |
| 1902 results_ = api::tabs::GetZoomSettings::Results::Create(zoom_settings); | 1903 results_ = api::tabs::GetZoomSettings::Results::Create(zoom_settings); |
| 1903 SendResponse(true); | 1904 SendResponse(true); |
| 1904 return true; | 1905 return true; |
| 1905 } | 1906 } |
| 1906 | 1907 |
| 1907 } // namespace extensions | 1908 } // namespace extensions |
| OLD | NEW |