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

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

Issue 2938123002: Revert of [Android] Adding Smart GO/NEXT feature in Chrome (Closed)
Patch Set: Created 3 years, 6 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 * 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 bool AdvanceFocus(WebFocusType type, 75 bool AdvanceFocus(WebFocusType type,
76 InputDeviceCapabilities* source_capabilities = nullptr) { 76 InputDeviceCapabilities* source_capabilities = nullptr) {
77 return AdvanceFocus(type, false, source_capabilities); 77 return AdvanceFocus(type, false, source_capabilities);
78 } 78 }
79 bool AdvanceFocusAcrossFrames( 79 bool AdvanceFocusAcrossFrames(
80 WebFocusType, 80 WebFocusType,
81 RemoteFrame* from, 81 RemoteFrame* from,
82 LocalFrame* to, 82 LocalFrame* to,
83 InputDeviceCapabilities* source_capabilities = nullptr); 83 InputDeviceCapabilities* source_capabilities = nullptr);
84 Element* FindFocusableElementInShadowHost(const Element& shadow_host); 84 Element* FindFocusableElementInShadowHost(const Element& shadow_host);
85 Element* NextFocusableElementInForm(Element*, WebFocusType);
86 85
87 bool SetFocusedElement(Element*, Frame*, const FocusParams&); 86 bool SetFocusedElement(Element*, Frame*, const FocusParams&);
88 // |setFocusedElement| variant with SelectionBehaviorOnFocus::None, 87 // |setFocusedElement| variant with SelectionBehaviorOnFocus::None,
89 // |WebFocusTypeNone, and null InputDeviceCapabilities. 88 // |WebFocusTypeNone, and null InputDeviceCapabilities.
90 bool SetFocusedElement(Element*, Frame*); 89 bool SetFocusedElement(Element*, Frame*);
91 90
92 void SetActive(bool); 91 void SetActive(bool);
93 bool IsActive() const { return is_active_; } 92 bool IsActive() const { return is_active_; }
94 93
95 void SetFocused(bool); 94 void SetFocused(bool);
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 Member<Frame> focused_frame_; 128 Member<Frame> focused_frame_;
130 bool is_active_; 129 bool is_active_;
131 bool is_focused_; 130 bool is_focused_;
132 bool is_changing_focused_frame_; 131 bool is_changing_focused_frame_;
133 HeapHashSet<WeakMember<FocusChangedObserver>> focus_changed_observers_; 132 HeapHashSet<WeakMember<FocusChangedObserver>> focus_changed_observers_;
134 }; 133 };
135 134
136 } // namespace blink 135 } // namespace blink
137 136
138 #endif // FocusController_h 137 #endif // FocusController_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698