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

Side by Side Diff: public/web/WebInputElement.h

Issue 152243003: Rename WebNodeCollection to WebElementCollection for clarity (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 10 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 | « public/web/WebElementCollection.h ('k') | public/web/WebNode.h » ('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 21 matching lines...) Expand all
32 #define WebInputElement_h 32 #define WebInputElement_h
33 33
34 #include "WebFormControlElement.h" 34 #include "WebFormControlElement.h"
35 35
36 #if BLINK_IMPLEMENTATION 36 #if BLINK_IMPLEMENTATION
37 namespace WebCore { class HTMLInputElement; } 37 namespace WebCore { class HTMLInputElement; }
38 #endif 38 #endif
39 39
40 namespace blink { 40 namespace blink {
41 41
42 class WebNodeCollection; 42 class WebElementCollection;
43 43
44 // Provides readonly access to some properties of a DOM input element node. 44 // Provides readonly access to some properties of a DOM input element node.
45 class WebInputElement : public WebFormControlElement { 45 class WebInputElement : public WebFormControlElement {
46 public: 46 public:
47 enum SpeechInputState { 47 enum SpeechInputState {
48 Idle, 48 Idle,
49 Recording, 49 Recording,
50 Recognizing, 50 Recognizing,
51 }; 51 };
52 52
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 BLINK_EXPORT void setEditingValue(const WebString&); 85 BLINK_EXPORT void setEditingValue(const WebString&);
86 BLINK_EXPORT void setSuggestedValue(const WebString&); 86 BLINK_EXPORT void setSuggestedValue(const WebString&);
87 BLINK_EXPORT WebString suggestedValue() const; 87 BLINK_EXPORT WebString suggestedValue() const;
88 BLINK_EXPORT void setSelectionRange(int, int); 88 BLINK_EXPORT void setSelectionRange(int, int);
89 BLINK_EXPORT int selectionStart() const; 89 BLINK_EXPORT int selectionStart() const;
90 BLINK_EXPORT int selectionEnd() const; 90 BLINK_EXPORT int selectionEnd() const;
91 BLINK_EXPORT bool isValidValue(const WebString&) const; 91 BLINK_EXPORT bool isValidValue(const WebString&) const;
92 BLINK_EXPORT bool isChecked() const; 92 BLINK_EXPORT bool isChecked() const;
93 BLINK_EXPORT bool isMultiple() const; 93 BLINK_EXPORT bool isMultiple() const;
94 94
95 BLINK_EXPORT WebNodeCollection dataListOptions() const; 95 BLINK_EXPORT WebElementCollection dataListOptions() const;
96 96
97 // Return the localized value for this input type. 97 // Return the localized value for this input type.
98 BLINK_EXPORT WebString localizeValue(const WebString&) const; 98 BLINK_EXPORT WebString localizeValue(const WebString&) const;
99 99
100 BLINK_EXPORT bool isSpeechInputEnabled() const; 100 BLINK_EXPORT bool isSpeechInputEnabled() const;
101 BLINK_EXPORT SpeechInputState getSpeechInputState() const; 101 BLINK_EXPORT SpeechInputState getSpeechInputState() const;
102 BLINK_EXPORT void startSpeechInput(); 102 BLINK_EXPORT void startSpeechInput();
103 BLINK_EXPORT void stopSpeechInput(); 103 BLINK_EXPORT void stopSpeechInput();
104 104
105 // Exposes the default value of the maxLength attribute. 105 // Exposes the default value of the maxLength attribute.
(...skipping 18 matching lines...) Expand all
124 BLINK_EXPORT WebInputElement* toWebInputElement(WebElement*); 124 BLINK_EXPORT WebInputElement* toWebInputElement(WebElement*);
125 125
126 inline const WebInputElement* toWebInputElement(const WebElement* element) 126 inline const WebInputElement* toWebInputElement(const WebElement* element)
127 { 127 {
128 return toWebInputElement(const_cast<WebElement*>(element)); 128 return toWebInputElement(const_cast<WebElement*>(element));
129 } 129 }
130 130
131 } // namespace blink 131 } // namespace blink
132 132
133 #endif 133 #endif
OLDNEW
« no previous file with comments | « public/web/WebElementCollection.h ('k') | public/web/WebNode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698