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

Side by Side Diff: plugin/npapi_host_control/win/np_plugin_proxy.h

Issue 210005: Rewrote full-screen support on Windows. O3D now always creates its own... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: '' Created 11 years, 3 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
1 /* 1 /*
2 * Copyright 2009, Google Inc. 2 * Copyright 2009, Google Inc.
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 // argument_values: Array of string-argument values to be passed to the 62 // argument_values: Array of string-argument values to be passed to the
63 // construction routine NPP_New. 63 // construction routine NPP_New.
64 // Returns: 64 // Returns:
65 // true if the plugin successfully loaded and initialized in the provided 65 // true if the plugin successfully loaded and initialized in the provided
66 // window. 66 // window.
67 bool Init(NPBrowserProxy* browser_proxy, 67 bool Init(NPBrowserProxy* browser_proxy,
68 const NPWindow& window, 68 const NPWindow& window,
69 const std::vector<CStringA>& argument_names, 69 const std::vector<CStringA>& argument_names,
70 const std::vector<CStringA>& argument_values); 70 const std::vector<CStringA>& argument_values);
71 71
72 // Sets the target window of the npapi plugin. This may be called
73 // repeatedly during its lifetime, in particular to set the plugin's
74 // size.
75 bool SetWindow(const NPWindow& window);
76
72 // Frees all resources allocated in Init, and blocks on all pending stream 77 // Frees all resources allocated in Init, and blocks on all pending stream
73 // operations. 78 // operations.
74 void TearDown(); 79 void TearDown();
75 80
76 // Get the 'v-table' interface for the hosted plugin member functions. 81 // Get the 'v-table' interface for the hosted plugin member functions.
77 const NPPluginFuncs* GetPluginFunctions() const { 82 const NPPluginFuncs* GetPluginFunctions() const {
78 return &plugin_funcs_; 83 return &plugin_funcs_;
79 } 84 }
80 85
81 // Get the plugin data associated with this instance. 86 // Get the plugin data associated with this instance.
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 149
145 // Global count of the number of currently live plugin instances. Used 150 // Global count of the number of currently live plugin instances. Used
146 // to ensure that NP_Initialize and NP_Shutdown are called only once 151 // to ensure that NP_Initialize and NP_Shutdown are called only once
147 // per loading of the plugin module. 152 // per loading of the plugin module.
148 static int kPluginInstanceCount; 153 static int kPluginInstanceCount;
149 154
150 DISALLOW_COPY_AND_ASSIGN(NPPluginProxy); 155 DISALLOW_COPY_AND_ASSIGN(NPPluginProxy);
151 }; 156 };
152 157
153 #endif // O3D_PLUGIN_NPAPI_HOST_CONTROL_WIN_NP_PLUGIN_PROXY_H_ 158 #endif // O3D_PLUGIN_NPAPI_HOST_CONTROL_WIN_NP_PLUGIN_PROXY_H_
OLDNEW
« no previous file with comments | « plugin/npapi_host_control/win/host_control.cc ('k') | plugin/npapi_host_control/win/np_plugin_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698