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

Side by Side Diff: third_party/WebKit/Source/web/PageOverlay.cpp

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. Created 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 10 *
(...skipping 22 matching lines...) Expand all
33 #include "core/page/Page.h" 33 #include "core/page/Page.h"
34 #include "core/page/scrolling/ScrollingCoordinator.h" 34 #include "core/page/scrolling/ScrollingCoordinator.h"
35 #include "platform/graphics/GraphicsContext.h" 35 #include "platform/graphics/GraphicsContext.h"
36 #include "platform/graphics/GraphicsLayer.h" 36 #include "platform/graphics/GraphicsLayer.h"
37 #include "platform/graphics/GraphicsLayerClient.h" 37 #include "platform/graphics/GraphicsLayerClient.h"
38 #include "platform/scroll/MainThreadScrollingReason.h" 38 #include "platform/scroll/MainThreadScrollingReason.h"
39 #include "public/platform/WebLayer.h" 39 #include "public/platform/WebLayer.h"
40 #include "public/web/WebViewClient.h" 40 #include "public/web/WebViewClient.h"
41 #include "web/WebDevToolsAgentImpl.h" 41 #include "web/WebDevToolsAgentImpl.h"
42 #include "web/WebViewImpl.h" 42 #include "web/WebViewImpl.h"
43 #include "wtf/PtrUtil.h"
44 #include <memory>
43 45
44 namespace blink { 46 namespace blink {
45 47
46 PassOwnPtr<PageOverlay> PageOverlay::create(WebViewImpl* viewImpl, PageOverlay:: Delegate* delegate) 48 std::unique_ptr<PageOverlay> PageOverlay::create(WebViewImpl* viewImpl, PageOver lay::Delegate* delegate)
47 { 49 {
48 return adoptPtr(new PageOverlay(viewImpl, delegate)); 50 return wrapUnique(new PageOverlay(viewImpl, delegate));
49 } 51 }
50 52
51 PageOverlay::PageOverlay(WebViewImpl* viewImpl, PageOverlay::Delegate* delegate) 53 PageOverlay::PageOverlay(WebViewImpl* viewImpl, PageOverlay::Delegate* delegate)
52 : m_viewImpl(viewImpl) 54 : m_viewImpl(viewImpl)
53 , m_delegate(delegate) 55 , m_delegate(delegate)
54 { 56 {
55 } 57 }
56 58
57 PageOverlay::~PageOverlay() 59 PageOverlay::~PageOverlay()
58 { 60 {
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 DCHECK(m_layer); 115 DCHECK(m_layer);
114 m_delegate->paintPageOverlay(*this, gc, interestRect.size()); 116 m_delegate->paintPageOverlay(*this, gc, interestRect.size());
115 } 117 }
116 118
117 String PageOverlay::debugName(const GraphicsLayer*) const 119 String PageOverlay::debugName(const GraphicsLayer*) const
118 { 120 {
119 return "WebViewImpl Page Overlay Content Layer"; 121 return "WebViewImpl Page Overlay Content Layer";
120 } 122 }
121 123
122 } // namespace blink 124 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/PageOverlay.h ('k') | third_party/WebKit/Source/web/PageOverlayTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698