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

Side by Side Diff: third_party/WebKit/Source/core/input/EventHandler.h

Issue 1942623002: Rename Document::ownerElement to localOwner and fix main frame checks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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, 2009, 2010, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 // If the given element is a shadow host and its root has delegatesFocus=fal se flag, 392 // If the given element is a shadow host and its root has delegatesFocus=fal se flag,
393 // slide focus to its inner element. Returns true if the resulting focus is different from 393 // slide focus to its inner element. Returns true if the resulting focus is different from
394 // the given element. 394 // the given element.
395 bool slideFocusOnShadowHostIfNecessary(const Element&); 395 bool slideFocusOnShadowHostIfNecessary(const Element&);
396 396
397 void dispatchPointerEvents(const PlatformTouchEvent&, HeapVector<TouchInfo>& ); 397 void dispatchPointerEvents(const PlatformTouchEvent&, HeapVector<TouchInfo>& );
398 398
399 WebInputEventResult dispatchTouchEvents(const PlatformTouchEvent&, HeapVecto r<TouchInfo>&, bool); 399 WebInputEventResult dispatchTouchEvents(const PlatformTouchEvent&, HeapVecto r<TouchInfo>&, bool);
400 400
401 FrameHost* frameHost(); 401 FrameHost* frameHost();
402 const FrameHost* frameHost() const;
402 403
403 // NOTE: If adding a new field to this class please ensure that it is 404 // NOTE: If adding a new field to this class please ensure that it is
404 // cleared in |EventHandler::clear()|. 405 // cleared in |EventHandler::clear()|.
405 406
406 const Member<LocalFrame> m_frame; 407 const Member<LocalFrame> m_frame;
407 408
408 // Current button-press state for mouse/mouse-like-stylus. 409 // Current button-press state for mouse/mouse-like-stylus.
409 // TODO(crbug.com/563676): Buggy for chorded buttons. 410 // TODO(crbug.com/563676): Buggy for chorded buttons.
410 bool m_mousePressed; 411 bool m_mousePressed;
411 412
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 502
502 // True if waiting on first touch move after a touch start. 503 // True if waiting on first touch move after a touch start.
503 bool m_waitingForFirstTouchMove; 504 bool m_waitingForFirstTouchMove;
504 }; 505 };
505 506
506 } // namespace blink 507 } // namespace blink
507 508
508 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::EventHandler::TouchInfo); 509 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::EventHandler::TouchInfo);
509 510
510 #endif // EventHandler_h 511 #endif // EventHandler_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698