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

Side by Side Diff: Source/core/html/forms/FormController.h

Issue 656723005: Use C++11 features in core/html (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: use nullptr Created 6 years, 1 month 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) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv ed. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv ed.
3 * Copyright (C) 2010, 2011, 2012 Google Inc. All rights reserved. 3 * Copyright (C) 2010, 2011, 2012 Google Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 m_values = another.m_values; 64 m_values = another.m_values;
65 return *this; 65 return *this;
66 } 66 }
67 67
68 inline void FormControlState::append(const String& value) 68 inline void FormControlState::append(const String& value)
69 { 69 {
70 m_type = TypeRestore; 70 m_type = TypeRestore;
71 m_values.append(value); 71 m_values.append(value);
72 } 72 }
73 73
74 typedef HashMap<AtomicString, OwnPtr<SavedFormState> > SavedFormStateMap; 74 typedef HashMap<AtomicString, OwnPtr<SavedFormState>> SavedFormStateMap;
75 75
76 class DocumentState final : public RefCountedWillBeGarbageCollected<DocumentStat e> { 76 class DocumentState final : public RefCountedWillBeGarbageCollected<DocumentStat e> {
77 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(DocumentState); 77 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(DocumentState);
78 public: 78 public:
79 static PassRefPtrWillBeRawPtr<DocumentState> create(); 79 static PassRefPtrWillBeRawPtr<DocumentState> create();
80 void trace(Visitor*); 80 void trace(Visitor*);
81 81
82 void addControl(HTMLFormControlElementWithState*); 82 void addControl(HTMLFormControlElementWithState*);
83 void removeControl(HTMLFormControlElementWithState*); 83 void removeControl(HTMLFormControlElementWithState*);
84 Vector<String> toStateVector(); 84 Vector<String> toStateVector();
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 static void formStatesFromStateVector(const Vector<String>&, SavedFormStateM ap&); 118 static void formStatesFromStateVector(const Vector<String>&, SavedFormStateM ap&);
119 119
120 RadioButtonGroupScope m_radioButtonGroupScope; 120 RadioButtonGroupScope m_radioButtonGroupScope;
121 RefPtrWillBeMember<DocumentState> m_documentState; 121 RefPtrWillBeMember<DocumentState> m_documentState;
122 SavedFormStateMap m_savedFormStateMap; 122 SavedFormStateMap m_savedFormStateMap;
123 OwnPtrWillBeMember<FormKeyGenerator> m_formKeyGenerator; 123 OwnPtrWillBeMember<FormKeyGenerator> m_formKeyGenerator;
124 }; 124 };
125 125
126 } // namespace blink 126 } // namespace blink
127 #endif 127 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698