| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/webview/webview_api.h" | 5 #include "chrome/browser/extensions/api/webview/webview_api.h" |
| 6 | 6 |
| 7 #include "chrome/common/extensions/api/webview.h" | 7 #include "chrome/common/extensions/api/webview.h" |
| 8 #include "content/public/browser/render_view_host.h" | 8 #include "content/public/browser/render_view_host.h" |
| 9 #include "ui/gfx/image/image_skia.h" |
| 9 | 10 |
| 10 using namespace extensions::api::webview; | 11 using namespace extensions::api::webview; |
| 11 | 12 |
| 12 WebviewExecuteScriptFunction::WebviewExecuteScriptFunction() { | 13 WebviewExecuteScriptFunction::WebviewExecuteScriptFunction() { |
| 13 } | 14 } |
| 14 | 15 |
| 15 WebviewExecuteScriptFunction::~WebviewExecuteScriptFunction() { | 16 WebviewExecuteScriptFunction::~WebviewExecuteScriptFunction() { |
| 16 } | 17 } |
| 17 | 18 |
| 18 bool WebviewExecuteScriptFunction::RunImpl() { | 19 bool WebviewExecuteScriptFunction::RunImpl() { |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 const ListValue& result) { | 80 const ListValue& result) { |
| 80 if (error.empty()) { | 81 if (error.empty()) { |
| 81 SetResult(result.DeepCopy()); | 82 SetResult(result.DeepCopy()); |
| 82 } else { | 83 } else { |
| 83 SetError(error); | 84 SetError(error); |
| 84 } | 85 } |
| 85 SendResponse(error.empty()); | 86 SendResponse(error.empty()); |
| 86 Release(); // Added in RunImpl(). | 87 Release(); // Added in RunImpl(). |
| 87 } | 88 } |
| 88 | 89 |
| OLD | NEW |