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

Side by Side Diff: Source/core/html/HTMLInputElement.h

Issue 995363002: Implement autocapitalize in Blink to be used by the embedder. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: update webexposed tests Created 5 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
« no previous file with comments | « Source/core/html/HTMLAttributeNames.in ('k') | Source/core/html/HTMLInputElement.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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2010 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2010 Apple Inc. All rights reserved.
6 * Copyright (C) 2012 Samsung Electronics. All rights reserved. 6 * Copyright (C) 2012 Samsung Electronics. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 bool tooLong(const String&, NeedsToCheckDirtyFlag) const; 328 bool tooLong(const String&, NeedsToCheckDirtyFlag) const;
329 bool tooShort(const String&, NeedsToCheckDirtyFlag) const; 329 bool tooShort(const String&, NeedsToCheckDirtyFlag) const;
330 330
331 virtual bool supportsPlaceholder() const override final; 331 virtual bool supportsPlaceholder() const override final;
332 virtual void updatePlaceholderText() override final; 332 virtual void updatePlaceholderText() override final;
333 virtual bool isEmptyValue() const override final { return innerEditorValue() .isEmpty(); } 333 virtual bool isEmptyValue() const override final { return innerEditorValue() .isEmpty(); }
334 virtual bool isEmptySuggestedValue() const override final { return suggested Value().isEmpty(); } 334 virtual bool isEmptySuggestedValue() const override final { return suggested Value().isEmpty(); }
335 virtual void handleFocusEvent(Element* oldFocusedElement, WebFocusType) over ride final; 335 virtual void handleFocusEvent(Element* oldFocusedElement, WebFocusType) over ride final;
336 virtual void handleBlurEvent() override final; 336 virtual void handleBlurEvent() override final;
337 virtual void dispatchFocusInEvent(const AtomicString& eventType, Element* ol dFocusedElement, WebFocusType) override final; 337 virtual void dispatchFocusInEvent(const AtomicString& eventType, Element* ol dFocusedElement, WebFocusType) override final;
338 virtual bool supportsAutocapitalize() const override final;
339 virtual const AtomicString& defaultAutocapitalize() const override final;
338 340
339 virtual bool isOptionalFormControl() const override final { return !isRequir edFormControl(); } 341 virtual bool isOptionalFormControl() const override final { return !isRequir edFormControl(); }
340 virtual bool isRequiredFormControl() const override final; 342 virtual bool isRequiredFormControl() const override final;
341 virtual bool recalcWillValidate() const override final; 343 virtual bool recalcWillValidate() const override final;
342 virtual void requiredAttributeChanged() override final; 344 virtual void requiredAttributeChanged() override final;
343 345
344 void updateTouchEventHandlerRegistry(); 346 void updateTouchEventHandlerRegistry();
345 void initializeTypeInParsing(); 347 void initializeTypeInParsing();
346 void updateType(); 348 void updateType();
347 349
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 // The ImageLoader must be owned by this element because the loader code ass umes 388 // The ImageLoader must be owned by this element because the loader code ass umes
387 // that it lives as long as its owning element lives. If we move the loader into 389 // that it lives as long as its owning element lives. If we move the loader into
388 // the ImageInput object we may delete the loader while this element lives o n. 390 // the ImageInput object we may delete the loader while this element lives o n.
389 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader; 391 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader;
390 OwnPtrWillBeMember<ListAttributeTargetObserver> m_listAttributeTargetObserve r; 392 OwnPtrWillBeMember<ListAttributeTargetObserver> m_listAttributeTargetObserve r;
391 }; 393 };
392 394
393 } // namespace blink 395 } // namespace blink
394 396
395 #endif // HTMLInputElement_h 397 #endif // HTMLInputElement_h
OLDNEW
« no previous file with comments | « Source/core/html/HTMLAttributeNames.in ('k') | Source/core/html/HTMLInputElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698