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

Side by Side Diff: Source/web/WebInputElement.cpp

Issue 471503002: Cleanup namespace usage in Source/web/Web[I-Z]*.cpp (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 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
« no previous file with comments | « Source/web/WebImageDecoder.cpp ('k') | Source/web/WebInputEvent.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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 25 matching lines...) Expand all
36 #include "core/dom/shadow/ShadowRoot.h" 36 #include "core/dom/shadow/ShadowRoot.h"
37 #include "core/html/HTMLDataListElement.h" 37 #include "core/html/HTMLDataListElement.h"
38 #include "core/html/HTMLInputElement.h" 38 #include "core/html/HTMLInputElement.h"
39 #include "core/html/shadow/ShadowElementNames.h" 39 #include "core/html/shadow/ShadowElementNames.h"
40 #include "core/html/shadow/TextControlInnerElements.h" 40 #include "core/html/shadow/TextControlInnerElements.h"
41 #include "platform/RuntimeEnabledFeatures.h" 41 #include "platform/RuntimeEnabledFeatures.h"
42 #include "public/platform/WebString.h" 42 #include "public/platform/WebString.h"
43 #include "public/web/WebElementCollection.h" 43 #include "public/web/WebElementCollection.h"
44 #include "wtf/PassRefPtr.h" 44 #include "wtf/PassRefPtr.h"
45 45
46 using namespace blink;
47
48 namespace blink { 46 namespace blink {
49 47
50 bool WebInputElement::isTextField() const 48 bool WebInputElement::isTextField() const
51 { 49 {
52 return constUnwrap<HTMLInputElement>()->isTextField(); 50 return constUnwrap<HTMLInputElement>()->isTextField();
53 } 51 }
54 52
55 bool WebInputElement::isText() const 53 bool WebInputElement::isText() const
56 { 54 {
57 return constUnwrap<HTMLInputElement>()->isText(); 55 return constUnwrap<HTMLInputElement>()->isText();
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 } 159 }
162 160
163 WebInputElement* toWebInputElement(WebElement* webElement) 161 WebInputElement* toWebInputElement(WebElement* webElement)
164 { 162 {
165 if (!isHTMLInputElement(*webElement->unwrap<Element>())) 163 if (!isHTMLInputElement(*webElement->unwrap<Element>()))
166 return 0; 164 return 0;
167 165
168 return static_cast<WebInputElement*>(webElement); 166 return static_cast<WebInputElement*>(webElement);
169 } 167 }
170 } // namespace blink 168 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/WebImageDecoder.cpp ('k') | Source/web/WebInputEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698