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

Side by Side Diff: content/browser/web_contents/web_drag_source_gtk.cc

Issue 16294003: Update content/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 6 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/browser/web_contents/web_drag_source_gtk.h" 5 #include "content/browser/web_contents/web_drag_source_gtk.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/nix/mime_util_xdg.h" 9 #include "base/nix/mime_util_xdg.h"
10 #include "base/threading/thread_restrictions.h" 10 #include "base/threading/thread_restrictions.h"
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 scoped_refptr<DragDownloadFile> drag_file_downloader = 249 scoped_refptr<DragDownloadFile> drag_file_downloader =
250 new DragDownloadFile( 250 new DragDownloadFile(
251 file_path, 251 file_path,
252 file_stream.Pass(), 252 file_stream.Pass(),
253 download_url_, 253 download_url_,
254 Referrer(web_contents_->GetURL(), 254 Referrer(web_contents_->GetURL(),
255 drop_data_->referrer_policy), 255 drop_data_->referrer_policy),
256 web_contents_->GetEncoding(), 256 web_contents_->GetEncoding(),
257 web_contents_); 257 web_contents_);
258 drag_file_downloader->Start( 258 drag_file_downloader->Start(
259 new PromiseFileFinalizer(drag_file_downloader)); 259 new PromiseFileFinalizer(drag_file_downloader.get()));
260 260
261 // Set the status code to success. 261 // Set the status code to success.
262 status_code = 'S'; 262 status_code = 'S';
263 } 263 }
264 } 264 }
265 265
266 // Return the status code to the file manager. 266 // Return the status code to the file manager.
267 gtk_selection_data_set(selection_data, 267 gtk_selection_data_set(selection_data,
268 gtk_selection_data_get_target(selection_data), 268 gtk_selection_data_get_target(selection_data),
269 kBitsPerByte, 269 kBitsPerByte,
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 cairo_clip(cr); 394 cairo_clip(cr);
395 cairo_set_operator(cr, CAIRO_OPERATOR_SOURCE); 395 cairo_set_operator(cr, CAIRO_OPERATOR_SOURCE);
396 gdk_cairo_set_source_pixbuf(cr, drag_pixbuf_, 0, 0); 396 gdk_cairo_set_source_pixbuf(cr, drag_pixbuf_, 0, 0);
397 cairo_paint(cr); 397 cairo_paint(cr);
398 cairo_destroy(cr); 398 cairo_destroy(cr);
399 399
400 return TRUE; 400 return TRUE;
401 } 401 }
402 402
403 } // namespace content 403 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl_unittest.cc ('k') | content/browser/webui/shared_resources_data_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698