| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |