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

Side by Side Diff: Source/modules/webdatabase/SQLResultSet.cpp

Issue 540283003: bindings: Retires ScriptWrappable::init, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed a review comment. Created 6 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « Source/modules/webdatabase/SQLError.h ('k') | Source/modules/webdatabase/SQLResultSetRowList.h » ('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) 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2007 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 24 matching lines...) Expand all
35 35
36 namespace blink { 36 namespace blink {
37 37
38 SQLResultSet::SQLResultSet() 38 SQLResultSet::SQLResultSet()
39 : m_rows(SQLResultSetRowList::create()) 39 : m_rows(SQLResultSetRowList::create())
40 , m_insertId(0) 40 , m_insertId(0)
41 , m_rowsAffected(0) 41 , m_rowsAffected(0)
42 , m_insertIdSet(false) 42 , m_insertIdSet(false)
43 , m_isValid(false) 43 , m_isValid(false)
44 { 44 {
45 ScriptWrappable::init(this);
46 } 45 }
47 46
48 void SQLResultSet::trace(Visitor* visitor) 47 void SQLResultSet::trace(Visitor* visitor)
49 { 48 {
50 visitor->trace(m_rows); 49 visitor->trace(m_rows);
51 } 50 }
52 51
53 int64_t SQLResultSet::insertId(ExceptionState& exceptionState) const 52 int64_t SQLResultSet::insertId(ExceptionState& exceptionState) const
54 { 53 {
55 // 4.11.4 - Return the id of the last row inserted as a result of the query 54 // 4.11.4 - Return the id of the last row inserted as a result of the query
(...skipping 23 matching lines...) Expand all
79 m_insertIdSet = true; 78 m_insertIdSet = true;
80 } 79 }
81 80
82 void SQLResultSet::setRowsAffected(int count) 81 void SQLResultSet::setRowsAffected(int count)
83 { 82 {
84 m_rowsAffected = count; 83 m_rowsAffected = count;
85 m_isValid = true; 84 m_isValid = true;
86 } 85 }
87 86
88 } 87 }
OLDNEW
« no previous file with comments | « Source/modules/webdatabase/SQLError.h ('k') | Source/modules/webdatabase/SQLResultSetRowList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698