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

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

Issue 852083002: Propagate focus type to plugins (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Moved Created 5 years, 11 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 * Copyright (C) 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2011 Apple Inc. All rights reserved.
4 * Copyright (C) 2012 Samsung Electronics. All rights reserved. 4 * Copyright (C) 2012 Samsung Electronics. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are 7 * modification, are permitted provided that the following conditions are
8 * met: 8 * met:
9 * 9 *
10 * * Redistributions of source code must retain the above copyright 10 * * Redistributions of source code must retain the above copyright
(...skipping 15 matching lines...) Expand all
26 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 */ 31 */
32 32
33 #ifndef InputTypeView_h 33 #ifndef InputTypeView_h
34 #define InputTypeView_h 34 #define InputTypeView_h
35 35
36 #include "core/page/FocusType.h"
37 #include "platform/heap/Handle.h" 36 #include "platform/heap/Handle.h"
37 #include "public/platform/WebFocusType.h"
38 #include "wtf/FastAllocBase.h" 38 #include "wtf/FastAllocBase.h"
39 #include "wtf/Forward.h" 39 #include "wtf/Forward.h"
40 #include "wtf/Noncopyable.h" 40 #include "wtf/Noncopyable.h"
41 #include "wtf/RefCounted.h" 41 #include "wtf/RefCounted.h"
42 #include "wtf/RefPtr.h" 42 #include "wtf/RefPtr.h"
43 43
44 namespace blink { 44 namespace blink {
45 45
46 class AXObject; 46 class AXObject;
47 class BeforeTextInsertedEvent; 47 class BeforeTextInsertedEvent;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 virtual void didDispatchClick(Event*, const ClickHandlingState&); 85 virtual void didDispatchClick(Event*, const ClickHandlingState&);
86 virtual void handleKeydownEvent(KeyboardEvent*); 86 virtual void handleKeydownEvent(KeyboardEvent*);
87 virtual void handleKeypressEvent(KeyboardEvent*); 87 virtual void handleKeypressEvent(KeyboardEvent*);
88 virtual void handleKeyupEvent(KeyboardEvent*); 88 virtual void handleKeyupEvent(KeyboardEvent*);
89 virtual void handleBeforeTextInsertedEvent(BeforeTextInsertedEvent*); 89 virtual void handleBeforeTextInsertedEvent(BeforeTextInsertedEvent*);
90 virtual void handleTouchEvent(TouchEvent*); 90 virtual void handleTouchEvent(TouchEvent*);
91 virtual void forwardEvent(Event*); 91 virtual void forwardEvent(Event*);
92 virtual bool shouldSubmitImplicitly(Event*); 92 virtual bool shouldSubmitImplicitly(Event*);
93 virtual PassRefPtrWillBeRawPtr<HTMLFormElement> formForSubmission() const; 93 virtual PassRefPtrWillBeRawPtr<HTMLFormElement> formForSubmission() const;
94 virtual bool hasCustomFocusLogic() const; 94 virtual bool hasCustomFocusLogic() const;
95 virtual void handleFocusEvent(Element* oldFocusedElement, FocusType); 95 virtual void handleFocusEvent(Element* oldFocusedElement, WebFocusType);
96 virtual void handleFocusInEvent(Element* oldFocusedElement, FocusType); 96 virtual void handleFocusInEvent(Element* oldFocusedElement, WebFocusType);
97 virtual void handleBlurEvent(); 97 virtual void handleBlurEvent();
98 virtual void subtreeHasChanged(); 98 virtual void subtreeHasChanged();
99 virtual bool hasTouchEventHandler() const; 99 virtual bool hasTouchEventHandler() const;
100 virtual void blur(); 100 virtual void blur();
101 virtual RenderObject* createRenderer(RenderStyle*) const; 101 virtual RenderObject* createRenderer(RenderStyle*) const;
102 virtual PassRefPtr<RenderStyle> customStyleForRenderer(PassRefPtr<RenderStyl e>); 102 virtual PassRefPtr<RenderStyle> customStyleForRenderer(PassRefPtr<RenderStyl e>);
103 virtual void startResourceLoading(); 103 virtual void startResourceLoading();
104 virtual void closePopupView(); 104 virtual void closePopupView();
105 virtual void createShadowSubtree(); 105 virtual void createShadowSubtree();
106 virtual void destroyShadowSubtree(); 106 virtual void destroyShadowSubtree();
(...skipping 21 matching lines...) Expand all
128 HTMLInputElement& element() const { return *m_element; } 128 HTMLInputElement& element() const { return *m_element; }
129 129
130 private: 130 private:
131 // Not a RefPtr because the HTMLInputElement object owns this InputTypeView 131 // Not a RefPtr because the HTMLInputElement object owns this InputTypeView
132 // object. 132 // object.
133 RawPtrWillBeMember<HTMLInputElement> m_element; 133 RawPtrWillBeMember<HTMLInputElement> m_element;
134 }; 134 };
135 135
136 } // namespace blink 136 } // namespace blink
137 #endif 137 #endif
OLDNEW
« no previous file with comments | « Source/core/html/forms/BaseMultipleFieldsDateAndTimeInputType.cpp ('k') | Source/core/html/forms/InputTypeView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698