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

Side by Side Diff: sky/engine/core/events/FocusEvent.h

Issue 723253004: Remove tons of OILPAN. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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
« no previous file with comments | « sky/engine/core/events/EventTarget.h ('k') | sky/engine/core/events/FocusEvent.cpp » ('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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 { 56 {
57 return adoptRef(new FocusEvent(type, initializer)); 57 return adoptRef(new FocusEvent(type, initializer));
58 } 58 }
59 59
60 EventTarget* relatedTarget() const { return m_relatedTarget.get(); } 60 EventTarget* relatedTarget() const { return m_relatedTarget.get(); }
61 void setRelatedTarget(EventTarget* relatedTarget) { m_relatedTarget = relate dTarget; } 61 void setRelatedTarget(EventTarget* relatedTarget) { m_relatedTarget = relate dTarget; }
62 62
63 virtual const AtomicString& interfaceName() const override; 63 virtual const AtomicString& interfaceName() const override;
64 virtual bool isFocusEvent() const override; 64 virtual bool isFocusEvent() const override;
65 65
66 virtual void trace(Visitor*) override;
67
68 private: 66 private:
69 FocusEvent(); 67 FocusEvent();
70 FocusEvent(const AtomicString& type, bool canBubble, bool cancelable, PassRe fPtr<AbstractView>, int, EventTarget*); 68 FocusEvent(const AtomicString& type, bool canBubble, bool cancelable, PassRe fPtr<AbstractView>, int, EventTarget*);
71 FocusEvent(const AtomicString& type, const FocusEventInit&); 69 FocusEvent(const AtomicString& type, const FocusEventInit&);
72 70
73 RefPtr<EventTarget> m_relatedTarget; 71 RefPtr<EventTarget> m_relatedTarget;
74 }; 72 };
75 73
76 DEFINE_EVENT_TYPE_CASTS(FocusEvent); 74 DEFINE_EVENT_TYPE_CASTS(FocusEvent);
77 75
(...skipping 29 matching lines...) Expand all
107 static PassRefPtr<FocusOutEventDispatchMediator> create(PassRefPtr<FocusEven t>); 105 static PassRefPtr<FocusOutEventDispatchMediator> create(PassRefPtr<FocusEven t>);
108 private: 106 private:
109 explicit FocusOutEventDispatchMediator(PassRefPtr<FocusEvent>); 107 explicit FocusOutEventDispatchMediator(PassRefPtr<FocusEvent>);
110 FocusEvent* event() const { return static_cast<FocusEvent*>(EventDispatchMed iator::event()); } 108 FocusEvent* event() const { return static_cast<FocusEvent*>(EventDispatchMed iator::event()); }
111 virtual bool dispatchEvent(EventDispatcher*) const override; 109 virtual bool dispatchEvent(EventDispatcher*) const override;
112 }; 110 };
113 111
114 } // namespace blink 112 } // namespace blink
115 113
116 #endif // FocusEvent_h 114 #endif // FocusEvent_h
OLDNEW
« no previous file with comments | « sky/engine/core/events/EventTarget.h ('k') | sky/engine/core/events/FocusEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698