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 10 matching lines...) Expand all Loading... |
21 #ifndef LayoutFileUploadControl_h | 21 #ifndef LayoutFileUploadControl_h |
22 #define LayoutFileUploadControl_h | 22 #define LayoutFileUploadControl_h |
23 | 23 |
24 #include "core/CoreExport.h" | 24 #include "core/CoreExport.h" |
25 #include "core/layout/LayoutBlockFlow.h" | 25 #include "core/layout/LayoutBlockFlow.h" |
26 | 26 |
27 namespace blink { | 27 namespace blink { |
28 | 28 |
29 class HTMLInputElement; | 29 class HTMLInputElement; |
30 | 30 |
31 // Each LayoutFileUploadControl contains a LayoutButton (for opening the file ch
ooser), and | 31 // Each LayoutFileUploadControl contains a LayoutButton (for opening the file |
32 // sufficient space to draw a file icon and filename. The LayoutButton has a sha
dow node | 32 // chooser), and sufficient space to draw a file icon and filename. The |
33 // associated with it to receive click/hover events. | 33 // LayoutButton has a shadow node associated with it to receive click/hover |
| 34 // events. |
34 | 35 |
35 class CORE_EXPORT LayoutFileUploadControl final : public LayoutBlockFlow { | 36 class CORE_EXPORT LayoutFileUploadControl final : public LayoutBlockFlow { |
36 public: | 37 public: |
37 LayoutFileUploadControl(HTMLInputElement*); | 38 LayoutFileUploadControl(HTMLInputElement*); |
38 ~LayoutFileUploadControl() override; | 39 ~LayoutFileUploadControl() override; |
39 | 40 |
40 bool isOfType(LayoutObjectType type) const override { | 41 bool isOfType(LayoutObjectType type) const override { |
41 return type == LayoutObjectFileUploadControl || | 42 return type == LayoutObjectFileUploadControl || |
42 LayoutBlockFlow::isOfType(type); | 43 LayoutBlockFlow::isOfType(type); |
43 } | 44 } |
(...skipping 21 matching lines...) Expand all Loading... |
65 PositionWithAffinity positionForPoint(const LayoutPoint&) override; | 66 PositionWithAffinity positionForPoint(const LayoutPoint&) override; |
66 | 67 |
67 bool m_canReceiveDroppedFiles; | 68 bool m_canReceiveDroppedFiles; |
68 }; | 69 }; |
69 | 70 |
70 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutFileUploadControl, isFileUploadControl()); | 71 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutFileUploadControl, isFileUploadControl()); |
71 | 72 |
72 } // namespace blink | 73 } // namespace blink |
73 | 74 |
74 #endif // LayoutFileUploadControl_h | 75 #endif // LayoutFileUploadControl_h |
OLD | NEW |