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

Side by Side Diff: content/plugin/webplugin_proxy.cc

Issue 10928072: Remove all support for the Carbon NPAPI event model (Closed) Base URL: http://git.chromium.org/chromium/src.git@test-plugin-cocoa
Patch Set: Rebase Created 8 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
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/plugin/webplugin_proxy.h" 5 #include "content/plugin/webplugin_proxy.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after
752 void WebPluginProxy::AcceleratedPluginSwappedIOSurface() { 752 void WebPluginProxy::AcceleratedPluginSwappedIOSurface() {
753 Send(new PluginHostMsg_AcceleratedPluginSwappedIOSurface( 753 Send(new PluginHostMsg_AcceleratedPluginSwappedIOSurface(
754 route_id_)); 754 route_id_));
755 } 755 }
756 #endif 756 #endif
757 757
758 void WebPluginProxy::OnPaint(const gfx::Rect& damaged_rect) { 758 void WebPluginProxy::OnPaint(const gfx::Rect& damaged_rect) {
759 content::GetContentClient()->SetActiveURL(page_url_); 759 content::GetContentClient()->SetActiveURL(page_url_);
760 760
761 Paint(damaged_rect); 761 Paint(damaged_rect);
762 bool allow_buffer_flipping; 762 Send(new PluginHostMsg_InvalidateRect(route_id_, damaged_rect));
763 #if defined(OS_MACOSX)
764 allow_buffer_flipping = delegate_->AllowBufferFlipping();
765 #else
766 allow_buffer_flipping = true;
767 #endif
768 Send(new PluginHostMsg_InvalidateRect(route_id_,
769 damaged_rect,
770 allow_buffer_flipping));
771 } 763 }
772 764
773 bool WebPluginProxy::IsOffTheRecord() { 765 bool WebPluginProxy::IsOffTheRecord() {
774 return channel_->incognito(); 766 return channel_->incognito();
775 } 767 }
776 768
777 void WebPluginProxy::ResourceClientDeleted( 769 void WebPluginProxy::ResourceClientDeleted(
778 WebPluginResourceClient* resource_client) { 770 WebPluginResourceClient* resource_client) {
779 ResourceClientMap::iterator index = resource_clients_.begin(); 771 ResourceClientMap::iterator index = resource_clients_.begin();
780 while (index != resource_clients_.end()) { 772 while (index != resource_clients_.end()) {
(...skipping 16 matching lines...) Expand all
797 // Retrieve the IME status from a plug-in and send it to a renderer process 789 // Retrieve the IME status from a plug-in and send it to a renderer process
798 // when the plug-in has updated it. 790 // when the plug-in has updated it.
799 int input_type; 791 int input_type;
800 gfx::Rect caret_rect; 792 gfx::Rect caret_rect;
801 if (!delegate_->GetIMEStatus(&input_type, &caret_rect)) 793 if (!delegate_->GetIMEStatus(&input_type, &caret_rect))
802 return; 794 return;
803 795
804 Send(new PluginHostMsg_NotifyIMEStatus(route_id_, input_type, caret_rect)); 796 Send(new PluginHostMsg_NotifyIMEStatus(route_id_, input_type, caret_rect));
805 } 797 }
806 #endif 798 #endif
OLDNEW
« no previous file with comments | « content/plugin/plugin_interpose_util_mac.mm ('k') | content/renderer/webplugin_delegate_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698