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

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

Issue 238023004: Focusing iframe window should trigger blur event for oldframe's focused element (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: incorporated review comments Created 6 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 3763 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « LayoutTests/fast/frames/frame-focus-send-blur-expected.txt ('k') | Source/core/page/FocusController.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698