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

Side by Side Diff: Source/core/page/EventHandler.cpp

Issue 169323002: Oilpan: Move core/clipboard/ to oilpan's heap (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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
« no previous file with comments | « Source/core/page/EventHandler.h ('k') | Source/web/DragClientImpl.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) 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 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 , m_activeIntervalTimer(this, &EventHandler::activeIntervalTimerFired) 299 , m_activeIntervalTimer(this, &EventHandler::activeIntervalTimerFired)
300 , m_lastShowPressTimestamp(0) 300 , m_lastShowPressTimestamp(0)
301 { 301 {
302 } 302 }
303 303
304 EventHandler::~EventHandler() 304 EventHandler::~EventHandler()
305 { 305 {
306 ASSERT(!m_fakeMouseMoveEventTimer.isActive()); 306 ASSERT(!m_fakeMouseMoveEventTimer.isActive());
307 } 307 }
308 308
309 DEFINE_GC_INFO(DragState);
310
309 DragState& EventHandler::dragState() 311 DragState& EventHandler::dragState()
310 { 312 {
313 #if ENABLE(OILPAN)
314 DEFINE_STATIC_LOCAL(Persistent<DragState>, state, (new DragState()));
315 return *state;
316 #else
311 DEFINE_STATIC_LOCAL(DragState, state, ()); 317 DEFINE_STATIC_LOCAL(DragState, state, ());
312 return state; 318 return state;
319 #endif
313 } 320 }
314 321
315 void EventHandler::clear() 322 void EventHandler::clear()
316 { 323 {
317 m_hoverTimer.stop(); 324 m_hoverTimer.stop();
318 m_cursorUpdateTimer.stop(); 325 m_cursorUpdateTimer.stop();
319 m_fakeMouseMoveEventTimer.stop(); 326 m_fakeMouseMoveEventTimer.stop();
320 m_activeIntervalTimer.stop(); 327 m_activeIntervalTimer.stop();
321 m_resizeScrollableArea = 0; 328 m_resizeScrollableArea = 0;
322 m_nodeUnderMouse = nullptr; 329 m_nodeUnderMouse = nullptr;
(...skipping 3663 matching lines...) Expand 10 before | Expand all | Expand 10 after
3986 } 3993 }
3987 3994
3988 bool EventHandler::passWidgetMouseDownEventToWidget(const MouseEventWithHitTestR esults& event) 3995 bool EventHandler::passWidgetMouseDownEventToWidget(const MouseEventWithHitTestR esults& event)
3989 { 3996 {
3990 // Figure out which view to send the event to. 3997 // Figure out which view to send the event to.
3991 if (!event.targetNode() || !event.targetNode()->renderer() || !event.targetN ode()->renderer()->isWidget()) 3998 if (!event.targetNode() || !event.targetNode()->renderer() || !event.targetN ode()->renderer()->isWidget())
3992 return false; 3999 return false;
3993 return false; 4000 return false;
3994 } 4001 }
3995 4002
3996 PassRefPtr<Clipboard> EventHandler::createDraggingClipboard() const 4003 PassRefPtrWillBeRawPtr<Clipboard> EventHandler::createDraggingClipboard() const
3997 { 4004 {
3998 return Clipboard::create(Clipboard::DragAndDrop, ClipboardWritable, DataObje ct::create()); 4005 return Clipboard::create(Clipboard::DragAndDrop, ClipboardWritable, DataObje ct::create());
3999 } 4006 }
4000 4007
4001 void EventHandler::focusDocumentView() 4008 void EventHandler::focusDocumentView()
4002 { 4009 {
4003 Page* page = m_frame->page(); 4010 Page* page = m_frame->page();
4004 if (!page) 4011 if (!page)
4005 return; 4012 return;
4006 page->focusController().setFocusedFrame(m_frame); 4013 page->focusController().setFocusedFrame(m_frame);
4007 } 4014 }
4008 4015
4009 unsigned EventHandler::accessKeyModifiers() 4016 unsigned EventHandler::accessKeyModifiers()
4010 { 4017 {
4011 #if OS(MACOSX) 4018 #if OS(MACOSX)
4012 return PlatformEvent::CtrlKey | PlatformEvent::AltKey; 4019 return PlatformEvent::CtrlKey | PlatformEvent::AltKey;
4013 #else 4020 #else
4014 return PlatformEvent::AltKey; 4021 return PlatformEvent::AltKey;
4015 #endif 4022 #endif
4016 } 4023 }
4017 4024
4018 } // namespace WebCore 4025 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/page/EventHandler.h ('k') | Source/web/DragClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698