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

Side by Side Diff: chrome/renderer/webplugin_delegate_proxy.cc

Issue 251051: Move various methods from glue/webview.h to api/public/WebView.h... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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
« no previous file with comments | « chrome/renderer/render_view.cc ('k') | webkit/api/public/WebView.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 "chrome/renderer/webplugin_delegate_proxy.h" 5 #include "chrome/renderer/webplugin_delegate_proxy.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "app/gfx/canvas.h" 9 #include "app/gfx/canvas.h"
10 #include "app/l10n_util.h" 10 #include "app/l10n_util.h"
(...skipping 946 matching lines...) Expand 10 before | Expand all | Expand 10 after
957 if (render_view_) 957 if (render_view_)
958 webview = render_view_->webview(); 958 webview = render_view_->webview();
959 if (!webview) 959 if (!webview)
960 return; 960 return;
961 961
962 NPObject* event = reinterpret_cast<NPObject*>(object.npobject_pointer); 962 NPObject* event = reinterpret_cast<NPObject*>(object.npobject_pointer);
963 const int32 drag_id = webview->dragIdentity(); 963 const int32 drag_id = webview->dragIdentity();
964 if (!drag_id || !WebBindings::isDragEvent(event)) 964 if (!drag_id || !WebBindings::isDragEvent(event))
965 return; 965 return;
966 966
967 *success = webview->SetDropEffect(effect != 0); 967 *success = webview->setDropEffect(effect != 0);
968 } 968 }
969 969
970 void WebPluginDelegateProxy::OnMissingPluginStatus(int status) { 970 void WebPluginDelegateProxy::OnMissingPluginStatus(int status) {
971 if (render_view_) 971 if (render_view_)
972 render_view_->OnMissingPluginStatus(this, status); 972 render_view_->OnMissingPluginStatus(this, status);
973 } 973 }
974 974
975 void WebPluginDelegateProxy::OnGetCPBrowsingContext(uint32* context) { 975 void WebPluginDelegateProxy::OnGetCPBrowsingContext(uint32* context) {
976 *context = render_view_ ? render_view_->GetCPBrowsingContext() : 0; 976 *context = render_view_ ? render_view_->GetCPBrowsingContext() : 0;
977 } 977 }
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
1059 intptr_t existing_stream, bool notify_needed, intptr_t notify_data) { 1059 intptr_t existing_stream, bool notify_needed, intptr_t notify_data) {
1060 plugin_->InitiateHTTPRangeRequest(url.c_str(), range_info.c_str(), 1060 plugin_->InitiateHTTPRangeRequest(url.c_str(), range_info.c_str(),
1061 existing_stream, notify_needed, 1061 existing_stream, notify_needed,
1062 notify_data); 1062 notify_data);
1063 } 1063 }
1064 1064
1065 void WebPluginDelegateProxy::OnDeferResourceLoading(int resource_id, 1065 void WebPluginDelegateProxy::OnDeferResourceLoading(int resource_id,
1066 bool defer) { 1066 bool defer) {
1067 plugin_->SetDeferResourceLoading(resource_id, defer); 1067 plugin_->SetDeferResourceLoading(resource_id, defer);
1068 } 1068 }
OLDNEW
« no previous file with comments | « chrome/renderer/render_view.cc ('k') | webkit/api/public/WebView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698