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

Side by Side Diff: Source/core/html/SearchInputType.h

Issue 16896019: Replace RenderArena with PartitionAlloc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 30 matching lines...) Expand all
41 41
42 class SearchInputType : public BaseTextInputType { 42 class SearchInputType : public BaseTextInputType {
43 public: 43 public:
44 static PassOwnPtr<InputType> create(HTMLInputElement*); 44 static PassOwnPtr<InputType> create(HTMLInputElement*);
45 45
46 void stopSearchEventTimer(); 46 void stopSearchEventTimer();
47 47
48 private: 48 private:
49 SearchInputType(HTMLInputElement*); 49 SearchInputType(HTMLInputElement*);
50 virtual void attach() OVERRIDE; 50 virtual void attach() OVERRIDE;
51 virtual RenderObject* createRenderer(RenderArena*, RenderStyle*) const OVERR IDE; 51 virtual RenderObject* createRenderer(RenderStyle*) const OVERRIDE;
52 virtual const AtomicString& formControlType() const OVERRIDE; 52 virtual const AtomicString& formControlType() const OVERRIDE;
53 virtual bool shouldRespectSpeechAttribute() OVERRIDE; 53 virtual bool shouldRespectSpeechAttribute() OVERRIDE;
54 virtual bool isSearchField() const OVERRIDE; 54 virtual bool isSearchField() const OVERRIDE;
55 virtual bool needsContainer() const OVERRIDE; 55 virtual bool needsContainer() const OVERRIDE;
56 virtual void createShadowSubtree() OVERRIDE; 56 virtual void createShadowSubtree() OVERRIDE;
57 virtual void destroyShadowSubtree() OVERRIDE; 57 virtual void destroyShadowSubtree() OVERRIDE;
58 virtual HTMLElement* searchDecorationElement() const OVERRIDE; 58 virtual HTMLElement* searchDecorationElement() const OVERRIDE;
59 virtual HTMLElement* cancelButtonElement() const OVERRIDE; 59 virtual HTMLElement* cancelButtonElement() const OVERRIDE;
60 virtual void handleKeydownEvent(KeyboardEvent*) OVERRIDE; 60 virtual void handleKeydownEvent(KeyboardEvent*) OVERRIDE;
61 virtual void didSetValueByUserEdit(ValueChangeState) OVERRIDE; 61 virtual void didSetValueByUserEdit(ValueChangeState) OVERRIDE;
62 62
63 void searchEventTimerFired(Timer<SearchInputType>*); 63 void searchEventTimerFired(Timer<SearchInputType>*);
64 bool searchEventsShouldBeDispatched() const; 64 bool searchEventsShouldBeDispatched() const;
65 void startSearchEventTimer(); 65 void startSearchEventTimer();
66 66
67 HTMLElement* m_searchDecoration; 67 HTMLElement* m_searchDecoration;
68 HTMLElement* m_cancelButton; 68 HTMLElement* m_cancelButton;
69 Timer<SearchInputType> m_searchEventTimer; 69 Timer<SearchInputType> m_searchEventTimer;
70 }; 70 };
71 71
72 } // namespace WebCore 72 } // namespace WebCore
73 73
74 #endif // SearchInputType_h 74 #endif // SearchInputType_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698