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

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

Issue 5994002: use accelerated compositing in fullscreen pepper (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: style Created 9 years, 11 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 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 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 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 #ifndef WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_
6 #define WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ 6 #define WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/observer_list.h" 12 #include "base/observer_list.h"
13 #include "base/ref_counted.h" 13 #include "base/ref_counted.h"
14 #include "base/scoped_ptr.h" 14 #include "base/scoped_ptr.h"
15 #include "base/string16.h" 15 #include "base/string16.h"
16 #include "gfx/rect.h" 16 #include "gfx/rect.h"
17 #include "ppapi/c/dev/pp_cursor_type_dev.h" 17 #include "ppapi/c/dev/pp_cursor_type_dev.h"
18 #include "ppapi/c/dev/ppp_graphics_3d_dev.h" 18 #include "ppapi/c/dev/ppp_graphics_3d_dev.h"
19 #include "ppapi/c/dev/ppp_printing_dev.h" 19 #include "ppapi/c/dev/ppp_printing_dev.h"
20 #include "ppapi/c/pp_instance.h" 20 #include "ppapi/c/pp_instance.h"
21 #include "ppapi/c/pp_resource.h" 21 #include "ppapi/c/pp_resource.h"
22 #include "third_party/skia/include/core/SkBitmap.h" 22 #include "third_party/skia/include/core/SkBitmap.h"
23 #include "third_party/WebKit/WebKit/chromium/public/WebCanvas.h" 23 #include "third_party/WebKit/WebKit/chromium/public/WebCanvas.h"
24 #include "webkit/plugins/ppapi/plugin_delegate.h"
24 25
25 struct PP_Var; 26 struct PP_Var;
26 struct PPB_Instance; 27 struct PPB_Instance;
27 struct PPB_Find_Dev; 28 struct PPB_Find_Dev;
28 struct PPB_Fullscreen_Dev; 29 struct PPB_Fullscreen_Dev;
29 struct PPB_Zoom_Dev; 30 struct PPB_Zoom_Dev;
30 struct PPP_Find_Dev; 31 struct PPP_Find_Dev;
31 struct PPP_Instance; 32 struct PPP_Instance;
32 struct PPP_Pdf; 33 struct PPP_Pdf;
33 struct PPP_Selection_Dev; 34 struct PPP_Selection_Dev;
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 188
188 void Graphics3DContextLost(); 189 void Graphics3DContextLost();
189 190
190 // Implementation of PPB_Fullscreen_Dev. 191 // Implementation of PPB_Fullscreen_Dev.
191 bool IsFullscreen(); 192 bool IsFullscreen();
192 bool SetFullscreen(bool fullscreen); 193 bool SetFullscreen(bool fullscreen);
193 194
194 // Implementation of PPB_Flash. 195 // Implementation of PPB_Flash.
195 bool NavigateToURL(const char* url, const char* target); 196 bool NavigateToURL(const char* url, const char* target);
196 197
198 PluginDelegate::PlatformContext3D* CreateContext3D();
199
197 private: 200 private:
198 bool LoadFindInterface(); 201 bool LoadFindInterface();
199 bool LoadPdfInterface(); 202 bool LoadPdfInterface();
200 bool LoadSelectionInterface(); 203 bool LoadSelectionInterface();
201 bool LoadZoomInterface(); 204 bool LoadZoomInterface();
202 205
203 // Determines if we think the plugin has focus, both content area and webkit 206 // Determines if we think the plugin has focus, both content area and webkit
204 // (see has_webkit_focus_ below). 207 // (see has_webkit_focus_ below).
205 bool PluginHasFocus() const; 208 bool PluginHasFocus() const;
206 209
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 // Non-owning pointers to all active observers. 314 // Non-owning pointers to all active observers.
312 ObserverList<Observer, false> observers_; 315 ObserverList<Observer, false> observers_;
313 316
314 DISALLOW_COPY_AND_ASSIGN(PluginInstance); 317 DISALLOW_COPY_AND_ASSIGN(PluginInstance);
315 }; 318 };
316 319
317 } // namespace ppapi 320 } // namespace ppapi
318 } // namespace webkit 321 } // namespace webkit
319 322
320 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ 323 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/fullscreen_container.h ('k') | webkit/plugins/ppapi/ppapi_plugin_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698