| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/guest_view/guest_view_internal_api.h" | 5 #include "extensions/browser/api/guest_view/guest_view_internal_api.h" |
| 6 | 6 |
| 7 #include "chrome/browser/profiles/profile.h" | |
| 8 #include "chrome/common/extensions/api/guest_view_internal.h" | |
| 9 #include "content/public/browser/render_process_host.h" | 7 #include "content/public/browser/render_process_host.h" |
| 10 #include "content/public/browser/render_view_host.h" | 8 #include "content/public/browser/render_view_host.h" |
| 11 #include "extensions/browser/guest_view/guest_view_base.h" | 9 #include "extensions/browser/guest_view/guest_view_base.h" |
| 12 #include "extensions/browser/guest_view/guest_view_manager.h" | 10 #include "extensions/browser/guest_view/guest_view_manager.h" |
| 11 #include "extensions/common/api/guest_view_internal.h" |
| 13 #include "extensions/common/permissions/permissions_data.h" | 12 #include "extensions/common/permissions/permissions_data.h" |
| 14 | 13 |
| 15 namespace guest_view_internal = extensions::api::guest_view_internal; | 14 namespace guest_view_internal = extensions::core_api::guest_view_internal; |
| 16 | 15 |
| 17 namespace extensions { | 16 namespace extensions { |
| 18 | 17 |
| 19 GuestViewInternalCreateGuestFunction:: | 18 GuestViewInternalCreateGuestFunction:: |
| 20 GuestViewInternalCreateGuestFunction() { | 19 GuestViewInternalCreateGuestFunction() { |
| 21 } | 20 } |
| 22 | 21 |
| 23 bool GuestViewInternalCreateGuestFunction::RunAsync() { | 22 bool GuestViewInternalCreateGuestFunction::RunAsync() { |
| 24 std::string view_type; | 23 std::string view_type; |
| 25 EXTENSION_FUNCTION_VALIDATE(args_->GetString(0, &view_type)); | 24 EXTENSION_FUNCTION_VALIDATE(args_->GetString(0, &view_type)); |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 guest->SetAutoSize(params->params.enable_auto_size, | 84 guest->SetAutoSize(params->params.enable_auto_size, |
| 86 gfx::Size(params->params.min.width, | 85 gfx::Size(params->params.min.width, |
| 87 params->params.min.height), | 86 params->params.min.height), |
| 88 gfx::Size(params->params.max.width, | 87 gfx::Size(params->params.max.width, |
| 89 params->params.max.height)); | 88 params->params.max.height)); |
| 90 SendResponse(true); | 89 SendResponse(true); |
| 91 return true; | 90 return true; |
| 92 } | 91 } |
| 93 | 92 |
| 94 } // namespace extensions | 93 } // namespace extensions |
| OLD | NEW |