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 3415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3426 void EventHandler::capsLockStateMayHaveChanged() | 3426 void EventHandler::capsLockStateMayHaveChanged() |
3427 { | 3427 { |
3428 if (Element* element = m_frame->document()->focusedElement()) { | 3428 if (Element* element = m_frame->document()->focusedElement()) { |
3429 if (RenderObject* r = element->renderer()) { | 3429 if (RenderObject* r = element->renderer()) { |
3430 if (r->isTextField()) | 3430 if (r->isTextField()) |
3431 toRenderTextControlSingleLine(r)->capsLockStateMayHaveChanged(); | 3431 toRenderTextControlSingleLine(r)->capsLockStateMayHaveChanged(); |
3432 } | 3432 } |
3433 } | 3433 } |
3434 } | 3434 } |
3435 | 3435 |
3436 void EventHandler::sendResizeEvent() | |
3437 { | |
3438 RefPtr<Event> event = Event::create(EventTypeNames::resize); | |
3439 event->setTarget(m_frame->document()->domWindow()); | |
3440 m_frame->document()->scheduleAnimationFrameEvent(event.release()); | |
3441 } | |
3442 | |
3443 void EventHandler::sendScrollEvent() | 3436 void EventHandler::sendScrollEvent() |
3444 { | 3437 { |
3445 setFrameWasScrolledByUser(); | 3438 setFrameWasScrolledByUser(); |
3446 if (m_frame->view() && m_frame->document()) | 3439 if (m_frame->view() && m_frame->document()) |
3447 m_frame->document()->enqueueScrollEventForNode(m_frame->document()); | 3440 m_frame->document()->enqueueScrollEventForNode(m_frame->document()); |
3448 } | 3441 } |
3449 | 3442 |
3450 void EventHandler::setFrameWasScrolledByUser() | 3443 void EventHandler::setFrameWasScrolledByUser() |
3451 { | 3444 { |
3452 FrameView* v = m_frame->view(); | 3445 FrameView* v = m_frame->view(); |
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3905 unsigned EventHandler::accessKeyModifiers() | 3898 unsigned EventHandler::accessKeyModifiers() |
3906 { | 3899 { |
3907 #if OS(MACOSX) | 3900 #if OS(MACOSX) |
3908 return PlatformEvent::CtrlKey | PlatformEvent::AltKey; | 3901 return PlatformEvent::CtrlKey | PlatformEvent::AltKey; |
3909 #else | 3902 #else |
3910 return PlatformEvent::AltKey; | 3903 return PlatformEvent::AltKey; |
3911 #endif | 3904 #endif |
3912 } | 3905 } |
3913 | 3906 |
3914 } // namespace WebCore | 3907 } // namespace WebCore |
OLD | NEW |