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

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, 5 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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 { 264 {
265 if (!*m_userGestureObserved && UserGestureIndicator::processedUserGestureSin ceLoad()) { 265 if (!*m_userGestureObserved && UserGestureIndicator::processedUserGestureSin ceLoad()) {
266 *m_userGestureObserved = true; 266 *m_userGestureObserved = true;
267 if (m_client) 267 if (m_client)
268 m_client->firstUserGestureObserved(); 268 m_client->firstUserGestureObserved();
269 } 269 }
270 } 270 }
271 271
272 class EmptyEventListener final : public EventListener { 272 class EmptyEventListener final : public EventListener {
273 public: 273 public:
274 static PassRefPtr<EmptyEventListener> create() 274 static PassRefPtrWillBeRawPtr<EmptyEventListener> create()
275 { 275 {
276 return adoptRef(new EmptyEventListener()); 276 return adoptRefWillBeNoop(new EmptyEventListener());
277 } 277 }
278 278
279 bool operator==(const EventListener& other) override 279 bool operator==(const EventListener& other) override
280 { 280 {
281 return this == &other; 281 return this == &other;
282 } 282 }
283 283
284 private: 284 private:
285 EmptyEventListener() 285 EmptyEventListener()
286 : EventListener(CPPEventListenerType) 286 : EventListener(CPPEventListenerType)
(...skipping 4089 matching lines...) Expand 10 before | Expand all | Expand 10 after
4376 { 4376 {
4377 WebGLRenderingContext::forceNextWebGLContextCreationToFail(); 4377 WebGLRenderingContext::forceNextWebGLContextCreationToFail();
4378 } 4378 }
4379 4379
4380 void WebViewImpl::forceNextDrawingBufferCreationToFail() 4380 void WebViewImpl::forceNextDrawingBufferCreationToFail()
4381 { 4381 {
4382 DrawingBuffer::forceNextDrawingBufferCreationToFail(); 4382 DrawingBuffer::forceNextDrawingBufferCreationToFail();
4383 } 4383 }
4384 4384
4385 } // namespace blink 4385 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698