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

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: Remove duplication in const overload 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 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 void setLastKnownMousePosition(const PlatformMouseEvent&); 388 void setLastKnownMousePosition(const PlatformMouseEvent&);
389 389
390 bool shouldTopControlsConsumeScroll(FloatSize) const; 390 bool shouldTopControlsConsumeScroll(FloatSize) const;
391 391
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 FrameHost* frameHost(); 397 FrameHost* frameHost();
398 const FrameHost* frameHost() const;
398 399
399 // NOTE: If adding a new field to this class please ensure that it is 400 // NOTE: If adding a new field to this class please ensure that it is
400 // cleared in |EventHandler::clear()|. 401 // cleared in |EventHandler::clear()|.
401 402
402 const Member<LocalFrame> m_frame; 403 const Member<LocalFrame> m_frame;
403 404
404 // Current button-press state for mouse/mouse-like-stylus. 405 // Current button-press state for mouse/mouse-like-stylus.
405 // TODO(crbug.com/563676): Buggy for chorded buttons. 406 // TODO(crbug.com/563676): Buggy for chorded buttons.
406 bool m_mousePressed; 407 bool m_mousePressed;
407 408
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 // scroll which shouldn't propagate can't cause any element to 483 // scroll which shouldn't propagate can't cause any element to
483 // scroll other than the |m_previousGestureScrolledNode|. 484 // scroll other than the |m_previousGestureScrolledNode|.
484 bool m_deltaConsumedForScrollSequence; 485 bool m_deltaConsumedForScrollSequence;
485 }; 486 };
486 487
487 } // namespace blink 488 } // namespace blink
488 489
489 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::EventHandler::TouchInfo); 490 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::EventHandler::TouchInfo);
490 491
491 #endif // EventHandler_h 492 #endif // EventHandler_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698