| 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 "webkit/plugins/ppapi/ppb_flash_impl.h" | 5 #include "webkit/plugins/ppapi/ppb_flash_impl.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "googleurl/src/gurl.h" | 10 #include "googleurl/src/gurl.h" |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 return instance_->Navigate(data, target, PP_ToBool(from_user_action)); | 168 return instance_->Navigate(data, target, PP_ToBool(from_user_action)); |
| 169 } | 169 } |
| 170 | 170 |
| 171 PP_Bool PPB_Flash_Impl::IsRectTopmost(PP_Instance instance, | 171 PP_Bool PPB_Flash_Impl::IsRectTopmost(PP_Instance instance, |
| 172 const PP_Rect* rect) { | 172 const PP_Rect* rect) { |
| 173 return PP_FromBool(instance_->IsRectTopmost( | 173 return PP_FromBool(instance_->IsRectTopmost( |
| 174 gfx::Rect(rect->point.x, rect->point.y, | 174 gfx::Rect(rect->point.x, rect->point.y, |
| 175 rect->size.width, rect->size.height))); | 175 rect->size.width, rect->size.height))); |
| 176 } | 176 } |
| 177 | 177 |
| 178 PP_Var PPB_Flash_Impl::GetSetting(PP_Instance instance, | |
| 179 PP_FlashSetting setting) { | |
| 180 switch(setting) { | |
| 181 case PP_FLASHSETTING_LSORESTRICTIONS: { | |
| 182 return PP_MakeInt32( | |
| 183 instance_->delegate()->GetLocalDataRestrictions( | |
| 184 instance_->container()->element().document().url(), | |
| 185 instance_->plugin_url())); | |
| 186 } | |
| 187 default: | |
| 188 // No other settings are supported in-process. | |
| 189 return PP_MakeUndefined(); | |
| 190 } | |
| 191 } | |
| 192 | |
| 193 } // namespace ppapi | 178 } // namespace ppapi |
| 194 } // namespace webkit | 179 } // namespace webkit |
| OLD | NEW |