Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / rendering / RenderFileUploadControl.h
index 460a7cb..3a040c7 100644 (file)
@@ -31,29 +31,32 @@ class HTMLInputElement;
 // sufficient space to draw a file icon and filename. The RenderButton has a shadow node
 // associated with it to receive click/hover events.
 
-class RenderFileUploadControl FINAL : public RenderBlockFlow {
+class RenderFileUploadControl final : public RenderBlockFlow {
 public:
     RenderFileUploadControl(HTMLInputElement*);
     virtual ~RenderFileUploadControl();
 
-    virtual bool isFileUploadControl() const OVERRIDE { return true; }
+    virtual bool isOfType(RenderObjectType type) const override { return type == RenderObjectFileUploadControl || RenderBlockFlow::isOfType(type); }
 
     String buttonValue();
     String fileTextValue() const;
 
+    HTMLInputElement* uploadButton() const;
+    int uploadButtonWidth();
+
+    static const int afterButtonSpacing = 4;
+
 private:
-    virtual const char* renderName() const OVERRIDE { return "RenderFileUploadControl"; }
+    virtual const char* renderName() const override { return "RenderFileUploadControl"; }
 
-    virtual void updateFromElement() OVERRIDE;
-    virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, LayoutUnit& maxLogicalWidth) const OVERRIDE;
-    virtual void computePreferredLogicalWidths() OVERRIDE;
-    virtual void paintObject(PaintInfo&, const LayoutPoint&) OVERRIDE;
+    virtual void updateFromElement() override;
+    virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, LayoutUnit& maxLogicalWidth) const override;
+    virtual void computePreferredLogicalWidths() override;
+    virtual void paintObject(PaintInfo&, const LayoutPoint&) override;
 
     int maxFilenameWidth() const;
 
-    virtual PositionWithAffinity positionForPoint(const LayoutPoint&) OVERRIDE;
-
-    HTMLInputElement* uploadButton() const;
+    virtual PositionWithAffinity positionForPoint(const LayoutPoint&) override;
 
     bool m_canReceiveDroppedFiles;
 };