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

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

Issue 65303008: Have ElementTraversal::firstWithin() take a reference (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 7 years, 1 month 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/html/HTMLSelectElement.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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 // 105 //
106 // See http://www.w3.org/TR/html4/interact/forms.html#h-17.11.1 106 // See http://www.w3.org/TR/html4/interact/forms.html#h-17.11.1
107 inline Node* findFocusableNode(FocusDirection, FocusNavigationScope, Node* s tart); 107 inline Node* findFocusableNode(FocusDirection, FocusNavigationScope, Node* s tart);
108 108
109 Node* nextFocusableNode(FocusNavigationScope, Node* start); 109 Node* nextFocusableNode(FocusNavigationScope, Node* start);
110 Node* previousFocusableNode(FocusNavigationScope, Node* start); 110 Node* previousFocusableNode(FocusNavigationScope, Node* start);
111 111
112 Node* findNodeWithExactTabIndex(Node* start, int tabIndex, FocusDirection); 112 Node* findNodeWithExactTabIndex(Node* start, int tabIndex, FocusDirection);
113 113
114 bool advanceFocusDirectionallyInContainer(Node* container, const LayoutRect& startingRect, FocusDirection); 114 bool advanceFocusDirectionallyInContainer(Node* container, const LayoutRect& startingRect, FocusDirection);
115 void findFocusCandidateInContainer(Node* container, const LayoutRect& starti ngRect, FocusDirection, FocusCandidate& closest); 115 void findFocusCandidateInContainer(Node& container, const LayoutRect& starti ngRect, FocusDirection, FocusCandidate& closest);
116 116
117 Page* m_page; 117 Page* m_page;
118 RefPtr<Frame> m_focusedFrame; 118 RefPtr<Frame> m_focusedFrame;
119 bool m_isActive; 119 bool m_isActive;
120 bool m_isFocused; 120 bool m_isFocused;
121 bool m_isChangingFocusedFrame; 121 bool m_isChangingFocusedFrame;
122 bool m_containingWindowIsVisible; 122 bool m_containingWindowIsVisible;
123 123
124 }; 124 };
125 125
126 } // namespace WebCore 126 } // namespace WebCore
127 127
128 #endif // FocusController_h 128 #endif // FocusController_h
OLDNEW
« no previous file with comments | « Source/core/html/HTMLSelectElement.cpp ('k') | Source/core/page/FocusController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698