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

Side by Side Diff: Source/core/dom/UserActionElementSet.h

Issue 633573004: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/core/dom (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « Source/core/dom/TreeWalker.h ('k') | Source/core/dom/XMLDocument.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Neither the name of Google Inc. nor the names of its 10 * * Neither the name of Google Inc. nor the names of its
(...skipping 19 matching lines...) Expand all
30 #include "platform/heap/Handle.h" 30 #include "platform/heap/Handle.h"
31 #include "wtf/HashMap.h" 31 #include "wtf/HashMap.h"
32 #include "wtf/PassOwnPtr.h" 32 #include "wtf/PassOwnPtr.h"
33 #include "wtf/RefPtr.h" 33 #include "wtf/RefPtr.h"
34 34
35 namespace blink { 35 namespace blink {
36 36
37 class Node; 37 class Node;
38 class Element; 38 class Element;
39 39
40 class UserActionElementSet FINAL { 40 class UserActionElementSet final {
41 DISALLOW_ALLOCATION(); 41 DISALLOW_ALLOCATION();
42 public: 42 public:
43 bool isFocused(const Node* node) { return hasFlags(node, IsFocusedFlag); } 43 bool isFocused(const Node* node) { return hasFlags(node, IsFocusedFlag); }
44 bool isActive(const Node* node) { return hasFlags(node, IsActiveFlag); } 44 bool isActive(const Node* node) { return hasFlags(node, IsActiveFlag); }
45 bool isInActiveChain(const Node* node) { return hasFlags(node, InActiveChain Flag); } 45 bool isInActiveChain(const Node* node) { return hasFlags(node, InActiveChain Flag); }
46 bool isHovered(const Node* node) { return hasFlags(node, IsHoveredFlag); } 46 bool isHovered(const Node* node) { return hasFlags(node, IsHoveredFlag); }
47 void setFocused(Node* node, bool enable) { setFlags(node, enable, IsFocusedF lag); } 47 void setFocused(Node* node, bool enable) { setFlags(node, enable, IsFocusedF lag); }
48 void setActive(Node* node, bool enable) { setFlags(node, enable, IsActiveFla g); } 48 void setActive(Node* node, bool enable) { setFlags(node, enable, IsActiveFla g); }
49 void setInActiveChain(Node* node, bool enable) { setFlags(node, enable, InAc tiveChainFlag); } 49 void setInActiveChain(Node* node, bool enable) { setFlags(node, enable, InAc tiveChainFlag); }
50 void setHovered(Node* node, bool enable) { setFlags(node, enable, IsHoveredF lag); } 50 void setHovered(Node* node, bool enable) { setFlags(node, enable, IsHoveredF lag); }
(...skipping 26 matching lines...) Expand all
77 void clearFlags(Element*, unsigned); 77 void clearFlags(Element*, unsigned);
78 bool hasFlags(const Element*, unsigned flags) const; 78 bool hasFlags(const Element*, unsigned flags) const;
79 79
80 typedef WillBeHeapHashMap<RefPtrWillBeMember<Element>, unsigned> ElementFlag Map; 80 typedef WillBeHeapHashMap<RefPtrWillBeMember<Element>, unsigned> ElementFlag Map;
81 ElementFlagMap m_elements; 81 ElementFlagMap m_elements;
82 }; 82 };
83 83
84 } // namespace 84 } // namespace
85 85
86 #endif // UserActionElementSet_h 86 #endif // UserActionElementSet_h
OLDNEW
« no previous file with comments | « Source/core/dom/TreeWalker.h ('k') | Source/core/dom/XMLDocument.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698