| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2009, 2012 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2009, 2012 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
| 5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
| 6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
| 7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
| 8 * | 8 * |
| 9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 | 35 |
| 36 class CORE_EXPORT LayoutFileUploadControl final : public LayoutBlockFlow { | 36 class CORE_EXPORT LayoutFileUploadControl final : public LayoutBlockFlow { |
| 37 public: | 37 public: |
| 38 LayoutFileUploadControl(HTMLInputElement*); | 38 LayoutFileUploadControl(HTMLInputElement*); |
| 39 ~LayoutFileUploadControl() override; | 39 ~LayoutFileUploadControl() override; |
| 40 | 40 |
| 41 bool isOfType(LayoutObjectType type) const override { | 41 bool isOfType(LayoutObjectType type) const override { |
| 42 return type == LayoutObjectFileUploadControl || | 42 return type == LayoutObjectFileUploadControl || |
| 43 LayoutBlockFlow::isOfType(type); | 43 LayoutBlockFlow::isOfType(type); |
| 44 } | 44 } |
| 45 char objectSize() const override { return sizeof(this); } |
| 45 | 46 |
| 46 String buttonValue(); | 47 String buttonValue(); |
| 47 String fileTextValue() const; | 48 String fileTextValue() const; |
| 48 | 49 |
| 49 HTMLInputElement* uploadButton() const; | 50 HTMLInputElement* uploadButton() const; |
| 50 int uploadButtonWidth(); | 51 int uploadButtonWidth(); |
| 51 | 52 |
| 52 static const int afterButtonSpacing = 4; | 53 static const int afterButtonSpacing = 4; |
| 53 | 54 |
| 54 const char* name() const override { return "LayoutFileUploadControl"; } | 55 const char* name() const override { return "LayoutFileUploadControl"; } |
| (...skipping 11 matching lines...) Expand all Loading... |
| 66 PositionWithAffinity positionForPoint(const LayoutPoint&) override; | 67 PositionWithAffinity positionForPoint(const LayoutPoint&) override; |
| 67 | 68 |
| 68 bool m_canReceiveDroppedFiles; | 69 bool m_canReceiveDroppedFiles; |
| 69 }; | 70 }; |
| 70 | 71 |
| 71 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutFileUploadControl, isFileUploadControl()); | 72 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutFileUploadControl, isFileUploadControl()); |
| 72 | 73 |
| 73 } // namespace blink | 74 } // namespace blink |
| 74 | 75 |
| 75 #endif // LayoutFileUploadControl_h | 76 #endif // LayoutFileUploadControl_h |
| OLD | NEW |