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

Unified Diff: third_party/WebKit/Source/core/dom/MessagePort.h

Issue 2390543002: Reflow comments in core/dom/. (Closed)
Patch Set: Reformat comments in core/dom/. Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/dom/MessagePort.h
diff --git a/third_party/WebKit/Source/core/dom/MessagePort.h b/third_party/WebKit/Source/core/dom/MessagePort.h
index 3f8d276902f18e9f5bcba0936a42c712557ba1b2..fb374b45a72edbc8f1b9612ba012454160fa8c14 100644
--- a/third_party/WebKit/Source/core/dom/MessagePort.h
+++ b/third_party/WebKit/Source/core/dom/MessagePort.h
@@ -48,7 +48,8 @@ class MessagePort;
class ScriptState;
class SerializedScriptValue;
-// Not to be confused with WebMessagePortChannelArray; this one uses Vector and std::unique_ptr instead of WebVector and raw pointers.
+// Not to be confused with WebMessagePortChannelArray; this one uses Vector and
+// std::unique_ptr instead of WebVector and raw pointers.
typedef Vector<WebMessagePortChannelUniquePtr, 1> MessagePortChannelArray;
class CORE_EXPORT MessagePort : public EventTargetWithInlineData,
@@ -82,7 +83,8 @@ class CORE_EXPORT MessagePort : public EventTargetWithInlineData,
ExecutionContext*,
const WebMessagePortChannelArray&);
- // Returns nullptr if there is an exception, or if the passed-in array is nullptr/empty.
+ // Returns nullptr if there is an exception, or if the passed-in array is
+ // nullptr/empty.
static std::unique_ptr<MessagePortChannelArray>
disentanglePorts(ExecutionContext*, const MessagePortArray&, ExceptionState&);
@@ -113,10 +115,12 @@ class CORE_EXPORT MessagePort : public EventTargetWithInlineData,
return getAttributeEventListener(EventTypeNames::message);
}
- // A port starts out its life entangled, and remains entangled until it is closed or is cloned.
+ // A port starts out its life entangled, and remains entangled until it is
+ // closed or is cloned.
bool isEntangled() const { return !m_closed && !isNeutered(); }
- // A port gets neutered when it is transferred to a new owner via postMessage().
+ // A port gets neutered when it is transferred to a new owner via
+ // postMessage().
bool isNeutered() const { return !m_entangledChannel; }
// For testing only: allows inspection of the entangled channel.
« no previous file with comments | « third_party/WebKit/Source/core/dom/MainThreadTaskRunner.cpp ('k') | third_party/WebKit/Source/core/dom/MessagePort.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698