| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 5 * Copyright (C) 2004-2011, 2014 Apple Inc. All rights reserved. | 5 * Copyright (C) 2004-2011, 2014 Apple Inc. All rights reserved. |
| 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. | 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. |
| 7 * (http://www.torchmobile.com/) | 7 * (http://www.torchmobile.com/) |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 #include "bindings/core/v8/ExceptionState.h" | 29 #include "bindings/core/v8/ExceptionState.h" |
| 30 #include "bindings/core/v8/TraceWrapperMember.h" | 30 #include "bindings/core/v8/TraceWrapperMember.h" |
| 31 #include "core/CoreExport.h" | 31 #include "core/CoreExport.h" |
| 32 #include "core/dom/MutationObserver.h" | 32 #include "core/dom/MutationObserver.h" |
| 33 #include "core/dom/SimulatedClickOptions.h" | 33 #include "core/dom/SimulatedClickOptions.h" |
| 34 #include "core/dom/TreeScope.h" | 34 #include "core/dom/TreeScope.h" |
| 35 #include "core/editing/EditingBoundary.h" | 35 #include "core/editing/EditingBoundary.h" |
| 36 #include "core/events/EventTarget.h" | 36 #include "core/events/EventTarget.h" |
| 37 #include "core/style/ComputedStyleConstants.h" | 37 #include "core/style/ComputedStyleConstants.h" |
| 38 #include "platform/geometry/LayoutRect.h" | 38 #include "platform/geometry/LayoutRect.h" |
| 39 #include "public/platform/WebFocusType.h" |
| 39 | 40 |
| 40 // This needs to be here because Element.cpp also depends on it. | 41 // This needs to be here because Element.cpp also depends on it. |
| 41 #define DUMP_NODE_STATISTICS 0 | 42 #define DUMP_NODE_STATISTICS 0 |
| 42 | 43 |
| 43 namespace blink { | 44 namespace blink { |
| 44 | 45 |
| 45 class ContainerNode; | 46 class ContainerNode; |
| 46 class Document; | 47 class Document; |
| 47 class Element; | 48 class Element; |
| 48 class ElementShadow; | 49 class ElementShadow; |
| (...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 469 | 470 |
| 470 void UpdateDistribution(); | 471 void UpdateDistribution(); |
| 471 | 472 |
| 472 void SetIsLink(bool f); | 473 void SetIsLink(bool f); |
| 473 | 474 |
| 474 bool HasEventTargetData() const { return GetFlag(kHasEventTargetDataFlag); } | 475 bool HasEventTargetData() const { return GetFlag(kHasEventTargetDataFlag); } |
| 475 void SetHasEventTargetData(bool flag) { | 476 void SetHasEventTargetData(bool flag) { |
| 476 SetFlag(flag, kHasEventTargetDataFlag); | 477 SetFlag(flag, kHasEventTargetDataFlag); |
| 477 } | 478 } |
| 478 | 479 |
| 479 virtual void SetFocused(bool flag); | 480 virtual void SetFocused(bool flag, WebFocusType); |
| 480 virtual void SetActive(bool flag = true); | 481 virtual void SetActive(bool flag = true); |
| 481 virtual void SetDragged(bool flag); | 482 virtual void SetDragged(bool flag); |
| 482 virtual void SetHovered(bool flag = true); | 483 virtual void SetHovered(bool flag = true); |
| 483 | 484 |
| 484 virtual int tabIndex() const; | 485 virtual int tabIndex() const; |
| 485 | 486 |
| 486 virtual Node* FocusDelegate(); | 487 virtual Node* FocusDelegate(); |
| 487 // This is called only when the node is focused. | 488 // This is called only when the node is focused. |
| 488 virtual bool ShouldHaveFocusAppearance() const; | 489 virtual bool ShouldHaveFocusAppearance() const; |
| 489 | 490 |
| (...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 994 } // namespace blink | 995 } // namespace blink |
| 995 | 996 |
| 996 #ifndef NDEBUG | 997 #ifndef NDEBUG |
| 997 // Outside the WebCore namespace for ease of invocation from gdb. | 998 // Outside the WebCore namespace for ease of invocation from gdb. |
| 998 void showNode(const blink::Node*); | 999 void showNode(const blink::Node*); |
| 999 void showTree(const blink::Node*); | 1000 void showTree(const blink::Node*); |
| 1000 void showNodePath(const blink::Node*); | 1001 void showNodePath(const blink::Node*); |
| 1001 #endif | 1002 #endif |
| 1002 | 1003 |
| 1003 #endif // Node_h | 1004 #endif // Node_h |
| OLD | NEW |