summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/layout/layout_file_upload_control.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/core/layout/layout_file_upload_control.h')
-rw-r--r--chromium/third_party/blink/renderer/core/layout/layout_file_upload_control.h23
1 files changed, 3 insertions, 20 deletions
diff --git a/chromium/third_party/blink/renderer/core/layout/layout_file_upload_control.h b/chromium/third_party/blink/renderer/core/layout/layout_file_upload_control.h
index 83aceca59f4..372714a41ef 100644
--- a/chromium/third_party/blink/renderer/core/layout/layout_file_upload_control.h
+++ b/chromium/third_party/blink/renderer/core/layout/layout_file_upload_control.h
@@ -27,8 +27,6 @@
namespace blink {
-class HTMLInputElement;
-
// Each LayoutFileUploadControl contains a LayoutButton (for opening the file
// chooser), and sufficient space to draw a file icon and filename. The
// LayoutButton has a shadow node associated with it to receive click/hover
@@ -36,7 +34,7 @@ class HTMLInputElement;
class CORE_EXPORT LayoutFileUploadControl final : public LayoutBlockFlow {
public:
- LayoutFileUploadControl(HTMLInputElement*);
+ explicit LayoutFileUploadControl(Element*);
~LayoutFileUploadControl() override;
bool IsOfType(LayoutObjectType type) const override {
@@ -44,39 +42,24 @@ class CORE_EXPORT LayoutFileUploadControl final : public LayoutBlockFlow {
LayoutBlockFlow::IsOfType(type);
}
- String ButtonValue();
String FileTextValue() const;
HTMLInputElement* UploadButton() const;
- int UploadButtonWidth();
- bool HasControlClip() const override { return true; }
- PhysicalRect ControlClipRect(const PhysicalOffset&) const override;
PhysicalRect OverflowClipRect(const PhysicalOffset&,
OverlayScrollbarClipBehavior) const override;
- bool PaintedOutputOfObjectHasNoEffectRegardlessOfSize() const override {
- return false;
- }
-
static const int kAfterButtonSpacing = 4;
const char* GetName() const override { return "LayoutFileUploadControl"; }
private:
- void UpdateFromElement() override;
- void ComputeIntrinsicLogicalWidths(
- LayoutUnit& min_logical_width,
- LayoutUnit& max_logical_width) const override;
- void ComputePreferredLogicalWidths() override;
+ bool IsChildAllowed(LayoutObject* child,
+ const ComputedStyle& style) const override;
void PaintObject(const PaintInfo&,
const PhysicalOffset& paint_offset) const override;
int MaxFilenameWidth() const;
-
- PositionWithAffinity PositionForPoint(const PhysicalOffset&) const override;
-
- bool can_receive_dropped_files_;
};
DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutFileUploadControl, IsFileUploadControl());