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

Side by Side Diff: sky/engine/core/events/TouchEvent.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/TextEvent.cpp ('k') | sky/engine/core/events/TouchEvent.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 2008, The Android Open Source Project 2 * Copyright 2008, The Android Open Source Project
3 * Copyright (C) 2012 Research In Motion Limited. All rights reserved. 3 * Copyright (C) 2012 Research In Motion Limited. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above copyright 10 * * Redistributions in binary form must reproduce the above copyright
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 void setTouches(PassRefPtr<TouchList> touches) { m_touches = touches; } 64 void setTouches(PassRefPtr<TouchList> touches) { m_touches = touches; }
65 void setTargetTouches(PassRefPtr<TouchList> targetTouches) { m_targetTouches = targetTouches; } 65 void setTargetTouches(PassRefPtr<TouchList> targetTouches) { m_targetTouches = targetTouches; }
66 void setChangedTouches(PassRefPtr<TouchList> changedTouches) { m_changedTouc hes = changedTouches; } 66 void setChangedTouches(PassRefPtr<TouchList> changedTouches) { m_changedTouc hes = changedTouches; }
67 67
68 virtual bool isTouchEvent() const override; 68 virtual bool isTouchEvent() const override;
69 69
70 virtual const AtomicString& interfaceName() const override; 70 virtual const AtomicString& interfaceName() const override;
71 71
72 virtual void preventDefault() override; 72 virtual void preventDefault() override;
73 73
74 virtual void trace(Visitor*) override;
75
76 private: 74 private:
77 TouchEvent(); 75 TouchEvent();
78 TouchEvent(TouchList* touches, TouchList* targetTouches, 76 TouchEvent(TouchList* touches, TouchList* targetTouches,
79 TouchList* changedTouches, const AtomicString& type, 77 TouchList* changedTouches, const AtomicString& type,
80 PassRefPtr<AbstractView>, 78 PassRefPtr<AbstractView>,
81 bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, bool cancela ble); 79 bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, bool cancela ble);
82 80
83 RefPtr<TouchList> m_touches; 81 RefPtr<TouchList> m_touches;
84 RefPtr<TouchList> m_targetTouches; 82 RefPtr<TouchList> m_targetTouches;
85 RefPtr<TouchList> m_changedTouches; 83 RefPtr<TouchList> m_changedTouches;
86 }; 84 };
87 85
88 class TouchEventDispatchMediator final : public EventDispatchMediator { 86 class TouchEventDispatchMediator final : public EventDispatchMediator {
89 public: 87 public:
90 static PassRefPtr<TouchEventDispatchMediator> create(PassRefPtr<TouchEvent>) ; 88 static PassRefPtr<TouchEventDispatchMediator> create(PassRefPtr<TouchEvent>) ;
91 89
92 private: 90 private:
93 explicit TouchEventDispatchMediator(PassRefPtr<TouchEvent>); 91 explicit TouchEventDispatchMediator(PassRefPtr<TouchEvent>);
94 TouchEvent* event() const; 92 TouchEvent* event() const;
95 virtual bool dispatchEvent(EventDispatcher*) const override; 93 virtual bool dispatchEvent(EventDispatcher*) const override;
96 }; 94 };
97 95
98 DEFINE_EVENT_TYPE_CASTS(TouchEvent); 96 DEFINE_EVENT_TYPE_CASTS(TouchEvent);
99 97
100 } // namespace blink 98 } // namespace blink
101 99
102 #endif // TouchEvent_h 100 #endif // TouchEvent_h
OLDNEW
« no previous file with comments | « sky/engine/core/events/TextEvent.cpp ('k') | sky/engine/core/events/TouchEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698