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

Side by Side Diff: Source/core/html/HTMLTextAreaElement.h

Issue 392573002: HTMLTextAreaElement.setSelectionRange should not change focus. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rename Created 6 years, 5 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2010 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2010 Apple Inc. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 virtual void didAddUserAgentShadowRoot(ShadowRoot&) OVERRIDE; 69 virtual void didAddUserAgentShadowRoot(ShadowRoot&) OVERRIDE;
70 // FIXME: Author shadows should be allowed 70 // FIXME: Author shadows should be allowed
71 // https://bugs.webkit.org/show_bug.cgi?id=92608 71 // https://bugs.webkit.org/show_bug.cgi?id=92608
72 virtual bool areAuthorShadowsAllowed() const OVERRIDE { return false; } 72 virtual bool areAuthorShadowsAllowed() const OVERRIDE { return false; }
73 73
74 void handleBeforeTextInsertedEvent(BeforeTextInsertedEvent*) const; 74 void handleBeforeTextInsertedEvent(BeforeTextInsertedEvent*) const;
75 static String sanitizeUserInputValue(const String&, unsigned maxLength); 75 static String sanitizeUserInputValue(const String&, unsigned maxLength);
76 void updateValue() const; 76 void updateValue() const;
77 virtual void setInnerEditorValue(const String&) OVERRIDE; 77 virtual void setInnerEditorValue(const String&) OVERRIDE;
78 void setNonDirtyValue(const String&); 78 void setNonDirtyValue(const String&);
79 void setValueCommon(const String&, TextFieldEventBehavior); 79 bool setValueCommon(const String&, TextFieldEventBehavior);
yosin_UTC9 2014/07/16 07:09:14 nit: Could you add comment about |bool| return val
yoichio 2014/07/16 08:07:12 Done.
80 80
81 virtual bool supportsPlaceholder() const OVERRIDE { return true; } 81 virtual bool supportsPlaceholder() const OVERRIDE { return true; }
82 virtual void updatePlaceholderText() OVERRIDE; 82 virtual void updatePlaceholderText() OVERRIDE;
83 virtual bool isEmptyValue() const OVERRIDE { return value().isEmpty(); } 83 virtual bool isEmptyValue() const OVERRIDE { return value().isEmpty(); }
84 virtual bool isEmptySuggestedValue() const OVERRIDE FINAL { return suggested Value().isEmpty(); } 84 virtual bool isEmptySuggestedValue() const OVERRIDE FINAL { return suggested Value().isEmpty(); }
85 85
86 virtual bool isOptionalFormControl() const OVERRIDE { return !isRequiredForm Control(); } 86 virtual bool isOptionalFormControl() const OVERRIDE { return !isRequiredForm Control(); }
87 virtual bool isRequiredFormControl() const OVERRIDE { return isRequired(); } 87 virtual bool isRequiredFormControl() const OVERRIDE { return isRequired(); }
88 88
89 virtual void defaultEventHandler(Event*) OVERRIDE; 89 virtual void defaultEventHandler(Event*) OVERRIDE;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 WrapMethod m_wrap; 129 WrapMethod m_wrap;
130 mutable String m_value; 130 mutable String m_value;
131 mutable bool m_isDirty; 131 mutable bool m_isDirty;
132 bool m_valueIsUpToDate; 132 bool m_valueIsUpToDate;
133 String m_suggestedValue; 133 String m_suggestedValue;
134 }; 134 };
135 135
136 } //namespace 136 } //namespace
137 137
138 #endif 138 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698