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

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

Issue 922423002: Move rendering/RenderTextControl* to layout/LayoutTextControl* (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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
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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 #include "core/frame/LocalFrame.h" 56 #include "core/frame/LocalFrame.h"
57 #include "core/frame/Settings.h" 57 #include "core/frame/Settings.h"
58 #include "core/html/HTMLDialogElement.h" 58 #include "core/html/HTMLDialogElement.h"
59 #include "core/html/HTMLFrameElementBase.h" 59 #include "core/html/HTMLFrameElementBase.h"
60 #include "core/html/HTMLFrameSetElement.h" 60 #include "core/html/HTMLFrameSetElement.h"
61 #include "core/html/HTMLInputElement.h" 61 #include "core/html/HTMLInputElement.h"
62 #include "core/inspector/InspectorController.h" 62 #include "core/inspector/InspectorController.h"
63 #include "core/layout/HitTestRequest.h" 63 #include "core/layout/HitTestRequest.h"
64 #include "core/layout/HitTestResult.h" 64 #include "core/layout/HitTestResult.h"
65 #include "core/layout/Layer.h" 65 #include "core/layout/Layer.h"
66 #include "core/layout/LayoutTextControlSingleLine.h"
66 #include "core/layout/style/LayoutStyle.h" 67 #include "core/layout/style/LayoutStyle.h"
67 #include "core/loader/FrameLoader.h" 68 #include "core/loader/FrameLoader.h"
68 #include "core/loader/FrameLoaderClient.h" 69 #include "core/loader/FrameLoaderClient.h"
69 #include "core/page/AutoscrollController.h" 70 #include "core/page/AutoscrollController.h"
70 #include "core/page/Chrome.h" 71 #include "core/page/Chrome.h"
71 #include "core/page/ChromeClient.h" 72 #include "core/page/ChromeClient.h"
72 #include "core/page/DragController.h" 73 #include "core/page/DragController.h"
73 #include "core/page/DragState.h" 74 #include "core/page/DragState.h"
74 #include "core/page/EditorClient.h" 75 #include "core/page/EditorClient.h"
75 #include "core/page/FocusController.h" 76 #include "core/page/FocusController.h"
76 #include "core/page/FrameTree.h" 77 #include "core/page/FrameTree.h"
77 #include "core/page/Page.h" 78 #include "core/page/Page.h"
78 #include "core/page/SpatialNavigation.h" 79 #include "core/page/SpatialNavigation.h"
79 #include "core/page/TouchAdjustment.h" 80 #include "core/page/TouchAdjustment.h"
80 #include "core/rendering/RenderPart.h" 81 #include "core/rendering/RenderPart.h"
81 #include "core/rendering/RenderTextControlSingleLine.h"
82 #include "core/rendering/RenderView.h" 82 #include "core/rendering/RenderView.h"
83 #include "core/svg/SVGDocumentExtensions.h" 83 #include "core/svg/SVGDocumentExtensions.h"
84 #include "platform/PlatformGestureEvent.h" 84 #include "platform/PlatformGestureEvent.h"
85 #include "platform/PlatformKeyboardEvent.h" 85 #include "platform/PlatformKeyboardEvent.h"
86 #include "platform/PlatformTouchEvent.h" 86 #include "platform/PlatformTouchEvent.h"
87 #include "platform/PlatformWheelEvent.h" 87 #include "platform/PlatformWheelEvent.h"
88 #include "platform/RuntimeEnabledFeatures.h" 88 #include "platform/RuntimeEnabledFeatures.h"
89 #include "platform/TraceEvent.h" 89 #include "platform/TraceEvent.h"
90 #include "platform/WindowsKeyboardCodes.h" 90 #include "platform/WindowsKeyboardCodes.h"
91 #include "platform/geometry/FloatPoint.h" 91 #include "platform/geometry/FloatPoint.h"
(...skipping 3376 matching lines...) Expand 10 before | Expand all | Expand 10 after
3468 { 3468 {
3469 if (HTMLDialogElement* dialog = m_frame->document()->activeModalDialog()) 3469 if (HTMLDialogElement* dialog = m_frame->document()->activeModalDialog())
3470 dialog->dispatchEvent(Event::createCancelable(EventTypeNames::cancel)); 3470 dialog->dispatchEvent(Event::createCancelable(EventTypeNames::cancel));
3471 } 3471 }
3472 3472
3473 void EventHandler::capsLockStateMayHaveChanged() 3473 void EventHandler::capsLockStateMayHaveChanged()
3474 { 3474 {
3475 if (Element* element = m_frame->document()->focusedElement()) { 3475 if (Element* element = m_frame->document()->focusedElement()) {
3476 if (LayoutObject* r = element->renderer()) { 3476 if (LayoutObject* r = element->renderer()) {
3477 if (r->isTextField()) 3477 if (r->isTextField())
3478 toRenderTextControlSingleLine(r)->capsLockStateMayHaveChanged(); 3478 toLayoutTextControlSingleLine(r)->capsLockStateMayHaveChanged();
3479 } 3479 }
3480 } 3480 }
3481 } 3481 }
3482 3482
3483 void EventHandler::setFrameWasScrolledByUser() 3483 void EventHandler::setFrameWasScrolledByUser()
3484 { 3484 {
3485 if (FrameView* view = m_frame->view()) 3485 if (FrameView* view = m_frame->view())
3486 view->setWasScrolledByUser(true); 3486 view->setWasScrolledByUser(true);
3487 } 3487 }
3488 3488
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
3902 unsigned EventHandler::accessKeyModifiers() 3902 unsigned EventHandler::accessKeyModifiers()
3903 { 3903 {
3904 #if OS(MACOSX) 3904 #if OS(MACOSX)
3905 return PlatformEvent::CtrlKey | PlatformEvent::AltKey; 3905 return PlatformEvent::CtrlKey | PlatformEvent::AltKey;
3906 #else 3906 #else
3907 return PlatformEvent::AltKey; 3907 return PlatformEvent::AltKey;
3908 #endif 3908 #endif
3909 } 3909 }
3910 3910
3911 } // namespace blink 3911 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/layout/compositing/CompositingRequirementsUpdater.cpp ('k') | Source/core/rendering/RenderBlock.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698