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

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

Issue 2879133002: Made conversions from PassRefPtr to WebPrivatePtr move only. (Closed)
Patch Set: Created 3 years, 7 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) 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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebSerializedScriptValue.cpp ('k') | third_party/WebKit/public/platform/WebPrivatePtr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698