summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/webplugin_delegate_proxy.cc
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-13 13:43:42 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-13 13:43:42 +0000
commit659f73fa7b0a91ceef30e89fff34629f39853761 (patch)
tree54856047a10c8ba93f82c725cb0e3ee5283e707d /chrome/renderer/webplugin_delegate_proxy.cc
parentb2be7a6889ea1af900760b6e69e22152f652e950 (diff)
downloadchromium_src-659f73fa7b0a91ceef30e89fff34629f39853761.zip
chromium_src-659f73fa7b0a91ceef30e89fff34629f39853761.tar.gz
chromium_src-659f73fa7b0a91ceef30e89fff34629f39853761.tar.bz2
Turn NULL used as int to 0.
(Excluding chrome/browser/...) Landing patch for Jacob Mandelson. Original review: http://codereview.chromium.org/195067 BUG=none TEST=base_unittests & app_unittests Review URL: http://codereview.chromium.org/267076 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28810 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/webplugin_delegate_proxy.cc')
-rw-r--r--chrome/renderer/webplugin_delegate_proxy.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/chrome/renderer/webplugin_delegate_proxy.cc b/chrome/renderer/webplugin_delegate_proxy.cc
index d67a68e..b15de39 100644
--- a/chrome/renderer/webplugin_delegate_proxy.cc
+++ b/chrome/renderer/webplugin_delegate_proxy.cc
@@ -60,7 +60,7 @@ class ResourceClientProxy : public webkit_glue::WebPluginResourceClient {
public:
ResourceClientProxy(PluginChannelHost* channel, int instance_id)
: channel_(channel), instance_id_(instance_id), resource_id_(0),
- notify_needed_(false), notify_data_(NULL),
+ notify_needed_(false), notify_data_(0),
multibyte_response_expected_(false) {
}
@@ -161,7 +161,7 @@ WebPluginDelegateProxy::WebPluginDelegateProxy(
: render_view_(render_view),
plugin_(NULL),
windowless_(false),
- window_(NULL),
+ window_(gfx::kNullPluginWindow),
mime_type_(mime_type),
instance_id_(MSG_ROUTING_NONE),
npobject_(NULL),
@@ -656,8 +656,8 @@ bool WebPluginDelegateProxy::BackgroundChanged(
#else
const unsigned char* page_bytes = cairo_image_surface_get_data(page_surface);
int page_stride = cairo_image_surface_get_stride(page_surface);
- int page_start_x = page_x_double;
- int page_start_y = page_y_double;
+ int page_start_x = static_cast<int>(page_x_double);
+ int page_start_y = static_cast<int>(page_y_double);
skia::PlatformDevice& device =
background_store_canvas_->getTopPlatformDevice();
@@ -786,7 +786,7 @@ void WebPluginDelegateProxy::OnSetWindow(gfx::PluginWindowHandle window) {
void WebPluginDelegateProxy::WillDestroyWindow() {
DCHECK(window_);
plugin_->WillDestroyWindow(window_);
- window_ = NULL;
+ window_ = gfx::kNullPluginWindow;
}
#if defined(OS_WIN)
@@ -936,7 +936,7 @@ void WebPluginDelegateProxy::OnGetDragData(const NPVariant_Param& object,
for (size_t i = 0; i < arraysize(results); ++i) {
values->push_back(NPVariant_Param());
CreateNPVariantParam(
- results[i], NULL, &values->back(), false, NULL, page_url_);
+ results[i], NULL, &values->back(), false, 0, page_url_);
}
*success = true;