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

Side by Side Diff: Source/web/WebViewImpl.cpp

Issue 1238083002: Oilpan: Move the EventListener hierarchy to Oilpan's heap (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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 /* 1 /*
2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2011, 2012 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 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 { 265 {
266 if (!*m_userGestureObserved && UserGestureIndicator::processedUserGestureSin ceLoad()) { 266 if (!*m_userGestureObserved && UserGestureIndicator::processedUserGestureSin ceLoad()) {
267 *m_userGestureObserved = true; 267 *m_userGestureObserved = true;
268 if (m_client) 268 if (m_client)
269 m_client->firstUserGestureObserved(); 269 m_client->firstUserGestureObserved();
270 } 270 }
271 } 271 }
272 272
273 class EmptyEventListener final : public EventListener { 273 class EmptyEventListener final : public EventListener {
274 public: 274 public:
275 static PassRefPtr<EmptyEventListener> create() 275 static PassRefPtrWillBeRawPtr<EmptyEventListener> create()
276 { 276 {
277 return adoptRef(new EmptyEventListener()); 277 return adoptRefWillBeNoop(new EmptyEventListener());
278 } 278 }
279 279
280 bool operator==(const EventListener& other) override 280 bool operator==(const EventListener& other) override
281 { 281 {
282 return this == &other; 282 return this == &other;
283 } 283 }
284 284
285 private: 285 private:
286 EmptyEventListener() 286 EmptyEventListener()
287 : EventListener(CPPEventListenerType) 287 : EventListener(CPPEventListenerType)
(...skipping 4097 matching lines...) Expand 10 before | Expand all | Expand 10 after
4385 { 4385 {
4386 WebGLRenderingContext::forceNextWebGLContextCreationToFail(); 4386 WebGLRenderingContext::forceNextWebGLContextCreationToFail();
4387 } 4387 }
4388 4388
4389 void WebViewImpl::forceNextDrawingBufferCreationToFail() 4389 void WebViewImpl::forceNextDrawingBufferCreationToFail()
4390 { 4390 {
4391 DrawingBuffer::forceNextDrawingBufferCreationToFail(); 4391 DrawingBuffer::forceNextDrawingBufferCreationToFail();
4392 } 4392 }
4393 4393
4394 } // namespace blink 4394 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698