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

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

Issue 8065026: Plumbing for fullscreen change event notification for plugins. (Closed) Base URL: svn://svn.chromium.org/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 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" 5 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 905 matching lines...) Expand 10 before | Expand all | Expand 10 after
916 DCHECK(plugin_print_interface_); 916 DCHECK(plugin_print_interface_);
917 if (plugin_print_interface_) 917 if (plugin_print_interface_)
918 plugin_print_interface_->End(pp_instance()); 918 plugin_print_interface_->End(pp_instance());
919 919
920 memset(&current_print_settings_, 0, sizeof(current_print_settings_)); 920 memset(&current_print_settings_, 0, sizeof(current_print_settings_));
921 #if defined(OS_MACOSX) 921 #if defined(OS_MACOSX)
922 last_printed_page_ = NULL; 922 last_printed_page_ = NULL;
923 #endif // defined(OS_MACOSX) 923 #endif // defined(OS_MACOSX)
924 } 924 }
925 925
926 void PluginInstance::OnFullscreenChanged() {
927 }
928
926 bool PluginInstance::FlashIsFullscreenOrPending() { 929 bool PluginInstance::FlashIsFullscreenOrPending() {
927 return fullscreen_container_ != NULL; 930 return fullscreen_container_ != NULL;
928 } 931 }
929 932
930 bool PluginInstance::IsFullscreenOrPending() { 933 bool PluginInstance::IsFullscreenOrPending() {
931 return desired_fullscreen_state_; 934 return desired_fullscreen_state_;
932 } 935 }
933 936
934 void PluginInstance::SetFullscreen(bool fullscreen, bool delay_report) { 937 void PluginInstance::SetFullscreen(bool fullscreen, bool delay_report) {
935 // Keep a reference on the stack. See NOTE above. 938 // Keep a reference on the stack. See NOTE above.
(...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after
1659 } 1662 }
1660 1663
1661 void PluginInstance::DoSetCursor(WebCursorInfo* cursor) { 1664 void PluginInstance::DoSetCursor(WebCursorInfo* cursor) {
1662 cursor_.reset(cursor); 1665 cursor_.reset(cursor);
1663 if (fullscreen_container_) 1666 if (fullscreen_container_)
1664 fullscreen_container_->DidChangeCursor(*cursor); 1667 fullscreen_container_->DidChangeCursor(*cursor);
1665 } 1668 }
1666 1669
1667 } // namespace ppapi 1670 } // namespace ppapi
1668 } // namespace webkit 1671 } // namespace webkit
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/ppapi_plugin_instance.h ('k') | webkit/plugins/ppapi/ppapi_webplugin_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698