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 "extensions/browser/api/guest_view/guest_view_internal_api.h" | 5 #include "extensions/browser/api/guest_view/guest_view_internal_api.h" |
6 | 6 |
7 #include "components/guest_view/browser/guest_view_base.h" | 7 #include "components/guest_view/browser/guest_view_base.h" |
8 #include "components/guest_view/browser/guest_view_manager.h" | 8 #include "components/guest_view/browser/guest_view_manager.h" |
9 #include "components/guest_view/common/guest_view_constants.h" | 9 #include "components/guest_view/common/guest_view_constants.h" |
10 #include "content/public/browser/render_frame_host.h" | 10 #include "content/public/browser/render_frame_host.h" |
11 #include "content/public/browser/render_process_host.h" | 11 #include "content/public/browser/render_process_host.h" |
12 #include "extensions/browser/guest_view/extensions_guest_view_manager_delegate.h
" | 12 #include "extensions/browser/guest_view/extensions_guest_view_manager_delegate.h
" |
13 #include "extensions/common/api/guest_view_internal.h" | 13 #include "extensions/common/api/guest_view_internal.h" |
14 #include "extensions/common/permissions/permissions_data.h" | 14 #include "extensions/common/permissions/permissions_data.h" |
15 | 15 |
16 using guest_view::GuestViewBase; | 16 using guest_view::GuestViewBase; |
17 using guest_view::GuestViewManager; | 17 using guest_view::GuestViewManager; |
18 using guest_view::GuestViewManagerDelegate; | 18 using guest_view::GuestViewManagerDelegate; |
19 | 19 |
20 namespace guest_view_internal = extensions::core_api::guest_view_internal; | 20 namespace guest_view_internal = extensions::api::guest_view_internal; |
21 | 21 |
22 namespace extensions { | 22 namespace extensions { |
23 | 23 |
24 GuestViewInternalCreateGuestFunction:: | 24 GuestViewInternalCreateGuestFunction:: |
25 GuestViewInternalCreateGuestFunction() { | 25 GuestViewInternalCreateGuestFunction() { |
26 } | 26 } |
27 | 27 |
28 bool GuestViewInternalCreateGuestFunction::RunAsync() { | 28 bool GuestViewInternalCreateGuestFunction::RunAsync() { |
29 std::string view_type; | 29 std::string view_type; |
30 EXTENSION_FUNCTION_VALIDATE(args_->GetString(0, &view_type)); | 30 EXTENSION_FUNCTION_VALIDATE(args_->GetString(0, &view_type)); |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 set_size_params.normal_size.reset(new gfx::Size( | 133 set_size_params.normal_size.reset(new gfx::Size( |
134 params->params.normal->width, params->params.normal->height)); | 134 params->params.normal->width, params->params.normal->height)); |
135 } | 135 } |
136 | 136 |
137 guest->SetSize(set_size_params); | 137 guest->SetSize(set_size_params); |
138 SendResponse(true); | 138 SendResponse(true); |
139 return true; | 139 return true; |
140 } | 140 } |
141 | 141 |
142 } // namespace extensions | 142 } // namespace extensions |
OLD | NEW |