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

Side by Side Diff: third_party/WebKit/Source/core/html/forms/RadioInputType.cpp

Issue 1798043002: Removed CORE_EXPORT from APIs at NodeTraversal. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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) 2005, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2005, 2011 Apple Inc. All rights reserved.
3 * Copyright (C) 2010 Google Inc. All rights reserved. 3 * Copyright (C) 2010 Google Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 16 matching lines...) Expand all
27 #include "core/dom/ElementTraversal.h" 27 #include "core/dom/ElementTraversal.h"
28 #include "core/events/KeyboardEvent.h" 28 #include "core/events/KeyboardEvent.h"
29 #include "core/events/MouseEvent.h" 29 #include "core/events/MouseEvent.h"
30 #include "core/html/HTMLInputElement.h" 30 #include "core/html/HTMLInputElement.h"
31 #include "core/page/SpatialNavigation.h" 31 #include "core/page/SpatialNavigation.h"
32 #include "platform/text/PlatformLocale.h" 32 #include "platform/text/PlatformLocale.h"
33 #include "wtf/PassOwnPtr.h" 33 #include "wtf/PassOwnPtr.h"
34 34
35 namespace blink { 35 namespace blink {
36 36
37 namespace {
38
39 HTMLElement* nextElement(const HTMLElement& element, HTMLFormElement* stayWithin , bool forward) 37 HTMLElement* nextElement(const HTMLElement& element, HTMLFormElement* stayWithin , bool forward)
40 { 38 {
41 return forward ? Traversal<HTMLElement>::next(element, (Node* )stayWithin) : Traversal<HTMLElement>::previous(element, (Node* )stayWithin); 39 return forward ? Traversal<HTMLElement>::next(element, (Node* )stayWithin) : Traversal<HTMLElement>::previous(element, (Node* )stayWithin);
42 } 40 }
43 41
44 } // namespace
45
46 using namespace HTMLNames; 42 using namespace HTMLNames;
47 43
48 PassRefPtrWillBeRawPtr<InputType> RadioInputType::create(HTMLInputElement& eleme nt) 44 PassRefPtrWillBeRawPtr<InputType> RadioInputType::create(HTMLInputElement& eleme nt)
49 { 45 {
50 return adoptRefWillBeNoop(new RadioInputType(element)); 46 return adoptRefWillBeNoop(new RadioInputType(element));
51 } 47 }
52 48
53 const AtomicString& RadioInputType::formControlType() const 49 const AtomicString& RadioInputType::formControlType() const
54 { 50 {
55 return InputTypeNames::radio; 51 return InputTypeNames::radio;
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 // The work we did in willDispatchClick was default handling. 201 // The work we did in willDispatchClick was default handling.
206 event->setDefaultHandled(); 202 event->setDefaultHandled();
207 } 203 }
208 204
209 bool RadioInputType::shouldAppearIndeterminate() const 205 bool RadioInputType::shouldAppearIndeterminate() const
210 { 206 {
211 return !element().checkedRadioButtonForGroup(); 207 return !element().checkedRadioButtonForGroup();
212 } 208 }
213 209
214 } // namespace blink 210 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698