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

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

Issue 2839993002: [Android] Adding Smart GO/NEXT feature in Chrome (Closed)
Patch Set: Fixed the build break by replacing WebViewImpl object with WebViewBase Created 3 years, 7 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);
85 86
86 bool SetFocusedElement(Element*, Frame*, const FocusParams&); 87 bool SetFocusedElement(Element*, Frame*, const FocusParams&);
87 // |setFocusedElement| variant with SelectionBehaviorOnFocus::None, 88 // |setFocusedElement| variant with SelectionBehaviorOnFocus::None,
88 // |WebFocusTypeNone, and null InputDeviceCapabilities. 89 // |WebFocusTypeNone, and null InputDeviceCapabilities.
89 bool SetFocusedElement(Element*, Frame*); 90 bool SetFocusedElement(Element*, Frame*);
90 91
91 void SetActive(bool); 92 void SetActive(bool);
92 bool IsActive() const { return is_active_; } 93 bool IsActive() const { return is_active_; }
93 94
94 void SetFocused(bool); 95 void SetFocused(bool);
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 Member<Frame> focused_frame_; 129 Member<Frame> focused_frame_;
129 bool is_active_; 130 bool is_active_;
130 bool is_focused_; 131 bool is_focused_;
131 bool is_changing_focused_frame_; 132 bool is_changing_focused_frame_;
132 HeapHashSet<WeakMember<FocusChangedObserver>> focus_changed_observers_; 133 HeapHashSet<WeakMember<FocusChangedObserver>> focus_changed_observers_;
133 }; 134 };
134 135
135 } // namespace blink 136 } // namespace blink
136 137
137 #endif // FocusController_h 138 #endif // FocusController_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698