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

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

Issue 8291002: PPAPI Fullscreen: move out of Dev. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 void StopFind(); 221 void StopFind();
222 222
223 bool SupportsPrintInterface(); 223 bool SupportsPrintInterface();
224 int PrintBegin(const gfx::Rect& printable_area, int printer_dpi); 224 int PrintBegin(const gfx::Rect& printable_area, int printer_dpi);
225 bool PrintPage(int page_number, WebKit::WebCanvas* canvas); 225 bool PrintPage(int page_number, WebKit::WebCanvas* canvas);
226 void PrintEnd(); 226 void PrintEnd();
227 227
228 void Graphics3DContextLost(); 228 void Graphics3DContextLost();
229 229
230 // There are 2 implementations of the fullscreen interface 230 // There are 2 implementations of the fullscreen interface
231 // PPB_FlashFullscreen_Dev is used by Pepper Flash. 231 // PPB_FlashFullscreen is used by Pepper Flash.
232 // PPB_Fullscreen_Dev is intended for other applications including NaCl. 232 // PPB_Fullscreen is intended for other applications including NaCl.
233 // The two interface are mutually exclusive. 233 // The two interface are mutually exclusive.
234 234
235 // Implementation of PPB_FlashFullscreen. 235 // Implementation of PPB_FlashFullscreen.
236 236
237 // Because going to fullscreen is asynchronous (but going out is not), there 237 // Because going to fullscreen is asynchronous (but going out is not), there
238 // are 3 states: 238 // are 3 states:
239 // - normal : fullscreen_container_ == NULL 239 // - normal : fullscreen_container_ == NULL
240 // flash_fullscreen_ == false 240 // flash_fullscreen_ == false
241 // - fullscreen pending: fullscreen_container_ != NULL 241 // - fullscreen pending: fullscreen_container_ != NULL
242 // flash_fullscreen_ == false 242 // flash_fullscreen_ == false
(...skipping 10 matching lines...) Expand all
253 // Switches between fullscreen and normal mode. If |delay_report| is set to 253 // Switches between fullscreen and normal mode. If |delay_report| is set to
254 // false, it may report the new state through DidChangeView immediately. If 254 // false, it may report the new state through DidChangeView immediately. If
255 // true, it will delay it. When called from the plugin, delay_report should be 255 // true, it will delay it. When called from the plugin, delay_report should be
256 // true to avoid re-entrancy. 256 // true to avoid re-entrancy.
257 void FlashSetFullscreen(bool fullscreen, bool delay_report); 257 void FlashSetFullscreen(bool fullscreen, bool delay_report);
258 258
259 FullscreenContainer* fullscreen_container() const { 259 FullscreenContainer* fullscreen_container() const {
260 return fullscreen_container_; 260 return fullscreen_container_;
261 } 261 }
262 262
263 // Implementation of PPB_Fullscreen_Dev. 263 // Implementation of PPB_Fullscreen.
264 264
265 // Because going to/from fullscreen is asynchronous, there are 4 states: 265 // Because going to/from fullscreen is asynchronous, there are 4 states:
266 // - normal : desired_fullscreen_state_ == false 266 // - normal : desired_fullscreen_state_ == false
267 // fullscreen_ == false 267 // fullscreen_ == false
268 // - fullscreen pending: desired_fullscreen_state_ == true 268 // - fullscreen pending: desired_fullscreen_state_ == true
269 // fullscreen_ == false 269 // fullscreen_ == false
270 // - fullscreen : desired_fullscreen_state_ == true 270 // - fullscreen : desired_fullscreen_state_ == true
271 // fullscreen_ == true 271 // fullscreen_ == true
272 // - normal pending : desired_fullscreen_state_ = false 272 // - normal pending : desired_fullscreen_state_ = false
273 // fullscreen_ = true 273 // fullscreen_ = true
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
561 561
562 // Plugin container for fullscreen mode. NULL if not in fullscreen mode. Note: 562 // Plugin container for fullscreen mode. NULL if not in fullscreen mode. Note:
563 // there is a transition state where fullscreen_container_ is non-NULL but 563 // there is a transition state where fullscreen_container_ is non-NULL but
564 // flash_fullscreen_ is false (see above). 564 // flash_fullscreen_ is false (see above).
565 FullscreenContainer* fullscreen_container_; 565 FullscreenContainer* fullscreen_container_;
566 566
567 // True if we are in fullscreen mode. False if we are in normal mode or 567 // True if we are in fullscreen mode. False if we are in normal mode or
568 // in transition to fullscreen. 568 // in transition to fullscreen.
569 bool flash_fullscreen_; 569 bool flash_fullscreen_;
570 570
571 // Implementation of PPB_Fullscreen_Dev. 571 // Implementation of PPB_Fullscreen.
572 572
573 // Since entering fullscreen mode is an asynchronous operation, we set this 573 // Since entering fullscreen mode is an asynchronous operation, we set this
574 // variable to the desired state at the time we issue the fullscreen change 574 // variable to the desired state at the time we issue the fullscreen change
575 // request. The plugin will receive a DidChangeView event when it goes 575 // request. The plugin will receive a DidChangeView event when it goes
576 // fullscreen. 576 // fullscreen.
577 bool desired_fullscreen_state_; 577 bool desired_fullscreen_state_;
578 578
579 // True if we are in fullscreen mode. False if we are in normal mode. 579 // True if we are in fullscreen mode. False if we are in normal mode.
580 // It reflects the previous state when in transition. 580 // It reflects the previous state when in transition.
581 bool fullscreen_; 581 bool fullscreen_;
(...skipping 30 matching lines...) Expand all
612 612
613 PP_CompletionCallback lock_mouse_callback_; 613 PP_CompletionCallback lock_mouse_callback_;
614 614
615 DISALLOW_COPY_AND_ASSIGN(PluginInstance); 615 DISALLOW_COPY_AND_ASSIGN(PluginInstance);
616 }; 616 };
617 617
618 } // namespace ppapi 618 } // namespace ppapi
619 } // namespace webkit 619 } // namespace webkit
620 620
621 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ 621 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698