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

Side by Side Diff: content/child/npapi/webplugin_delegate_impl_win.cc

Issue 719343002: Remove implicit conversions from scoped_refptr to T* in content/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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/child/npapi/webplugin_delegate_impl.h" 5 #include "content/child/npapi/webplugin_delegate_impl.h"
6 6
7 #include <map> 7 #include <map>
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 778 matching lines...) Expand 10 before | Expand all | Expand 10 after
789 window_rect_ = window_rect; 789 window_rect_ = window_rect;
790 clip_rect_ = clip_rect; 790 clip_rect_ = clip_rect;
791 791
792 // Ensure that the entire window gets repainted. 792 // Ensure that the entire window gets repainted.
793 ::InvalidateRect(windowed_handle_, NULL, FALSE); 793 ::InvalidateRect(windowed_handle_, NULL, FALSE);
794 794
795 return true; 795 return true;
796 } 796 }
797 797
798 void WebPluginDelegateImpl::WindowedSetWindow() { 798 void WebPluginDelegateImpl::WindowedSetWindow() {
799 if (!instance_) 799 if (!instance_.get())
800 return; 800 return;
801 801
802 if (!windowed_handle_) { 802 if (!windowed_handle_) {
803 NOTREACHED(); 803 NOTREACHED();
804 return; 804 return;
805 } 805 }
806 806
807 instance()->set_window_handle(windowed_handle_); 807 instance()->set_window_handle(windowed_handle_);
808 808
809 DCHECK(!instance()->windowless()); 809 DCHECK(!instance()->windowless());
(...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after
1484 case WM_RBUTTONUP: 1484 case WM_RBUTTONUP:
1485 ::ReleaseCapture(); 1485 ::ReleaseCapture();
1486 break; 1486 break;
1487 1487
1488 default: 1488 default:
1489 break; 1489 break;
1490 } 1490 }
1491 } 1491 }
1492 1492
1493 } // namespace content 1493 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698