OLD | NEW |
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 Loading... |
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(¤t_print_settings_, 0, sizeof(current_print_settings_)); | 920 memset(¤t_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 Loading... |
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 |
OLD | NEW |