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

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 2620 matching lines...) Expand 10 before | Expand all | Expand 10 after
2631 PP_Bool PluginInstance::GetScreenSize(PP_Instance instance, PP_Size* size) { 2631 PP_Bool PluginInstance::GetScreenSize(PP_Instance instance, PP_Size* size) {
2632 gfx::Size screen_size = delegate()->GetScreenSize(); 2632 gfx::Size screen_size = delegate()->GetScreenSize();
2633 *size = PP_MakeSize(screen_size.width(), screen_size.height()); 2633 *size = PP_MakeSize(screen_size.width(), screen_size.height());
2634 return PP_TRUE; 2634 return PP_TRUE;
2635 } 2635 }
2636 2636
2637 ::ppapi::thunk::PPB_Flash_API* PluginInstance::GetFlashAPI() { 2637 ::ppapi::thunk::PPB_Flash_API* PluginInstance::GetFlashAPI() {
2638 return &flash_impl_; 2638 return &flash_impl_;
2639 } 2639 }
2640 2640
2641 ::ppapi::thunk::PPB_Flash_Clipboard_API*
2642 PluginInstance::GetFlashClipboardAPI(PP_Instance /*instance*/) {
2643 NOTIMPLEMENTED();
2644 return NULL;
2645 }
2646
2641 ::ppapi::thunk::PPB_Flash_Functions_API* 2647 ::ppapi::thunk::PPB_Flash_Functions_API*
2642 PluginInstance::GetFlashFunctionsAPI(PP_Instance /*instance*/) { 2648 PluginInstance::GetFlashFunctionsAPI(PP_Instance /*instance*/) {
2643 NOTIMPLEMENTED(); 2649 NOTIMPLEMENTED();
2644 return NULL; 2650 return NULL;
2645 } 2651 }
2646 2652
2647 ::ppapi::thunk::PPB_Gamepad_API* PluginInstance::GetGamepadAPI( 2653 ::ppapi::thunk::PPB_Gamepad_API* PluginInstance::GetGamepadAPI(
2648 PP_Instance /* instance */) { 2654 PP_Instance /* instance */) {
2649 return &gamepad_impl_; 2655 return &gamepad_impl_;
2650 } 2656 }
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
2989 screen_size_for_fullscreen_ = gfx::Size(); 2995 screen_size_for_fullscreen_ = gfx::Size();
2990 WebElement element = container_->element(); 2996 WebElement element = container_->element();
2991 element.setAttribute(WebString::fromUTF8(kWidth), width_before_fullscreen_); 2997 element.setAttribute(WebString::fromUTF8(kWidth), width_before_fullscreen_);
2992 element.setAttribute(WebString::fromUTF8(kHeight), height_before_fullscreen_); 2998 element.setAttribute(WebString::fromUTF8(kHeight), height_before_fullscreen_);
2993 element.setAttribute(WebString::fromUTF8(kBorder), border_before_fullscreen_); 2999 element.setAttribute(WebString::fromUTF8(kBorder), border_before_fullscreen_);
2994 element.setAttribute(WebString::fromUTF8(kStyle), style_before_fullscreen_); 3000 element.setAttribute(WebString::fromUTF8(kStyle), style_before_fullscreen_);
2995 } 3001 }
2996 3002
2997 } // namespace ppapi 3003 } // namespace ppapi
2998 } // namespace webkit 3004 } // namespace webkit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698