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

Side by Side Diff: Source/core/events/FocusEvent.h

Issue 352643005: Drop [TypeChecking=Nullable]; deduce from attribute type instead (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@cleanup-typechecking
Patch Set: rebased Created 6 years, 5 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 | « Source/core/animation/AnimationPlayer.h ('k') | Source/core/events/MessageEvent.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 /* 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 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 { 50 {
51 return adoptRefWillBeNoop(new FocusEvent(type, canBubble, cancelable, vi ew, detail, relatedTarget)); 51 return adoptRefWillBeNoop(new FocusEvent(type, canBubble, cancelable, vi ew, detail, relatedTarget));
52 } 52 }
53 53
54 static PassRefPtrWillBeRawPtr<FocusEvent> create(const AtomicString& type, c onst FocusEventInit& initializer) 54 static PassRefPtrWillBeRawPtr<FocusEvent> create(const AtomicString& type, c onst FocusEventInit& initializer)
55 { 55 {
56 return adoptRefWillBeNoop(new FocusEvent(type, initializer)); 56 return adoptRefWillBeNoop(new FocusEvent(type, initializer));
57 } 57 }
58 58
59 EventTarget* relatedTarget() const { return m_relatedTarget.get(); } 59 EventTarget* relatedTarget() const { return m_relatedTarget.get(); }
60 EventTarget* relatedTarget(bool& isNull) const { isNull = !m_relatedTarget; return m_relatedTarget.get(); }
61 void setRelatedTarget(EventTarget* relatedTarget) { m_relatedTarget = relate dTarget; } 60 void setRelatedTarget(EventTarget* relatedTarget) { m_relatedTarget = relate dTarget; }
62 61
63 virtual const AtomicString& interfaceName() const OVERRIDE; 62 virtual const AtomicString& interfaceName() const OVERRIDE;
64 virtual bool isFocusEvent() const OVERRIDE; 63 virtual bool isFocusEvent() const OVERRIDE;
65 64
66 virtual void trace(Visitor*) OVERRIDE; 65 virtual void trace(Visitor*) OVERRIDE;
67 66
68 private: 67 private:
69 FocusEvent(); 68 FocusEvent();
70 FocusEvent(const AtomicString& type, bool canBubble, bool cancelable, PassRe fPtrWillBeRawPtr<AbstractView>, int, EventTarget*); 69 FocusEvent(const AtomicString& type, bool canBubble, bool cancelable, PassRe fPtrWillBeRawPtr<AbstractView>, int, EventTarget*);
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 static PassRefPtrWillBeRawPtr<FocusOutEventDispatchMediator> create(PassRefP trWillBeRawPtr<FocusEvent>); 106 static PassRefPtrWillBeRawPtr<FocusOutEventDispatchMediator> create(PassRefP trWillBeRawPtr<FocusEvent>);
108 private: 107 private:
109 explicit FocusOutEventDispatchMediator(PassRefPtrWillBeRawPtr<FocusEvent>); 108 explicit FocusOutEventDispatchMediator(PassRefPtrWillBeRawPtr<FocusEvent>);
110 FocusEvent* event() const { return static_cast<FocusEvent*>(EventDispatchMed iator::event()); } 109 FocusEvent* event() const { return static_cast<FocusEvent*>(EventDispatchMed iator::event()); }
111 virtual bool dispatchEvent(EventDispatcher*) const OVERRIDE; 110 virtual bool dispatchEvent(EventDispatcher*) const OVERRIDE;
112 }; 111 };
113 112
114 } // namespace WebCore 113 } // namespace WebCore
115 114
116 #endif // FocusEvent_h 115 #endif // FocusEvent_h
OLDNEW
« no previous file with comments | « Source/core/animation/AnimationPlayer.h ('k') | Source/core/events/MessageEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698