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/renderer/pepper/chrome_renderer_pepper_host_factory.h" | 5 #include "chrome/renderer/pepper/chrome_renderer_pepper_host_factory.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "chrome/renderer/pepper/pepper_flash_font_file_host.h" | 8 #include "chrome/renderer/pepper/pepper_flash_font_file_host.h" |
| 9 #include "chrome/renderer/pepper/pepper_flash_fullscreen_host.h" |
9 #include "chrome/renderer/pepper/pepper_flash_menu_host.h" | 10 #include "chrome/renderer/pepper/pepper_flash_menu_host.h" |
10 #include "content/public/renderer/renderer_ppapi_host.h" | 11 #include "content/public/renderer/renderer_ppapi_host.h" |
11 #include "ppapi/host/ppapi_host.h" | 12 #include "ppapi/host/ppapi_host.h" |
12 #include "ppapi/host/resource_host.h" | 13 #include "ppapi/host/resource_host.h" |
13 #include "ppapi/proxy/ppapi_messages.h" | 14 #include "ppapi/proxy/ppapi_messages.h" |
14 #include "ppapi/proxy/ppapi_message_utils.h" | 15 #include "ppapi/proxy/ppapi_message_utils.h" |
15 #include "ppapi/shared_impl/ppapi_permissions.h" | 16 #include "ppapi/shared_impl/ppapi_permissions.h" |
16 | 17 |
17 using ppapi::host::ResourceHost; | 18 using ppapi::host::ResourceHost; |
18 | 19 |
(...skipping 25 matching lines...) Expand all Loading... |
44 case PpapiHostMsg_FlashFontFile_Create::ID: { | 45 case PpapiHostMsg_FlashFontFile_Create::ID: { |
45 ppapi::proxy::SerializedFontDescription description; | 46 ppapi::proxy::SerializedFontDescription description; |
46 PP_PrivateFontCharset charset; | 47 PP_PrivateFontCharset charset; |
47 if (ppapi::UnpackMessage<PpapiHostMsg_FlashFontFile_Create>( | 48 if (ppapi::UnpackMessage<PpapiHostMsg_FlashFontFile_Create>( |
48 message, &description, &charset)) { | 49 message, &description, &charset)) { |
49 return scoped_ptr<ResourceHost>(new PepperFlashFontFileHost( | 50 return scoped_ptr<ResourceHost>(new PepperFlashFontFileHost( |
50 host_, instance, params.pp_resource(), description, charset)); | 51 host_, instance, params.pp_resource(), description, charset)); |
51 } | 52 } |
52 break; | 53 break; |
53 } | 54 } |
| 55 case PpapiHostMsg_FlashFullscreen_Create::ID: { |
| 56 return scoped_ptr<ResourceHost>(new PepperFlashFullscreenHost( |
| 57 host_, instance, params.pp_resource())); |
| 58 break; |
| 59 } |
54 case PpapiHostMsg_FlashMenu_Create::ID: { | 60 case PpapiHostMsg_FlashMenu_Create::ID: { |
55 ppapi::proxy::SerializedFlashMenu serialized_menu; | 61 ppapi::proxy::SerializedFlashMenu serialized_menu; |
56 if (ppapi::UnpackMessage<PpapiHostMsg_FlashMenu_Create>( | 62 if (ppapi::UnpackMessage<PpapiHostMsg_FlashMenu_Create>( |
57 message, &serialized_menu)) { | 63 message, &serialized_menu)) { |
58 return scoped_ptr<ResourceHost>(new PepperFlashMenuHost( | 64 return scoped_ptr<ResourceHost>(new PepperFlashMenuHost( |
59 host_, instance, params.pp_resource(), serialized_menu)); | 65 host_, instance, params.pp_resource(), serialized_menu)); |
60 } | 66 } |
61 break; | 67 break; |
62 } | 68 } |
63 } | 69 } |
64 } | 70 } |
65 | 71 |
66 return scoped_ptr<ResourceHost>(); | 72 return scoped_ptr<ResourceHost>(); |
67 } | 73 } |
68 | 74 |
69 } // namespace chrome | 75 } // namespace chrome |
OLD | NEW |