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

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

Issue 241643006: Remove more dead code from core/ folder (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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/frame/DOMWindow.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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 bool advanceFocus(FocusType type) { return advanceFocus(type, false); } 74 bool advanceFocus(FocusType type) { return advanceFocus(type, false); }
75 75
76 bool setFocusedElement(Element*, PassRefPtr<Frame>, FocusType = FocusTypeNon e); 76 bool setFocusedElement(Element*, PassRefPtr<Frame>, FocusType = FocusTypeNon e);
77 77
78 void setActive(bool); 78 void setActive(bool);
79 bool isActive() const { return m_isActive; } 79 bool isActive() const { return m_isActive; }
80 80
81 void setFocused(bool); 81 void setFocused(bool);
82 bool isFocused() const { return m_isFocused; } 82 bool isFocused() const { return m_isFocused; }
83 83
84 void setContainingWindowIsVisible(bool);
85 bool containingWindowIsVisible() const { return m_containingWindowIsVisible; }
86
87 private: 84 private:
88 explicit FocusController(Page*); 85 explicit FocusController(Page*);
89 86
90 bool advanceFocus(FocusType, bool initialFocus); 87 bool advanceFocus(FocusType, bool initialFocus);
91 bool advanceFocusDirectionally(FocusType); 88 bool advanceFocusDirectionally(FocusType);
92 bool advanceFocusInDocumentOrder(FocusType, bool initialFocus); 89 bool advanceFocusInDocumentOrder(FocusType, bool initialFocus);
93 90
94 Node* findFocusableNodeAcrossFocusScope(FocusType, FocusNavigationScope star tScope, Node* start); 91 Node* findFocusableNodeAcrossFocusScope(FocusType, FocusNavigationScope star tScope, Node* start);
95 Node* findFocusableNodeRecursively(FocusType, FocusNavigationScope, Node* st art); 92 Node* findFocusableNodeRecursively(FocusType, FocusNavigationScope, Node* st art);
96 Node* findFocusableNodeDecendingDownIntoFrameDocument(FocusType, Node*); 93 Node* findFocusableNodeDecendingDownIntoFrameDocument(FocusType, Node*);
(...skipping 15 matching lines...) Expand all
112 Node* findNodeWithExactTabIndex(Node* start, int tabIndex, FocusType); 109 Node* findNodeWithExactTabIndex(Node* start, int tabIndex, FocusType);
113 110
114 bool advanceFocusDirectionallyInContainer(Node* container, const LayoutRect& startingRect, FocusType); 111 bool advanceFocusDirectionallyInContainer(Node* container, const LayoutRect& startingRect, FocusType);
115 void findFocusCandidateInContainer(Node& container, const LayoutRect& starti ngRect, FocusType, FocusCandidate& closest); 112 void findFocusCandidateInContainer(Node& container, const LayoutRect& starti ngRect, FocusType, FocusCandidate& closest);
116 113
117 Page* m_page; 114 Page* m_page;
118 RefPtr<Frame> m_focusedFrame; 115 RefPtr<Frame> m_focusedFrame;
119 bool m_isActive; 116 bool m_isActive;
120 bool m_isFocused; 117 bool m_isFocused;
121 bool m_isChangingFocusedFrame; 118 bool m_isChangingFocusedFrame;
122 bool m_containingWindowIsVisible;
123
124 }; 119 };
125 120
126 } // namespace WebCore 121 } // namespace WebCore
127 122
128 #endif // FocusController_h 123 #endif // FocusController_h
OLDNEW
« no previous file with comments | « Source/core/frame/DOMWindow.cpp ('k') | Source/core/page/FocusController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698