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

Side by Side Diff: content/child/npapi/webplugin_delegate_impl_mac.mm

Issue 23503043: Load NPAPI plugin resources through the browser process directly instead of going through the render (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 7 years, 3 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) 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 int ExternalDragTracker::WebEventButtonModifierMask() { 139 int ExternalDragTracker::WebEventButtonModifierMask() {
140 return WebInputEvent::LeftButtonDown | 140 return WebInputEvent::LeftButtonDown |
141 WebInputEvent::RightButtonDown | 141 WebInputEvent::RightButtonDown |
142 WebInputEvent::MiddleButtonDown; 142 WebInputEvent::MiddleButtonDown;
143 } 143 }
144 144
145 #pragma mark - 145 #pragma mark -
146 #pragma mark Core WebPluginDelegate implementation 146 #pragma mark Core WebPluginDelegate implementation
147 147
148 WebPluginDelegateImpl::WebPluginDelegateImpl( 148 WebPluginDelegateImpl::WebPluginDelegateImpl(
149 WebPlugin* plugin,
149 PluginInstance* instance) 150 PluginInstance* instance)
150 : windowed_handle_(gfx::kNullPluginWindow), 151 : windowed_handle_(gfx::kNullPluginWindow),
151 // all Mac plugins are "windowless" in the Windows/X11 sense 152 // all Mac plugins are "windowless" in the Windows/X11 sense
152 windowless_(true), 153 windowless_(true),
153 plugin_(NULL), 154 plugin_(plugin),
154 instance_(instance), 155 instance_(instance),
155 quirks_(0), 156 quirks_(0),
156 use_buffer_context_(true), 157 use_buffer_context_(true),
157 buffer_context_(NULL), 158 buffer_context_(NULL),
158 layer_(nil), 159 layer_(nil),
159 surface_(NULL), 160 surface_(NULL),
160 renderer_(nil), 161 renderer_(nil),
161 containing_window_has_focus_(false), 162 containing_window_has_focus_(false),
162 initial_window_focus_(false), 163 initial_window_focus_(false),
163 container_is_visible_(false), 164 container_is_visible_(false),
(...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after
718 window_rect_.width(), window_rect_.height())]; 719 window_rect_.width(), window_rect_.height())];
719 [CATransaction commit]; 720 [CATransaction commit];
720 721
721 [renderer_ setBounds:[layer_ bounds]]; 722 [renderer_ setBounds:[layer_ bounds]];
722 surface_->SetSize(window_rect_.size()); 723 surface_->SetSize(window_rect_.size());
723 // Kick off the drawing timer, if necessary. 724 // Kick off the drawing timer, if necessary.
724 PluginVisibilityChanged(); 725 PluginVisibilityChanged();
725 } 726 }
726 727
727 } // namespace content 728 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698