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

Unified Diff: src/trusted/plugin/srpc/video_chrome.cc

Issue 2981011: Move plugin/srpc contents to the more appropriately named plugin/common.... (Closed) Base URL: http://nativeclient.googlecode.com/svn/trunk/src/native_client/
Patch Set: '' Created 10 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/trusted/plugin/srpc/utility.cc ('k') | src/trusted/plugin/srpc_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/trusted/plugin/srpc/video_chrome.cc
===================================================================
--- src/trusted/plugin/srpc/video_chrome.cc (revision 2716)
+++ src/trusted/plugin/srpc/video_chrome.cc (working copy)
@@ -1,135 +0,0 @@
-// Copyright (c) 2008 The Native Client Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "native_client/src/trusted/plugin/npapi/video.h"
-#include "native_client/src/trusted/plugin/srpc/browser_interface.h"
-
-// This file provides empty implementation for video functions used in NaCl code
-// These functions should not be used when running as part of Chrome, but to
-// avoid multiple changes in many places in the code, we just provide this
-// dummy implementation.
-
-namespace plugin {
-
-class Plugin;
-
-void VideoMap::Redraw() {
- return;
-}
-
-void VideoMap::RedrawAsync(void* platform_parm) {
- return;
-}
-
-// assumes event is already normalized to NaClMultimediaEvent
-int VideoMap::EventQueuePut(union NaClMultimediaEvent* event) {
- return -1;
-}
-
-// tests event queue to see if it is full
-int VideoMap::EventQueueIsFull() {
- return 1;
-}
-
-// Gets the last recorded mouse motion (position)
-// note: outputs normalized for NaCl events
-void VideoMap::GetMotion(uint16_t* x, uint16_t* y) {
- return;
-}
-
-// Sets the mouse motion (position)
-// note: the inputs must be normalized for NaCl events
-void VideoMap::SetMotion(uint16_t x, uint16_t y, int last_valid) {
- return;
-}
-
-// Gets the relative mouse motion and updates position
-// note: the inputs must be normalized for NaCl events
-void VideoMap::GetRelativeMotion(uint16_t x,
- uint16_t y,
- int16_t* rel_x,
- int16_t* rel_y) {
- return;
-}
-
-// Gets the current mouse button state
-// note: output is normalized for NaCl events
-int VideoMap::GetButton() {
- return 0;
-}
-
-// Modifies the mouse button state
-// note: input must be normalized for NaCl events
-void VideoMap::SetButton(int button, int state) {
- return;
-}
-
-// Modifies the keyboard modifier state (shift, ctrl, alt, etc)
-// note: input must be normalized for NaCl events
-void VideoMap::SetKeyMod(int nsym, int state) {
- return;
-}
-
-// Gets the current keyboard modifier state
-// note: output is normalized for NaCl Events
-int VideoMap::GetKeyMod() {
- return 0;
-}
-
-// handle video map specific NPAPI SetWindow
-bool VideoMap::SetWindow(PluginWindow* window) {
- // TODO(gregoryd): do something with this information
- // or remove this file.
- return true;
-}
-
-int16_t VideoMap::HandleEvent(void* param) {
- return 0;
-}
-
-ScriptableHandle* VideoMap::VideoSharedMemorySetup() {
- return NULL;
-}
-
-void VideoMap::Invalidate() {
- return;
-}
-
-VideoCallbackData* VideoMap::InitCallbackData(nacl::DescWrapper* desc,
- Plugin* p,
- MultimediaSocket* msp) {
- return NULL;
-}
-
-// static method
-VideoCallbackData* VideoMap::ReleaseCallbackData(VideoCallbackData* vcd) {
- return NULL;
-}
-
-// static method
-// normally, the Release version is preferred, which reference counts.
-// in some cases we may just need to forcefully delete the callback data,
-// and ignore the refcount.
-void VideoMap::ForceDeleteCallbackData(VideoCallbackData* vcd) {
- return;
-}
-
-// opens shared memory map into untrusted space
-// returns 0 success, -1 failure
-int VideoMap::InitializeSharedMemory(PluginWindow* window) {
- return -1;
-}
-
-// this is the draw method the upcall thread should invoke
-void VideoMap::RequestRedraw() {
- return;
-}
-
-VideoMap::VideoMap(Plugin* plugin) {
-}
-
-VideoMap::~VideoMap() {
-}
-
-} // namespace plugin
« no previous file with comments | « src/trusted/plugin/srpc/utility.cc ('k') | src/trusted/plugin/srpc_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698