| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 29 matching lines...) Expand all Loading... |
| 40 | 40 |
| 41 void WebUserGestureToken::SetOutOfProcess() { | 41 void WebUserGestureToken::SetOutOfProcess() { |
| 42 token_->SetTimeoutPolicy(UserGestureToken::kOutOfProcess); | 42 token_->SetTimeoutPolicy(UserGestureToken::kOutOfProcess); |
| 43 } | 43 } |
| 44 | 44 |
| 45 void WebUserGestureToken::SetJavascriptPrompt() { | 45 void WebUserGestureToken::SetJavascriptPrompt() { |
| 46 token_->SetTimeoutPolicy(UserGestureToken::kHasPaused); | 46 token_->SetTimeoutPolicy(UserGestureToken::kHasPaused); |
| 47 } | 47 } |
| 48 | 48 |
| 49 WebUserGestureToken::WebUserGestureToken(PassRefPtr<UserGestureToken> token) { | 49 WebUserGestureToken::WebUserGestureToken(PassRefPtr<UserGestureToken> token) { |
| 50 token_ = token; | 50 token_ = std::move(token); |
| 51 } | 51 } |
| 52 | 52 |
| 53 WebUserGestureToken::operator PassRefPtr<UserGestureToken>() const { | 53 WebUserGestureToken::operator PassRefPtr<UserGestureToken>() const { |
| 54 return token_.Get(); | 54 return token_.Get(); |
| 55 } | 55 } |
| 56 | 56 |
| 57 void WebUserGestureToken::Assign(const WebUserGestureToken& other) { | 57 void WebUserGestureToken::Assign(const WebUserGestureToken& other) { |
| 58 token_ = other.token_; | 58 token_ = other.token_; |
| 59 } | 59 } |
| 60 | 60 |
| 61 void WebUserGestureToken::Reset() { | 61 void WebUserGestureToken::Reset() { |
| 62 token_.Reset(); | 62 token_.Reset(); |
| 63 } | 63 } |
| 64 | 64 |
| 65 } // namespace blink | 65 } // namespace blink |
| OLD | NEW |