OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 29 matching lines...) Expand all Loading... |
40 public: | 40 public: |
41 static PassRefPtrWillBeRawPtr<InputType> create(HTMLInputElement&); | 41 static PassRefPtrWillBeRawPtr<InputType> create(HTMLInputElement&); |
42 | 42 |
43 void stopSearchEventTimer(); | 43 void stopSearchEventTimer(); |
44 | 44 |
45 private: | 45 private: |
46 SearchInputType(HTMLInputElement&); | 46 SearchInputType(HTMLInputElement&); |
47 virtual void countUsage() override; | 47 virtual void countUsage() override; |
48 virtual LayoutObject* createRenderer(const LayoutStyle&) const override; | 48 virtual LayoutObject* createRenderer(const LayoutStyle&) const override; |
49 virtual const AtomicString& formControlType() const override; | 49 virtual const AtomicString& formControlType() const override; |
50 virtual bool shouldRespectSpeechAttribute() override; | |
51 virtual bool needsContainer() const override; | 50 virtual bool needsContainer() const override; |
52 virtual void createShadowSubtree() override; | 51 virtual void createShadowSubtree() override; |
53 virtual void handleKeydownEvent(KeyboardEvent*) override; | 52 virtual void handleKeydownEvent(KeyboardEvent*) override; |
54 virtual void didSetValueByUserEdit(ValueChangeState) override; | 53 virtual void didSetValueByUserEdit(ValueChangeState) override; |
55 virtual bool supportsInputModeAttribute() const override; | 54 virtual bool supportsInputModeAttribute() const override; |
56 virtual void updateView() override; | 55 virtual void updateView() override; |
57 | 56 |
58 void searchEventTimerFired(Timer<SearchInputType>*); | 57 void searchEventTimerFired(Timer<SearchInputType>*); |
59 bool searchEventsShouldBeDispatched() const; | 58 bool searchEventsShouldBeDispatched() const; |
60 void startSearchEventTimer(); | 59 void startSearchEventTimer(); |
61 void updateCancelButtonVisibility(); | 60 void updateCancelButtonVisibility(); |
62 | 61 |
63 Timer<SearchInputType> m_searchEventTimer; | 62 Timer<SearchInputType> m_searchEventTimer; |
64 }; | 63 }; |
65 | 64 |
66 } // namespace blink | 65 } // namespace blink |
67 | 66 |
68 #endif // SearchInputType_h | 67 #endif // SearchInputType_h |
OLD | NEW |