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

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

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/FocusEvent.h ('k') | sky/engine/core/events/GenericEventQueue.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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 , m_relatedTarget(relatedTarget) 55 , m_relatedTarget(relatedTarget)
56 { 56 {
57 } 57 }
58 58
59 FocusEvent::FocusEvent(const AtomicString& type, const FocusEventInit& initializ er) 59 FocusEvent::FocusEvent(const AtomicString& type, const FocusEventInit& initializ er)
60 : UIEvent(type, initializer) 60 : UIEvent(type, initializer)
61 , m_relatedTarget(initializer.relatedTarget) 61 , m_relatedTarget(initializer.relatedTarget)
62 { 62 {
63 } 63 }
64 64
65 void FocusEvent::trace(Visitor* visitor)
66 {
67 visitor->trace(m_relatedTarget);
68 UIEvent::trace(visitor);
69 }
70
71 PassRefPtr<FocusEventDispatchMediator> FocusEventDispatchMediator::create(PassRe fPtr<FocusEvent> focusEvent) 65 PassRefPtr<FocusEventDispatchMediator> FocusEventDispatchMediator::create(PassRe fPtr<FocusEvent> focusEvent)
72 { 66 {
73 return adoptRef(new FocusEventDispatchMediator(focusEvent)); 67 return adoptRef(new FocusEventDispatchMediator(focusEvent));
74 } 68 }
75 69
76 FocusEventDispatchMediator::FocusEventDispatchMediator(PassRefPtr<FocusEvent> fo cusEvent) 70 FocusEventDispatchMediator::FocusEventDispatchMediator(PassRefPtr<FocusEvent> fo cusEvent)
77 : EventDispatchMediator(focusEvent) 71 : EventDispatchMediator(focusEvent)
78 { 72 {
79 } 73 }
80 74
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 { 120 {
127 } 121 }
128 122
129 bool FocusOutEventDispatchMediator::dispatchEvent(EventDispatcher* dispatcher) c onst 123 bool FocusOutEventDispatchMediator::dispatchEvent(EventDispatcher* dispatcher) c onst
130 { 124 {
131 event()->eventPath().adjustForRelatedTarget(dispatcher->node(), event()->rel atedTarget()); 125 event()->eventPath().adjustForRelatedTarget(dispatcher->node(), event()->rel atedTarget());
132 return EventDispatchMediator::dispatchEvent(dispatcher); 126 return EventDispatchMediator::dispatchEvent(dispatcher);
133 } 127 }
134 128
135 } // namespace blink 129 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/events/FocusEvent.h ('k') | sky/engine/core/events/GenericEventQueue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698