Chromium Code Reviews| 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 4015 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4026 PassRefPtrWillBeRawPtr<Clipboard> EventHandler::createDraggingClipboard() const | 4026 PassRefPtrWillBeRawPtr<Clipboard> EventHandler::createDraggingClipboard() const |
| 4027 { | 4027 { |
| 4028 return Clipboard::create(Clipboard::DragAndDrop, ClipboardWritable, DataObje ct::create()); | 4028 return Clipboard::create(Clipboard::DragAndDrop, ClipboardWritable, DataObje ct::create()); |
| 4029 } | 4029 } |
| 4030 | 4030 |
| 4031 void EventHandler::focusDocumentView() | 4031 void EventHandler::focusDocumentView() |
| 4032 { | 4032 { |
| 4033 Page* page = m_frame->page(); | 4033 Page* page = m_frame->page(); |
| 4034 if (!page) | 4034 if (!page) |
| 4035 return; | 4035 return; |
| 4036 page->focusController().setFocusedFrame(m_frame); | 4036 page->focusController().focusDocumentView(m_frame); |
|
tkent
2014/04/23 02:23:31
Can you improve FocusController::setFocusedFrame i
gnana
2014/04/23 12:21:51
i tried improve in setfocusedframe. But setfocused
| |
| 4037 } | 4037 } |
| 4038 | 4038 |
| 4039 unsigned EventHandler::accessKeyModifiers() | 4039 unsigned EventHandler::accessKeyModifiers() |
| 4040 { | 4040 { |
| 4041 #if OS(MACOSX) | 4041 #if OS(MACOSX) |
| 4042 return PlatformEvent::CtrlKey | PlatformEvent::AltKey; | 4042 return PlatformEvent::CtrlKey | PlatformEvent::AltKey; |
| 4043 #else | 4043 #else |
| 4044 return PlatformEvent::AltKey; | 4044 return PlatformEvent::AltKey; |
| 4045 #endif | 4045 #endif |
| 4046 } | 4046 } |
| 4047 | 4047 |
| 4048 } // namespace WebCore | 4048 } // namespace WebCore |
| OLD | NEW |