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

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

Issue 216523002: Oilpan: Replace most of RefPtrs for Event objects with oilpan's transition types (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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) 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 FocusEvent(const AtomicString& type, bool canBubble, bool cancelable, PassRe fPtrWillBeRawPtr<AbstractView>, int, EventTarget*); 70 FocusEvent(const AtomicString& type, bool canBubble, bool cancelable, PassRe fPtrWillBeRawPtr<AbstractView>, int, EventTarget*);
71 FocusEvent(const AtomicString& type, const FocusEventInit&); 71 FocusEvent(const AtomicString& type, const FocusEventInit&);
72 72
73 RefPtr<EventTarget> m_relatedTarget; 73 RefPtr<EventTarget> m_relatedTarget;
74 }; 74 };
75 75
76 DEFINE_EVENT_TYPE_CASTS(FocusEvent); 76 DEFINE_EVENT_TYPE_CASTS(FocusEvent);
77 77
78 class FocusEventDispatchMediator FINAL : public EventDispatchMediator { 78 class FocusEventDispatchMediator FINAL : public EventDispatchMediator {
79 public: 79 public:
80 static PassRefPtr<FocusEventDispatchMediator> create(PassRefPtr<FocusEvent>) ; 80 static PassRefPtr<FocusEventDispatchMediator> create(PassRefPtrWillBeRawPtr< FocusEvent>);
81 private: 81 private:
82 explicit FocusEventDispatchMediator(PassRefPtr<FocusEvent>); 82 explicit FocusEventDispatchMediator(PassRefPtrWillBeRawPtr<FocusEvent>);
83 FocusEvent* event() const { return static_cast<FocusEvent*>(EventDispatchMed iator::event()); } 83 FocusEvent* event() const { return static_cast<FocusEvent*>(EventDispatchMed iator::event()); }
84 virtual bool dispatchEvent(EventDispatcher*) const OVERRIDE; 84 virtual bool dispatchEvent(EventDispatcher*) const OVERRIDE;
85 }; 85 };
86 86
87 class BlurEventDispatchMediator FINAL : public EventDispatchMediator { 87 class BlurEventDispatchMediator FINAL : public EventDispatchMediator {
88 public: 88 public:
89 static PassRefPtr<BlurEventDispatchMediator> create(PassRefPtr<FocusEvent>); 89 static PassRefPtr<BlurEventDispatchMediator> create(PassRefPtrWillBeRawPtr<F ocusEvent>);
90 private: 90 private:
91 explicit BlurEventDispatchMediator(PassRefPtr<FocusEvent>); 91 explicit BlurEventDispatchMediator(PassRefPtrWillBeRawPtr<FocusEvent>);
92 FocusEvent* event() const { return static_cast<FocusEvent*>(EventDispatchMed iator::event()); } 92 FocusEvent* event() const { return static_cast<FocusEvent*>(EventDispatchMed iator::event()); }
93 virtual bool dispatchEvent(EventDispatcher*) const OVERRIDE; 93 virtual bool dispatchEvent(EventDispatcher*) const OVERRIDE;
94 }; 94 };
95 95
96 class FocusInEventDispatchMediator FINAL : public EventDispatchMediator { 96 class FocusInEventDispatchMediator FINAL : public EventDispatchMediator {
97 public: 97 public:
98 static PassRefPtr<FocusInEventDispatchMediator> create(PassRefPtr<FocusEvent >); 98 static PassRefPtr<FocusInEventDispatchMediator> create(PassRefPtrWillBeRawPt r<FocusEvent>);
99 private: 99 private:
100 explicit FocusInEventDispatchMediator(PassRefPtr<FocusEvent>); 100 explicit FocusInEventDispatchMediator(PassRefPtrWillBeRawPtr<FocusEvent>);
101 FocusEvent* event() const { return static_cast<FocusEvent*>(EventDispatchMed iator::event()); } 101 FocusEvent* event() const { return static_cast<FocusEvent*>(EventDispatchMed iator::event()); }
102 virtual bool dispatchEvent(EventDispatcher*) const OVERRIDE; 102 virtual bool dispatchEvent(EventDispatcher*) const OVERRIDE;
103 }; 103 };
104 104
105 class FocusOutEventDispatchMediator FINAL : public EventDispatchMediator { 105 class FocusOutEventDispatchMediator FINAL : public EventDispatchMediator {
106 public: 106 public:
107 static PassRefPtr<FocusOutEventDispatchMediator> create(PassRefPtr<FocusEven t>); 107 static PassRefPtr<FocusOutEventDispatchMediator> create(PassRefPtrWillBeRawP tr<FocusEvent>);
108 private: 108 private:
109 explicit FocusOutEventDispatchMediator(PassRefPtr<FocusEvent>); 109 explicit FocusOutEventDispatchMediator(PassRefPtrWillBeRawPtr<FocusEvent>);
110 FocusEvent* event() const { return static_cast<FocusEvent*>(EventDispatchMed iator::event()); } 110 FocusEvent* event() const { return static_cast<FocusEvent*>(EventDispatchMed iator::event()); }
111 virtual bool dispatchEvent(EventDispatcher*) const OVERRIDE; 111 virtual bool dispatchEvent(EventDispatcher*) const OVERRIDE;
112 }; 112 };
113 113
114 } // namespace WebCore 114 } // namespace WebCore
115 115
116 #endif // FocusEvent_h 116 #endif // FocusEvent_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698