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

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

Issue 17450016: Implementation of CSS3 nav-up/down/left/right properties from CSS3 UI. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Review fixes, rebase, added more tests, made Style Navigation Data refcounted. 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved.
3 * Copyright (C) 2013, 2014 Opera Software ASA. All rights reserved.
fs 2014/10/01 10:52:14 I don't think we can claim any copyright for 2013
3 * 4 *
4 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
6 * are met: 7 * are met:
7 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 11 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution. 12 * documentation and/or other materials provided with the distribution.
12 * 13 *
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 68
68 void setFocusedFrame(PassRefPtrWillBeRawPtr<Frame>); 69 void setFocusedFrame(PassRefPtrWillBeRawPtr<Frame>);
69 void focusDocumentView(PassRefPtrWillBeRawPtr<Frame>); 70 void focusDocumentView(PassRefPtrWillBeRawPtr<Frame>);
70 Frame* focusedFrame() const { return m_focusedFrame.get(); } 71 Frame* focusedFrame() const { return m_focusedFrame.get(); }
71 Frame* focusedOrMainFrame() const; 72 Frame* focusedOrMainFrame() const;
72 73
73 bool setInitialFocus(FocusType); 74 bool setInitialFocus(FocusType);
74 bool advanceFocus(FocusType type) { return advanceFocus(type, false); } 75 bool advanceFocus(FocusType type) { return advanceFocus(type, false); }
75 76
76 bool setFocusedElement(Element*, PassRefPtrWillBeRawPtr<Frame>, FocusType = FocusTypeNone); 77 bool setFocusedElement(Element*, PassRefPtrWillBeRawPtr<Frame>, FocusType = FocusTypeNone);
78 bool handleCSSFocusNavigation(FocusType);
77 79
78 void setActive(bool); 80 void setActive(bool);
79 bool isActive() const { return m_isActive; } 81 bool isActive() const { return m_isActive; }
80 82
81 void setFocused(bool); 83 void setFocused(bool);
82 bool isFocused() const { return m_isFocused; } 84 bool isFocused() const { return m_isFocused; }
83 85
84 void trace(Visitor*); 86 void trace(Visitor*);
85 87
86 private: 88 private:
(...skipping 29 matching lines...) Expand all
116 RawPtrWillBeMember<Page> m_page; 118 RawPtrWillBeMember<Page> m_page;
117 RefPtrWillBeMember<Frame> m_focusedFrame; 119 RefPtrWillBeMember<Frame> m_focusedFrame;
118 bool m_isActive; 120 bool m_isActive;
119 bool m_isFocused; 121 bool m_isFocused;
120 bool m_isChangingFocusedFrame; 122 bool m_isChangingFocusedFrame;
121 }; 123 };
122 124
123 } // namespace blink 125 } // namespace blink
124 126
125 #endif // FocusController_h 127 #endif // FocusController_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698