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 1781 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1792 } | 1792 } |
1793 | 1793 |
1794 bool ExecuteCodeInTabFunction::IsWebView() const { | 1794 bool ExecuteCodeInTabFunction::IsWebView() const { |
1795 return false; | 1795 return false; |
1796 } | 1796 } |
1797 | 1797 |
1798 const GURL& ExecuteCodeInTabFunction::GetWebViewSrc() const { | 1798 const GURL& ExecuteCodeInTabFunction::GetWebViewSrc() const { |
1799 return GURL::EmptyGURL(); | 1799 return GURL::EmptyGURL(); |
1800 } | 1800 } |
1801 | 1801 |
1802 bool ExecuteCodeInTabFunction::LoadFileForWebUI( | |
Fady Samuel
2015/03/14 04:26:56
Make this code the default implementation in Execu
Xi Han
2015/03/16 14:36:05
Done.
| |
1803 const std::string& file_src, | |
1804 const WebUILoadFileCallback& callback) { | |
1805 callback.Run(false, std::string()); | |
1806 return false; | |
1807 } | |
1808 | |
1802 bool TabsExecuteScriptFunction::ShouldInsertCSS() const { | 1809 bool TabsExecuteScriptFunction::ShouldInsertCSS() const { |
1803 return false; | 1810 return false; |
1804 } | 1811 } |
1805 | 1812 |
1806 void TabsExecuteScriptFunction::OnExecuteCodeFinished( | 1813 void TabsExecuteScriptFunction::OnExecuteCodeFinished( |
1807 const std::string& error, | 1814 const std::string& error, |
1808 const GURL& on_url, | 1815 const GURL& on_url, |
1809 const base::ListValue& result) { | 1816 const base::ListValue& result) { |
1810 if (error.empty()) | 1817 if (error.empty()) |
1811 SetResult(result.DeepCopy()); | 1818 SetResult(result.DeepCopy()); |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1953 ZoomController::ZoomMode zoom_mode = zoom_controller->zoom_mode(); | 1960 ZoomController::ZoomMode zoom_mode = zoom_controller->zoom_mode(); |
1954 api::tabs::ZoomSettings zoom_settings; | 1961 api::tabs::ZoomSettings zoom_settings; |
1955 ZoomModeToZoomSettings(zoom_mode, &zoom_settings); | 1962 ZoomModeToZoomSettings(zoom_mode, &zoom_settings); |
1956 | 1963 |
1957 results_ = api::tabs::GetZoomSettings::Results::Create(zoom_settings); | 1964 results_ = api::tabs::GetZoomSettings::Results::Create(zoom_settings); |
1958 SendResponse(true); | 1965 SendResponse(true); |
1959 return true; | 1966 return true; |
1960 } | 1967 } |
1961 | 1968 |
1962 } // namespace extensions | 1969 } // namespace extensions |
OLD | NEW |