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

Side by Side Diff: ppapi/proxy/ppb_flash_proxy.cc

Issue 10501006: Connect up flash blacklist entries to GetSettingInt (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clarify comments Created 8 years, 6 months 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 | « ppapi/proxy/ppapi_messages.h ('k') | ppapi/shared_impl/ppapi_preferences.h » ('j') | 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 "ppapi/proxy/ppb_flash_proxy.h" 5 #include "ppapi/proxy/ppb_flash_proxy.h"
6 6
7 #include <map> 7 #include <map>
8 #include <set> 8 #include <set>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after
574 } 574 }
575 575
576 int32_t PPB_Flash_Proxy::GetSettingInt(PP_Instance instance, 576 int32_t PPB_Flash_Proxy::GetSettingInt(PP_Instance instance,
577 PP_FlashSetting setting) { 577 PP_FlashSetting setting) {
578 switch (setting) { 578 switch (setting) {
579 case PP_FLASHSETTING_3DENABLED: 579 case PP_FLASHSETTING_3DENABLED:
580 return static_cast<PluginDispatcher*>(dispatcher())->preferences(). 580 return static_cast<PluginDispatcher*>(dispatcher())->preferences().
581 is_3d_supported; 581 is_3d_supported;
582 case PP_FLASHSETTING_INCOGNITO: 582 case PP_FLASHSETTING_INCOGNITO:
583 return static_cast<PluginDispatcher*>(dispatcher())->incognito(); 583 return static_cast<PluginDispatcher*>(dispatcher())->incognito();
584 case PP_FLASHSETTING_STAGE3DENABLED:
585 return static_cast<PluginDispatcher*>(dispatcher())->preferences().
586 is_stage3d_supported;
584 default: 587 default:
585 return -1; 588 return -1;
586 } 589 }
587 } 590 }
588 591
589 PP_Bool PPB_Flash_Proxy::IsClipboardFormatAvailable( 592 PP_Bool PPB_Flash_Proxy::IsClipboardFormatAvailable(
590 PP_Instance instance, 593 PP_Instance instance,
591 PP_Flash_Clipboard_Type clipboard_type, 594 PP_Flash_Clipboard_Type clipboard_type,
592 PP_Flash_Clipboard_Format format) { 595 PP_Flash_Clipboard_Format format) {
593 if (!IsValidClipboardType(clipboard_type) || !IsValidClipboardFormat(format)) 596 if (!IsValidClipboardType(clipboard_type) || !IsValidClipboardFormat(format))
(...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after
1174 // It's rarely used enough that we just request this interface when needed. 1177 // It's rarely used enough that we just request this interface when needed.
1175 const PPB_Flash_Print_1_0* print_interface = 1178 const PPB_Flash_Print_1_0* print_interface =
1176 static_cast<const PPB_Flash_Print_1_0*>( 1179 static_cast<const PPB_Flash_Print_1_0*>(
1177 dispatcher()->local_get_interface()(PPB_FLASH_PRINT_INTERFACE_1_0)); 1180 dispatcher()->local_get_interface()(PPB_FLASH_PRINT_INTERFACE_1_0));
1178 if (print_interface) 1181 if (print_interface)
1179 print_interface->InvokePrinting(instance); 1182 print_interface->InvokePrinting(instance);
1180 } 1183 }
1181 1184
1182 } // namespace proxy 1185 } // namespace proxy
1183 } // namespace ppapi 1186 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/proxy/ppapi_messages.h ('k') | ppapi/shared_impl/ppapi_preferences.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698