Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1176)

Unified Diff: Source/core/rendering/RenderTextControlSingleLine.h

Issue 922423002: Move rendering/RenderTextControl* to layout/LayoutTextControl* (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/rendering/RenderTextControlSingleLine.h
diff --git a/Source/core/rendering/RenderTextControlSingleLine.h b/Source/core/rendering/RenderTextControlSingleLine.h
deleted file mode 100644
index ec304df4b23e7a756ef403c1523aee9bc8b31e79..0000000000000000000000000000000000000000
--- a/Source/core/rendering/RenderTextControlSingleLine.h
+++ /dev/null
@@ -1,105 +0,0 @@
-/*
- * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved.
- * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmobile.com/)
- * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library General Public License
- * along with this library; see the file COPYING.LIB. If not, write to
- * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- * Boston, MA 02110-1301, USA.
- *
- */
-
-#ifndef RenderTextControlSingleLine_h
-#define RenderTextControlSingleLine_h
-
-#include "core/html/HTMLInputElement.h"
-#include "core/rendering/RenderTextControl.h"
-
-namespace blink {
-
-class HTMLInputElement;
-
-class RenderTextControlSingleLine : public RenderTextControl {
-public:
- RenderTextControlSingleLine(HTMLInputElement*);
- virtual ~RenderTextControlSingleLine();
- // FIXME: Move createInnerEditorStyle() to TextControlInnerEditorElement.
- virtual PassRefPtr<LayoutStyle> createInnerEditorStyle(const LayoutStyle& startStyle) const override final;
-
- void capsLockStateMayHaveChanged();
-
-protected:
- virtual void centerContainerIfNeeded(RenderBox*) const { }
- virtual LayoutUnit computeLogicalHeightLimit() const;
- Element* containerElement() const;
- Element* editingViewPortElement() const;
- HTMLInputElement* inputElement() const;
-
-private:
- virtual bool hasControlClip() const override final;
- virtual LayoutRect controlClipRect(const LayoutPoint&) const override final;
- virtual bool isOfType(LayoutObjectType type) const override { return type == LayoutObjectTextField || RenderTextControl::isOfType(type); }
-
- virtual void paint(const PaintInfo&, const LayoutPoint&) override;
- virtual void layout() override;
-
- virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction) override final;
-
- virtual void autoscroll(const IntPoint&) override final;
-
- // Subclassed to forward to our inner div.
- virtual LayoutUnit scrollLeft() const override final;
- virtual LayoutUnit scrollTop() const override final;
- virtual LayoutUnit scrollWidth() const override final;
- virtual LayoutUnit scrollHeight() const override final;
- virtual void setScrollLeft(LayoutUnit) override final;
- virtual void setScrollTop(LayoutUnit) override final;
-
- int textBlockWidth() const;
- virtual float getAvgCharWidth(AtomicString family) override final;
- virtual LayoutUnit preferredContentLogicalWidth(float charWidth) const override final;
- virtual LayoutUnit computeControlLogicalHeight(LayoutUnit lineHeight, LayoutUnit nonContentHeight) const override;
-
- virtual void styleDidChange(StyleDifference, const LayoutStyle* oldStyle) override final;
-
- bool textShouldBeTruncated() const;
-
- HTMLElement* innerSpinButtonElement() const;
-
- bool m_shouldDrawCapsLockIndicator;
- LayoutUnit m_desiredInnerEditorLogicalHeight;
-};
-
-DEFINE_LAYOUT_OBJECT_TYPE_CASTS(RenderTextControlSingleLine, isTextField());
-
-// ----------------------------
-
-class RenderTextControlInnerBlock : public RenderBlockFlow {
-public:
- RenderTextControlInnerBlock(Element* element) : RenderBlockFlow(element) { }
- virtual int inlineBlockBaseline(LineDirectionMode direction) const override { return lastLineBoxBaseline(direction); }
-
-private:
- virtual bool isIntristicallyScrollable(ScrollbarOrientation orientation) const override
- {
- return orientation == HorizontalScrollbar;
- }
- virtual bool scrollsOverflowX() const override { return hasOverflowClip(); }
- virtual bool scrollsOverflowY() const override { return false; }
- virtual bool hasLineIfEmpty() const override { return true; }
-};
-
-}
-
-#endif
« no previous file with comments | « Source/core/rendering/RenderTextControlMultiLine.cpp ('k') | Source/core/rendering/RenderTextControlSingleLine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698