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 1977 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1988 ZoomController::FromWebContents(web_contents); | 1988 ZoomController::FromWebContents(web_contents); |
1989 | 1989 |
1990 ZoomController::ZoomMode zoom_mode = zoom_controller->zoom_mode(); | 1990 ZoomController::ZoomMode zoom_mode = zoom_controller->zoom_mode(); |
1991 api::tabs::ZoomSettings zoom_settings; | 1991 api::tabs::ZoomSettings zoom_settings; |
1992 ZoomModeToZoomSettings(zoom_mode, &zoom_settings); | 1992 ZoomModeToZoomSettings(zoom_mode, &zoom_settings); |
1993 zoom_settings.default_zoom_factor.reset(new double( | 1993 zoom_settings.default_zoom_factor.reset(new double( |
1994 content::ZoomLevelToZoomFactor(zoom_controller->GetDefaultZoomLevel()))); | 1994 content::ZoomLevelToZoomFactor(zoom_controller->GetDefaultZoomLevel()))); |
1995 | 1995 |
1996 results_ = api::tabs::GetZoomSettings::Results::Create(zoom_settings); | 1996 results_ = api::tabs::GetZoomSettings::Results::Create(zoom_settings); |
1997 SendResponse(true); | 1997 SendResponse(true); |
1998 | |
1999 // "Hello World!" | |
Takashi Toyoshima
2015/07/08 03:19:42
Did you forget to remove this comment, or add for
amalika
2015/07/08 21:58:03
Ops! That was a mistake. I reverted this file back
| |
1998 return true; | 2000 return true; |
1999 } | 2001 } |
2000 | 2002 |
2001 } // namespace extensions | 2003 } // namespace extensions |
OLD | NEW |