| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2008, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2008, 2010 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 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 | 59 |
| 60 void defaultEventHandler(Event*) override; | 60 void defaultEventHandler(Event*) override; |
| 61 | 61 |
| 62 private: | 62 private: |
| 63 explicit TextControlInnerEditorElement(Document&); | 63 explicit TextControlInnerEditorElement(Document&); |
| 64 LayoutObject* createLayoutObject(const ComputedStyle&) override; | 64 LayoutObject* createLayoutObject(const ComputedStyle&) override; |
| 65 PassRefPtr<ComputedStyle> customStyleForLayoutObject() override; | 65 PassRefPtr<ComputedStyle> customStyleForLayoutObject() override; |
| 66 bool supportsFocus() const override { return false; } | 66 bool supportsFocus() const override { return false; } |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 class SearchFieldDecorationElement final : public HTMLDivElement { | |
| 70 public: | |
| 71 static SearchFieldDecorationElement* create(Document&); | |
| 72 | |
| 73 void defaultEventHandler(Event*) override; | |
| 74 bool willRespondToMouseClickEvents() override; | |
| 75 | |
| 76 private: | |
| 77 explicit SearchFieldDecorationElement(Document&); | |
| 78 const AtomicString& shadowPseudoId() const override; | |
| 79 bool supportsFocus() const override { return false; } | |
| 80 }; | |
| 81 | |
| 82 class SearchFieldCancelButtonElement final : public HTMLDivElement { | 69 class SearchFieldCancelButtonElement final : public HTMLDivElement { |
| 83 public: | 70 public: |
| 84 static SearchFieldCancelButtonElement* create(Document&); | 71 static SearchFieldCancelButtonElement* create(Document&); |
| 85 | 72 |
| 86 void defaultEventHandler(Event*) override; | 73 void defaultEventHandler(Event*) override; |
| 87 bool willRespondToMouseClickEvents() override; | 74 bool willRespondToMouseClickEvents() override; |
| 88 | 75 |
| 89 private: | 76 private: |
| 90 explicit SearchFieldCancelButtonElement(Document&); | 77 explicit SearchFieldCancelButtonElement(Document&); |
| 91 void detach(const AttachContext& = AttachContext()) override; | 78 void detach(const AttachContext& = AttachContext()) override; |
| 92 bool supportsFocus() const override { return false; } | 79 bool supportsFocus() const override { return false; } |
| 93 | 80 |
| 94 bool m_capturing; | 81 bool m_capturing; |
| 95 }; | 82 }; |
| 96 | 83 |
| 97 } // namespace blink | 84 } // namespace blink |
| 98 | 85 |
| 99 #endif | 86 #endif |
| OLD | NEW |