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

Side by Side Diff: Source/web/WebNode.cpp

Issue 18563008: Web MIDI: add assign() and equals() to WebMIDIPermissionRequest (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: for CQ Created 7 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
« no previous file with comments | « Source/web/WebMIDIPermissionRequest.cpp ('k') | Source/web/WebPluginContainerImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 m_private.reset(); 63 m_private.reset();
64 } 64 }
65 65
66 void WebNode::assign(const WebNode& other) 66 void WebNode::assign(const WebNode& other)
67 { 67 {
68 m_private = other.m_private; 68 m_private = other.m_private;
69 } 69 }
70 70
71 bool WebNode::equals(const WebNode& n) const 71 bool WebNode::equals(const WebNode& n) const
72 { 72 {
73 return (m_private.get() == n.m_private.get()); 73 return m_private.get() == n.m_private.get();
74 } 74 }
75 75
76 bool WebNode::lessThan(const WebNode& n) const 76 bool WebNode::lessThan(const WebNode& n) const
77 { 77 {
78 return (m_private.get() < n.m_private.get()); 78 return m_private.get() < n.m_private.get();
79 } 79 }
80 80
81 WebNode::NodeType WebNode::nodeType() const 81 WebNode::NodeType WebNode::nodeType() const
82 { 82 {
83 return static_cast<NodeType>(m_private->nodeType()); 83 return static_cast<NodeType>(m_private->nodeType());
84 } 84 }
85 85
86 WebNode WebNode::parentNode() const 86 WebNode WebNode::parentNode() const
87 { 87 {
88 return WebNode(const_cast<ContainerNode*>(m_private->parentNode())); 88 return WebNode(const_cast<ContainerNode*>(m_private->parentNode()));
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 m_private = node; 261 m_private = node;
262 return *this; 262 return *this;
263 } 263 }
264 264
265 WebNode::operator PassRefPtr<Node>() const 265 WebNode::operator PassRefPtr<Node>() const
266 { 266 {
267 return m_private.get(); 267 return m_private.get();
268 } 268 }
269 269
270 } // namespace WebKit 270 } // namespace WebKit
OLDNEW
« no previous file with comments | « Source/web/WebMIDIPermissionRequest.cpp ('k') | Source/web/WebPluginContainerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698