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

Side by Side Diff: chrome/plugin/webplugin_accelerated_surface_proxy_mac.h

Issue 6672048: Move plugin code to content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 9 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
OLDNEW
(Empty)
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_PLUGIN_WEBPLUGIN_ACCELERATED_SURFACE_PROXY_H_
6 #define CHROME_PLUGIN_WEBPLUGIN_ACCELERATED_SURFACE_PROXY_H_
7 #pragma once
8
9 #include "webkit/plugins/npapi/webplugin_accelerated_surface_mac.h"
10
11 class WebPluginProxy;
12 class AcceleratedSurface;
13
14 // Out-of-process implementation of WebPluginAcceleratedSurface that proxies
15 // calls through a WebPluginProxy.
16 class WebPluginAcceleratedSurfaceProxy
17 : public webkit::npapi::WebPluginAcceleratedSurface {
18 public:
19 // Creates a new WebPluginAcceleratedSurfaceProxy that uses plugin_proxy
20 // to proxy calls. plugin_proxy must outlive this object.
21 WebPluginAcceleratedSurfaceProxy(WebPluginProxy* plugin_proxy);
22 virtual ~WebPluginAcceleratedSurfaceProxy();
23
24 // WebPluginAcceleratedSurface implementation.
25 virtual void SetWindowHandle(gfx::PluginWindowHandle window);
26 virtual void SetSize(const gfx::Size& size);
27 virtual CGLContextObj context();
28 virtual void StartDrawing();
29 virtual void EndDrawing();
30
31 private:
32 WebPluginProxy* plugin_proxy_; // Weak ref.
33 gfx::PluginWindowHandle window_handle_;
34 AcceleratedSurface* surface_;
35
36 DISALLOW_COPY_AND_ASSIGN(WebPluginAcceleratedSurfaceProxy);
37 };
38
39 #endif // CHROME_PLUGIN_WEBPLUGIN_ACCELERATED_SURFACE_PROXY_H_
OLDNEW
« no previous file with comments | « chrome/plugin/plugin_thread.cc ('k') | chrome/plugin/webplugin_accelerated_surface_proxy_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698