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

Side by Side Diff: Source/core/testing/Internals.cpp

Issue 1160753005: Implement UIEvent.sourceDevice (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add arugment name Created 5 years, 6 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2013 Apple Inc. All rights reserved. 3 * Copyright (C) 2013 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 #include "core/dom/shadow/ElementShadow.h" 65 #include "core/dom/shadow/ElementShadow.h"
66 #include "core/dom/shadow/SelectRuleFeatureSet.h" 66 #include "core/dom/shadow/SelectRuleFeatureSet.h"
67 #include "core/dom/shadow/ShadowRoot.h" 67 #include "core/dom/shadow/ShadowRoot.h"
68 #include "core/editing/Editor.h" 68 #include "core/editing/Editor.h"
69 #include "core/editing/PlainTextRange.h" 69 #include "core/editing/PlainTextRange.h"
70 #include "core/editing/SpellCheckRequester.h" 70 #include "core/editing/SpellCheckRequester.h"
71 #include "core/editing/SpellChecker.h" 71 #include "core/editing/SpellChecker.h"
72 #include "core/editing/SurroundingText.h" 72 #include "core/editing/SurroundingText.h"
73 #include "core/editing/iterators/TextIterator.h" 73 #include "core/editing/iterators/TextIterator.h"
74 #include "core/editing/markup.h" 74 #include "core/editing/markup.h"
75 #include "core/events/UIEvent.h"
75 #include "core/fetch/MemoryCache.h" 76 #include "core/fetch/MemoryCache.h"
76 #include "core/fetch/ResourceFetcher.h" 77 #include "core/fetch/ResourceFetcher.h"
77 #include "core/frame/EventHandlerRegistry.h" 78 #include "core/frame/EventHandlerRegistry.h"
78 #include "core/frame/FrameConsole.h" 79 #include "core/frame/FrameConsole.h"
79 #include "core/frame/FrameView.h" 80 #include "core/frame/FrameView.h"
80 #include "core/frame/LocalDOMWindow.h" 81 #include "core/frame/LocalDOMWindow.h"
81 #include "core/frame/LocalFrame.h" 82 #include "core/frame/LocalFrame.h"
82 #include "core/frame/Settings.h" 83 #include "core/frame/Settings.h"
83 #include "core/html/HTMLContentElement.h" 84 #include "core/html/HTMLContentElement.h"
84 #include "core/html/HTMLIFrameElement.h" 85 #include "core/html/HTMLIFrameElement.h"
(...skipping 2227 matching lines...) Expand 10 before | Expand all | Expand 10 after
2312 } 2313 }
2313 2314
2314 ClientRectList* Internals::focusRingRects(Element* element) 2315 ClientRectList* Internals::focusRingRects(Element* element)
2315 { 2316 {
2316 Vector<LayoutRect> rects; 2317 Vector<LayoutRect> rects;
2317 if (element && element->layoutObject()) 2318 if (element && element->layoutObject())
2318 element->layoutObject()->addFocusRingRects(rects, LayoutPoint()); 2319 element->layoutObject()->addFocusRingRects(rects, LayoutPoint());
2319 return ClientRectList::create(rects); 2320 return ClientRectList::create(rects);
2320 } 2321 }
2321 2322
2323 void Internals::setFiresTouchEvents(UIEvent* uiEvent, bool firesTouchEvents)
2324 {
2325 uiEvent->sourceDevice()->setFiresTouchEvents(firesTouchEvents);
2326 }
2327
2322 } // namespace blink 2328 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698