OLD | NEW |
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 3763 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3774 PassRefPtrWillBeRawPtr<Clipboard> EventHandler::createDraggingClipboard() const | 3774 PassRefPtrWillBeRawPtr<Clipboard> EventHandler::createDraggingClipboard() const |
3775 { | 3775 { |
3776 return Clipboard::create(Clipboard::DragAndDrop, ClipboardWritable, DataObje
ct::create()); | 3776 return Clipboard::create(Clipboard::DragAndDrop, ClipboardWritable, DataObje
ct::create()); |
3777 } | 3777 } |
3778 | 3778 |
3779 void EventHandler::focusDocumentView() | 3779 void EventHandler::focusDocumentView() |
3780 { | 3780 { |
3781 Page* page = m_frame->page(); | 3781 Page* page = m_frame->page(); |
3782 if (!page) | 3782 if (!page) |
3783 return; | 3783 return; |
3784 page->focusController().setFocusedFrame(m_frame); | 3784 page->focusController().focusDocumentView(m_frame); |
3785 } | 3785 } |
3786 | 3786 |
3787 unsigned EventHandler::accessKeyModifiers() | 3787 unsigned EventHandler::accessKeyModifiers() |
3788 { | 3788 { |
3789 #if OS(MACOSX) | 3789 #if OS(MACOSX) |
3790 return PlatformEvent::CtrlKey | PlatformEvent::AltKey; | 3790 return PlatformEvent::CtrlKey | PlatformEvent::AltKey; |
3791 #else | 3791 #else |
3792 return PlatformEvent::AltKey; | 3792 return PlatformEvent::AltKey; |
3793 #endif | 3793 #endif |
3794 } | 3794 } |
3795 | 3795 |
3796 } // namespace WebCore | 3796 } // namespace WebCore |
OLD | NEW |