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

Side by Side Diff: third_party/WebKit/Source/core/events/TextEvent.h

Issue 1455943002: [Oilpan] Prepare full definition of classes before using Member (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CORE_EXPORT Created 5 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) 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 const AtomicString& interfaceName() const override; 52 const AtomicString& interfaceName() const override;
53 53
54 bool isLineBreak() const { return m_inputType == TextEventInputLineBreak; } 54 bool isLineBreak() const { return m_inputType == TextEventInputLineBreak; }
55 bool isComposition() const { return m_inputType == TextEventInputComposition ; } 55 bool isComposition() const { return m_inputType == TextEventInputComposition ; }
56 bool isPaste() const { return m_inputType == TextEventInputPaste; } 56 bool isPaste() const { return m_inputType == TextEventInputPaste; }
57 bool isDrop() const { return m_inputType == TextEventInputDrop; } 57 bool isDrop() const { return m_inputType == TextEventInputDrop; }
58 58
59 bool shouldSmartReplace() const { return m_shouldSmartReplace; } 59 bool shouldSmartReplace() const { return m_shouldSmartReplace; }
60 bool shouldMatchStyle() const { return m_shouldMatchStyle; } 60 bool shouldMatchStyle() const { return m_shouldMatchStyle; }
61 DocumentFragment* pastingFragment() const { return m_pastingFragment.get(); } 61 DocumentFragment* pastingFragment() const;
62 62
63 DECLARE_VIRTUAL_TRACE(); 63 DECLARE_VIRTUAL_TRACE();
64 64
65 private: 65 private:
66 TextEvent(); 66 TextEvent();
67 67
68 TextEvent(PassRefPtrWillBeRawPtr<AbstractView>, const String& data, TextEven tInputType = TextEventInputKeyboard); 68 TextEvent(PassRefPtrWillBeRawPtr<AbstractView>, const String& data, TextEven tInputType = TextEventInputKeyboard);
69 TextEvent(PassRefPtrWillBeRawPtr<AbstractView>, const String& data, PassRefP trWillBeRawPtr<DocumentFragment>, bool shouldSmartReplace, bool shouldMatchStyle ); 69 TextEvent(PassRefPtrWillBeRawPtr<AbstractView>, const String& data, PassRefP trWillBeRawPtr<DocumentFragment>, bool shouldSmartReplace, bool shouldMatchStyle );
70 70
71 TextEventInputType m_inputType; 71 TextEventInputType m_inputType;
72 String m_data; 72 String m_data;
73 73
74 RefPtrWillBeMember<DocumentFragment> m_pastingFragment; 74 RefPtrWillBeMember<DocumentFragment> m_pastingFragment;
75 bool m_shouldSmartReplace; 75 bool m_shouldSmartReplace;
76 bool m_shouldMatchStyle; 76 bool m_shouldMatchStyle;
77 }; 77 };
78 78
79 inline bool isTextEvent(const Event& event) 79 inline bool isTextEvent(const Event& event)
80 { 80 {
81 return event.type() == EventTypeNames::textInput && event.hasInterface(Event Names::TextEvent); 81 return event.type() == EventTypeNames::textInput && event.hasInterface(Event Names::TextEvent);
82 } 82 }
83 83
84 DEFINE_TYPE_CASTS(TextEvent, Event, event, isTextEvent(*event), isTextEvent(even t)); 84 DEFINE_TYPE_CASTS(TextEvent, Event, event, isTextEvent(*event), isTextEvent(even t));
85 85
86 } // namespace blink 86 } // namespace blink
87 87
88 #endif // TextEvent_h 88 #endif // TextEvent_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/events/PopStateEvent.cpp ('k') | third_party/WebKit/Source/core/events/TextEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698