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 <unistd.h> | 9 #include <unistd.h> |
10 | 10 |
(...skipping 13 matching lines...) Expand all Loading... |
24 #include "content/child/npapi/webplugin_accelerated_surface_mac.h" | 24 #include "content/child/npapi/webplugin_accelerated_surface_mac.h" |
25 #include "skia/ext/skia_utils_mac.h" | 25 #include "skia/ext/skia_utils_mac.h" |
26 #include "third_party/WebKit/public/web/WebInputEvent.h" | 26 #include "third_party/WebKit/public/web/WebInputEvent.h" |
27 #include "ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h" | 27 #include "ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h" |
28 #include "webkit/common/cursors/webcursor.h" | 28 #include "webkit/common/cursors/webcursor.h" |
29 | 29 |
30 using WebKit::WebKeyboardEvent; | 30 using WebKit::WebKeyboardEvent; |
31 using WebKit::WebInputEvent; | 31 using WebKit::WebInputEvent; |
32 using WebKit::WebMouseEvent; | 32 using WebKit::WebMouseEvent; |
33 using WebKit::WebMouseWheelEvent; | 33 using WebKit::WebMouseWheelEvent; |
34 using webkit::WebPluginInfo; | |
35 | 34 |
36 // Important implementation notes: The Mac definition of NPAPI, particularly | 35 // Important implementation notes: The Mac definition of NPAPI, particularly |
37 // the distinction between windowed and windowless modes, differs from the | 36 // the distinction between windowed and windowless modes, differs from the |
38 // Windows and Linux definitions. Most of those differences are | 37 // Windows and Linux definitions. Most of those differences are |
39 // accomodated by the WebPluginDelegate class. | 38 // accomodated by the WebPluginDelegate class. |
40 | 39 |
41 namespace content { | 40 namespace content { |
42 | 41 |
43 namespace { | 42 namespace { |
44 | 43 |
(...skipping 675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
720 window_rect_.width(), window_rect_.height())]; | 719 window_rect_.width(), window_rect_.height())]; |
721 [CATransaction commit]; | 720 [CATransaction commit]; |
722 | 721 |
723 [renderer_ setBounds:[layer_ bounds]]; | 722 [renderer_ setBounds:[layer_ bounds]]; |
724 surface_->SetSize(window_rect_.size()); | 723 surface_->SetSize(window_rect_.size()); |
725 // Kick off the drawing timer, if necessary. | 724 // Kick off the drawing timer, if necessary. |
726 PluginVisibilityChanged(); | 725 PluginVisibilityChanged(); |
727 } | 726 } |
728 | 727 |
729 } // namespace content | 728 } // namespace content |
OLD | NEW |