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: Source/core/page/EventHandler.cpp

Issue 640303002: Enable Oilpan for core/clipboard/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebased and updated Created 5 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv ed. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv ed.
3 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) 3 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org)
4 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies) 4 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies)
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 visitor->trace(m_touchSequenceDocument); 271 visitor->trace(m_touchSequenceDocument);
272 visitor->trace(m_scrollGestureHandlingNode); 272 visitor->trace(m_scrollGestureHandlingNode);
273 visitor->trace(m_previousGestureScrolledNode); 273 visitor->trace(m_previousGestureScrolledNode);
274 visitor->trace(m_lastDeferredTapElement); 274 visitor->trace(m_lastDeferredTapElement);
275 visitor->trace(m_currentScrollChain); 275 visitor->trace(m_currentScrollChain);
276 #endif 276 #endif
277 } 277 }
278 278
279 DragState& EventHandler::dragState() 279 DragState& EventHandler::dragState()
280 { 280 {
281 DEFINE_STATIC_LOCAL(OwnPtrWillBePersistent<DragState>, state, (adoptPtrWillB eNoop(new DragState()))); 281 DEFINE_STATIC_LOCAL(Persistent<DragState>, state, (new DragState()));
282 return *state; 282 return *state;
283 } 283 }
284 284
285 void EventHandler::clear() 285 void EventHandler::clear()
286 { 286 {
287 m_hoverTimer.stop(); 287 m_hoverTimer.stop();
288 m_cursorUpdateTimer.stop(); 288 m_cursorUpdateTimer.stop();
289 m_fakeMouseMoveEventTimer.stop(); 289 m_fakeMouseMoveEventTimer.stop();
290 m_activeIntervalTimer.stop(); 290 m_activeIntervalTimer.stop();
291 m_resizeScrollableArea = nullptr; 291 m_resizeScrollableArea = nullptr;
(...skipping 3766 matching lines...) Expand 10 before | Expand all | Expand 10 after
4058 bool EventHandler::passWheelEventToWidget(const PlatformWheelEvent& wheelEvent, Widget& widget) 4058 bool EventHandler::passWheelEventToWidget(const PlatformWheelEvent& wheelEvent, Widget& widget)
4059 { 4059 {
4060 // If not a FrameView, then probably a plugin widget. Those will receive 4060 // If not a FrameView, then probably a plugin widget. Those will receive
4061 // the event via an EventTargetNode dispatch when this returns false. 4061 // the event via an EventTargetNode dispatch when this returns false.
4062 if (!widget.isFrameView()) 4062 if (!widget.isFrameView())
4063 return false; 4063 return false;
4064 4064
4065 return toFrameView(&widget)->frame().eventHandler().handleWheelEvent(wheelEv ent); 4065 return toFrameView(&widget)->frame().eventHandler().handleWheelEvent(wheelEv ent);
4066 } 4066 }
4067 4067
4068 PassRefPtrWillBeRawPtr<DataTransfer> EventHandler::createDraggingDataTransfer() const 4068 DataTransfer* EventHandler::createDraggingDataTransfer() const
4069 { 4069 {
4070 return DataTransfer::create(DataTransfer::DragAndDrop, DataTransferWritable, DataObject::create()); 4070 return DataTransfer::create(DataTransfer::DragAndDrop, DataTransferWritable, DataObject::create());
4071 } 4071 }
4072 4072
4073 void EventHandler::focusDocumentView() 4073 void EventHandler::focusDocumentView()
4074 { 4074 {
4075 Page* page = m_frame->page(); 4075 Page* page = m_frame->page();
4076 if (!page) 4076 if (!page)
4077 return; 4077 return;
4078 page->focusController().focusDocumentView(m_frame); 4078 page->focusController().focusDocumentView(m_frame);
4079 } 4079 }
4080 4080
4081 unsigned EventHandler::accessKeyModifiers() 4081 unsigned EventHandler::accessKeyModifiers()
4082 { 4082 {
4083 #if OS(MACOSX) 4083 #if OS(MACOSX)
4084 return PlatformEvent::CtrlKey | PlatformEvent::AltKey; 4084 return PlatformEvent::CtrlKey | PlatformEvent::AltKey;
4085 #else 4085 #else
4086 return PlatformEvent::AltKey; 4086 return PlatformEvent::AltKey;
4087 #endif 4087 #endif
4088 } 4088 }
4089 4089
4090 } // namespace blink 4090 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698