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

Side by Side Diff: third_party/WebKit/Source/core/CoreInitializer.cpp

Issue 2422663002: Define WebTextInputMode as a enum in the public API. (Closed)
Patch Set: Rebase Created 4 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) 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 18 matching lines...) Expand all
29 */ 29 */
30 30
31 #include "core/CoreInitializer.h" 31 #include "core/CoreInitializer.h"
32 32
33 #include "bindings/core/v8/ScriptStreamerThread.h" 33 #include "bindings/core/v8/ScriptStreamerThread.h"
34 #include "core/EventNames.h" 34 #include "core/EventNames.h"
35 #include "core/EventTargetNames.h" 35 #include "core/EventTargetNames.h"
36 #include "core/EventTypeNames.h" 36 #include "core/EventTypeNames.h"
37 #include "core/HTMLNames.h" 37 #include "core/HTMLNames.h"
38 #include "core/HTMLTokenizerNames.h" 38 #include "core/HTMLTokenizerNames.h"
39 #include "core/InputModeNames.h"
39 #include "core/InputTypeNames.h" 40 #include "core/InputTypeNames.h"
40 #include "core/MathMLNames.h" 41 #include "core/MathMLNames.h"
41 #include "core/MediaFeatureNames.h" 42 #include "core/MediaFeatureNames.h"
42 #include "core/MediaTypeNames.h" 43 #include "core/MediaTypeNames.h"
43 #include "core/SVGNames.h" 44 #include "core/SVGNames.h"
44 #include "core/XLinkNames.h" 45 #include "core/XLinkNames.h"
45 #include "core/XMLNSNames.h" 46 #include "core/XMLNSNames.h"
46 #include "core/XMLNames.h" 47 #include "core/XMLNames.h"
47 #include "core/css/MediaQueryEvaluator.h" 48 #include "core/css/MediaQueryEvaluator.h"
48 #include "core/css/parser/CSSParserTokenRange.h" 49 #include "core/css/parser/CSSParserTokenRange.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 XLinkNames::XLinkAttrsCount + XMLNSNames::XMLNSAttrsCount + 91 XLinkNames::XLinkAttrsCount + XMLNSNames::XMLNSAttrsCount +
91 XMLNames::XMLAttrsCount; 92 XMLNames::XMLAttrsCount;
92 93
93 const unsigned coreStaticStringsCount = 94 const unsigned coreStaticStringsCount =
94 qualifiedNamesCount + EventNames::EventNamesCount + 95 qualifiedNamesCount + EventNames::EventNamesCount +
95 EventTargetNames::EventTargetNamesCount + 96 EventTargetNames::EventTargetNamesCount +
96 EventTypeNames::EventTypeNamesCount + 97 EventTypeNames::EventTypeNamesCount +
97 FetchInitiatorTypeNames::FetchInitiatorTypeNamesCount + 98 FetchInitiatorTypeNames::FetchInitiatorTypeNamesCount +
98 FontFamilyNames::FontFamilyNamesCount + 99 FontFamilyNames::FontFamilyNamesCount +
99 HTMLTokenizerNames::HTMLTokenizerNamesCount + HTTPNames::HTTPNamesCount + 100 HTMLTokenizerNames::HTMLTokenizerNamesCount + HTTPNames::HTTPNamesCount +
101 InputModeNames::InputModeNamesCount +
100 InputTypeNames::InputTypeNamesCount + 102 InputTypeNames::InputTypeNamesCount +
101 MediaFeatureNames::MediaFeatureNamesCount + 103 MediaFeatureNames::MediaFeatureNamesCount +
102 MediaTypeNames::MediaTypeNamesCount; 104 MediaTypeNames::MediaTypeNamesCount;
103 105
104 StringImpl::reserveStaticStringsCapacityForSize( 106 StringImpl::reserveStaticStringsCapacityForSize(
105 coreStaticStringsCount + StringImpl::allStaticStrings().size()); 107 coreStaticStringsCount + StringImpl::allStaticStrings().size());
106 QualifiedName::initAndReserveCapacityForSize(qualifiedNamesCount); 108 QualifiedName::initAndReserveCapacityForSize(qualifiedNamesCount);
107 109
108 AtomicStringTable::instance().reserveCapacity(coreStaticStringsCount); 110 AtomicStringTable::instance().reserveCapacity(coreStaticStringsCount);
109 111
110 HTMLNames::init(); 112 HTMLNames::init();
111 SVGNames::init(); 113 SVGNames::init();
112 XLinkNames::init(); 114 XLinkNames::init();
113 MathMLNames::init(); 115 MathMLNames::init();
114 XMLNSNames::init(); 116 XMLNSNames::init();
115 XMLNames::init(); 117 XMLNames::init();
116 118
117 EventNames::init(); 119 EventNames::init();
118 EventTargetNames::init(); 120 EventTargetNames::init();
119 EventTypeNames::init(); 121 EventTypeNames::init();
120 FetchInitiatorTypeNames::init(); 122 FetchInitiatorTypeNames::init();
121 FontFamilyNames::init(); 123 FontFamilyNames::init();
122 HTMLTokenizerNames::init(); 124 HTMLTokenizerNames::init();
123 HTTPNames::init(); 125 HTTPNames::init();
126 InputModeNames::init();
124 InputTypeNames::init(); 127 InputTypeNames::init();
125 MediaFeatureNames::init(); 128 MediaFeatureNames::init();
126 MediaTypeNames::init(); 129 MediaTypeNames::init();
127 130
128 MediaQueryEvaluator::init(); 131 MediaQueryEvaluator::init();
129 CSSParserTokenRange::initStaticEOFToken(); 132 CSSParserTokenRange::initStaticEOFToken();
130 133
131 StyleChangeExtraData::init(); 134 StyleChangeExtraData::init();
132 135
133 KURL::initialize(); 136 KURL::initialize();
(...skipping 19 matching lines...) Expand all
153 // Make sure we stop the HTMLParserThread before Platform::current() is 156 // Make sure we stop the HTMLParserThread before Platform::current() is
154 // cleared. 157 // cleared.
155 ASSERT(Platform::current()); 158 ASSERT(Platform::current());
156 if (!RuntimeEnabledFeatures::parseHTMLOnMainThreadEnabled()) 159 if (!RuntimeEnabledFeatures::parseHTMLOnMainThreadEnabled())
157 HTMLParserThread::shutdown(); 160 HTMLParserThread::shutdown();
158 161
159 WorkerThread::terminateAndWaitForAllWorkers(); 162 WorkerThread::terminateAndWaitForAllWorkers();
160 } 163 }
161 164
162 } // namespace blink 165 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/BUILD.gn ('k') | third_party/WebKit/Source/core/editing/InputMethodController.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698