Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(322)

Side by Side Diff: webkit/plugins/ppapi/ppb_flash_impl.cc

Issue 11413200: Refactored PPB_Flash GetSettings to the new pepper resource model (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/plugins/ppapi/ppb_flash_impl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/ppb_flash_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698