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

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

Issue 11225021: Move flash clipboard to the new proxy and add custom format support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 1 month 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
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/ppapi_plugin_instance.h" 5 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback_helpers.h" 8 #include "base/callback_helpers.h"
9 #include "base/debug/trace_event.h" 9 #include "base/debug/trace_event.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 2857 matching lines...) Expand 10 before | Expand all | Expand 10 after
2868 PP_Bool PluginInstance::GetScreenSize(PP_Instance instance, PP_Size* size) { 2868 PP_Bool PluginInstance::GetScreenSize(PP_Instance instance, PP_Size* size) {
2869 gfx::Size screen_size = delegate()->GetScreenSize(); 2869 gfx::Size screen_size = delegate()->GetScreenSize();
2870 *size = PP_MakeSize(screen_size.width(), screen_size.height()); 2870 *size = PP_MakeSize(screen_size.width(), screen_size.height());
2871 return PP_TRUE; 2871 return PP_TRUE;
2872 } 2872 }
2873 2873
2874 ::ppapi::thunk::PPB_Flash_API* PluginInstance::GetFlashAPI() { 2874 ::ppapi::thunk::PPB_Flash_API* PluginInstance::GetFlashAPI() {
2875 return &flash_impl_; 2875 return &flash_impl_;
2876 } 2876 }
2877 2877
2878 ::ppapi::thunk::PPB_Flash_Clipboard_API*
2879 PluginInstance::GetFlashClipboardAPI(PP_Instance /*instance*/) {
2880 NOTIMPLEMENTED();
2881 return NULL;
2882 }
2883
2878 ::ppapi::thunk::PPB_Flash_Functions_API* 2884 ::ppapi::thunk::PPB_Flash_Functions_API*
2879 PluginInstance::GetFlashFunctionsAPI(PP_Instance /*instance*/) { 2885 PluginInstance::GetFlashFunctionsAPI(PP_Instance /*instance*/) {
2880 NOTIMPLEMENTED(); 2886 NOTIMPLEMENTED();
2881 return NULL; 2887 return NULL;
2882 } 2888 }
2883 2889
2884 ::ppapi::thunk::PPB_Gamepad_API* PluginInstance::GetGamepadAPI( 2890 ::ppapi::thunk::PPB_Gamepad_API* PluginInstance::GetGamepadAPI(
2885 PP_Instance /* instance */) { 2891 PP_Instance /* instance */) {
2886 return &gamepad_impl_; 2892 return &gamepad_impl_;
2887 } 2893 }
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
3226 screen_size_for_fullscreen_ = gfx::Size(); 3232 screen_size_for_fullscreen_ = gfx::Size();
3227 WebElement element = container_->element(); 3233 WebElement element = container_->element();
3228 element.setAttribute(WebString::fromUTF8(kWidth), width_before_fullscreen_); 3234 element.setAttribute(WebString::fromUTF8(kWidth), width_before_fullscreen_);
3229 element.setAttribute(WebString::fromUTF8(kHeight), height_before_fullscreen_); 3235 element.setAttribute(WebString::fromUTF8(kHeight), height_before_fullscreen_);
3230 element.setAttribute(WebString::fromUTF8(kBorder), border_before_fullscreen_); 3236 element.setAttribute(WebString::fromUTF8(kBorder), border_before_fullscreen_);
3231 element.setAttribute(WebString::fromUTF8(kStyle), style_before_fullscreen_); 3237 element.setAttribute(WebString::fromUTF8(kStyle), style_before_fullscreen_);
3232 } 3238 }
3233 3239
3234 } // namespace ppapi 3240 } // namespace ppapi
3235 } // namespace webkit 3241 } // namespace webkit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698