| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/child/npapi/webplugin_delegate_impl.h" | 5 #include "content/child/npapi/webplugin_delegate_impl.h" |
| 6 | 6 |
| 7 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
| 8 #import <QuartzCore/QuartzCore.h> | 8 #import <QuartzCore/QuartzCore.h> |
| 9 #include <stdint.h> |
| 10 #include <string.h> |
| 9 #include <unistd.h> | 11 #include <unistd.h> |
| 10 | 12 |
| 11 #include <set> | 13 #include <set> |
| 12 #include <string> | 14 #include <string> |
| 13 | 15 |
| 16 #include "base/macros.h" |
| 14 #include "base/memory/scoped_ptr.h" | 17 #include "base/memory/scoped_ptr.h" |
| 15 #include "base/strings/string_util.h" | 18 #include "base/strings/string_util.h" |
| 16 #include "base/strings/sys_string_conversions.h" | 19 #include "base/strings/sys_string_conversions.h" |
| 17 #include "base/strings/utf_string_conversions.h" | 20 #include "base/strings/utf_string_conversions.h" |
| 18 #include "content/child/npapi/plugin_instance.h" | 21 #include "content/child/npapi/plugin_instance.h" |
| 19 #include "content/child/npapi/plugin_lib.h" | 22 #include "content/child/npapi/plugin_lib.h" |
| 20 #include "content/child/npapi/plugin_web_event_converter_mac.h" | 23 #include "content/child/npapi/plugin_web_event_converter_mac.h" |
| 21 #include "content/child/npapi/webplugin.h" | 24 #include "content/child/npapi/webplugin.h" |
| 22 #include "content/child/npapi/webplugin_accelerated_surface_mac.h" | 25 #include "content/child/npapi/webplugin_accelerated_surface_mac.h" |
| 23 #include "content/common/cursors/webcursor.h" | 26 #include "content/common/cursors/webcursor.h" |
| (...skipping 690 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 714 window_rect_.width(), window_rect_.height())]; | 717 window_rect_.width(), window_rect_.height())]; |
| 715 [CATransaction commit]; | 718 [CATransaction commit]; |
| 716 | 719 |
| 717 [renderer_ setBounds:[layer_ bounds]]; | 720 [renderer_ setBounds:[layer_ bounds]]; |
| 718 surface_->SetSize(window_rect_.size()); | 721 surface_->SetSize(window_rect_.size()); |
| 719 // Kick off the drawing timer, if necessary. | 722 // Kick off the drawing timer, if necessary. |
| 720 PluginVisibilityChanged(); | 723 PluginVisibilityChanged(); |
| 721 } | 724 } |
| 722 | 725 |
| 723 } // namespace content | 726 } // namespace content |
| OLD | NEW |