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

Side by Side Diff: Source/core/plugins/testing/DictionaryPluginPlaceholder.h

Issue 1308633005: Make classes and structures in core/style, core/plugins and core/streams fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | Source/core/plugins/testing/DocumentFragmentPluginPlaceholder.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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef DictionaryPluginPlaceholder_h 5 #ifndef DictionaryPluginPlaceholder_h
6 #define DictionaryPluginPlaceholder_h 6 #define DictionaryPluginPlaceholder_h
7 7
8 #include "core/html/shadow/PluginPlaceholderElement.h" 8 #include "core/html/shadow/PluginPlaceholderElement.h"
9 #include "core/plugins/PluginPlaceholder.h" 9 #include "core/plugins/PluginPlaceholder.h"
10 #include "core/testing/PluginPlaceholderOptions.h" 10 #include "core/testing/PluginPlaceholderOptions.h"
11 #include "wtf/text/WTFString.h" 11 #include "wtf/text/WTFString.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 // Manipulates a plugin placeholder element based on a fixed dictionary given. 15 // Manipulates a plugin placeholder element based on a fixed dictionary given.
16 // Used for layout tests that examine the formatting of structured placeholders. 16 // Used for layout tests that examine the formatting of structured placeholders.
17 class DictionaryPluginPlaceholder : public NoBaseWillBeGarbageCollected<Dictiona ryPluginPlaceholder>, public PluginPlaceholder { 17 class DictionaryPluginPlaceholder final : public NoBaseWillBeGarbageCollected<Di ctionaryPluginPlaceholder>, public PluginPlaceholder {
18 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DictionaryPluginPlaceholder); 18 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DictionaryPluginPlaceholder);
19 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(DictionaryPluginPlaceholder);
19 public: 20 public:
20 static PassOwnPtrWillBeRawPtr<DictionaryPluginPlaceholder> create(Document& document, const PluginPlaceholderOptions& options) 21 static PassOwnPtrWillBeRawPtr<DictionaryPluginPlaceholder> create(Document& document, const PluginPlaceholderOptions& options)
21 { 22 {
22 RefPtrWillBeRawPtr<PluginPlaceholderElement> placeholder = PluginPlaceho lderElement::create(document); 23 RefPtrWillBeRawPtr<PluginPlaceholderElement> placeholder = PluginPlaceho lderElement::create(document);
23 if (options.hasMessage()) 24 if (options.hasMessage())
24 placeholder->setMessage(options.message()); 25 placeholder->setMessage(options.message());
25 26
26 if (options.hasCloseable()) 27 if (options.hasCloseable())
27 placeholder->setIsCloseable(options.closeable()); 28 placeholder->setIsCloseable(options.closeable());
28 29
(...skipping 13 matching lines...) Expand all
42 43
43 private: 44 private:
44 DictionaryPluginPlaceholder(PassRefPtrWillBeRawPtr<PluginPlaceholderElement> element) : m_pluginPlaceholderElement(element) { } 45 DictionaryPluginPlaceholder(PassRefPtrWillBeRawPtr<PluginPlaceholderElement> element) : m_pluginPlaceholderElement(element) { }
45 46
46 RefPtrWillBeMember<PluginPlaceholderElement> m_pluginPlaceholderElement; 47 RefPtrWillBeMember<PluginPlaceholderElement> m_pluginPlaceholderElement;
47 }; 48 };
48 49
49 } // namespace blink 50 } // namespace blink
50 51
51 #endif // DictionaryPluginPlaceholder_h 52 #endif // DictionaryPluginPlaceholder_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/plugins/testing/DocumentFragmentPluginPlaceholder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698