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

Side by Side Diff: Source/core/page/FocusController.h

Issue 955583002: InlinedVisitor: Migrate page to use inlined tracing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/page/EventSource.cpp ('k') | Source/core/page/FocusController.cpp » ('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) 2006, 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 bool advanceFocus(WebFocusType type) { return advanceFocus(type, false); } 59 bool advanceFocus(WebFocusType type) { return advanceFocus(type, false); }
60 60
61 bool setFocusedElement(Element*, PassRefPtrWillBeRawPtr<Frame>, WebFocusType = WebFocusTypeNone); 61 bool setFocusedElement(Element*, PassRefPtrWillBeRawPtr<Frame>, WebFocusType = WebFocusTypeNone);
62 62
63 void setActive(bool); 63 void setActive(bool);
64 bool isActive() const { return m_isActive; } 64 bool isActive() const { return m_isActive; }
65 65
66 void setFocused(bool); 66 void setFocused(bool);
67 bool isFocused() const { return m_isFocused; } 67 bool isFocused() const { return m_isFocused; }
68 68
69 void trace(Visitor*); 69 DECLARE_TRACE();
70 70
71 private: 71 private:
72 explicit FocusController(Page*); 72 explicit FocusController(Page*);
73 73
74 bool advanceFocus(WebFocusType, bool initialFocus); 74 bool advanceFocus(WebFocusType, bool initialFocus);
75 bool advanceFocusDirectionally(WebFocusType); 75 bool advanceFocusDirectionally(WebFocusType);
76 bool advanceFocusInDocumentOrder(WebFocusType, bool initialFocus); 76 bool advanceFocusInDocumentOrder(WebFocusType, bool initialFocus);
77 77
78 Node* findFocusableNodeAcrossFocusScopes(WebFocusType, const FocusNavigation Scope&, Node*); 78 Node* findFocusableNodeAcrossFocusScopes(WebFocusType, const FocusNavigation Scope&, Node*);
79 Node* findFocusableNodeAcrossFocusScopesForward(const FocusNavigationScope&, Node*); 79 Node* findFocusableNodeAcrossFocusScopesForward(const FocusNavigationScope&, Node*);
(...skipping 22 matching lines...) Expand all
102 RawPtrWillBeMember<Page> m_page; 102 RawPtrWillBeMember<Page> m_page;
103 RefPtrWillBeMember<Frame> m_focusedFrame; 103 RefPtrWillBeMember<Frame> m_focusedFrame;
104 bool m_isActive; 104 bool m_isActive;
105 bool m_isFocused; 105 bool m_isFocused;
106 bool m_isChangingFocusedFrame; 106 bool m_isChangingFocusedFrame;
107 }; 107 };
108 108
109 } // namespace blink 109 } // namespace blink
110 110
111 #endif // FocusController_h 111 #endif // FocusController_h
OLDNEW
« no previous file with comments | « Source/core/page/EventSource.cpp ('k') | Source/core/page/FocusController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698