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

Side by Side Diff: Source/WebCore/html/shadow/DateTimeFieldElement.h

Issue 11420032: Merge 134239 - Refactoring: set read-only values on layout in DateTimeEditElement (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1312/
Patch Set: Created 8 years, 1 month 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 virtual bool isFieldOwnerDisabledOrReadOnly() const = 0; 58 virtual bool isFieldOwnerDisabledOrReadOnly() const = 0;
59 virtual AtomicString localeIdentifier() const = 0; 59 virtual AtomicString localeIdentifier() const = 0;
60 }; 60 };
61 61
62 virtual void defaultEventHandler(Event*) OVERRIDE; 62 virtual void defaultEventHandler(Event*) OVERRIDE;
63 virtual bool hasValue() const = 0; 63 virtual bool hasValue() const = 0;
64 bool isReadOnly() const; 64 bool isReadOnly() const;
65 virtual void populateDateTimeFieldsState(DateTimeFieldsState&) = 0; 65 virtual void populateDateTimeFieldsState(DateTimeFieldsState&) = 0;
66 void removeEventHandler() { m_fieldOwner = 0; } 66 void removeEventHandler() { m_fieldOwner = 0; }
67 void setReadOnly(); 67 void setReadOnly();
68 virtual void setEmptyValue(const DateComponents& dateForReadOnlyField, Event Behavior = DispatchNoEvent) = 0; 68 virtual void setEmptyValue(EventBehavior = DispatchNoEvent) = 0;
69 virtual void setValueAsDate(const DateComponents&) = 0; 69 virtual void setValueAsDate(const DateComponents&) = 0;
70 virtual void setValueAsDateTimeFieldsState(const DateTimeFieldsState&, const DateComponents& dateForReadOnlyField) = 0; 70 virtual void setValueAsDateTimeFieldsState(const DateTimeFieldsState&) = 0;
71 virtual void setValueAsInteger(int, EventBehavior = DispatchNoEvent) = 0; 71 virtual void setValueAsInteger(int, EventBehavior = DispatchNoEvent) = 0;
72 virtual void stepDown() = 0; 72 virtual void stepDown() = 0;
73 virtual void stepUp() = 0; 73 virtual void stepUp() = 0;
74 virtual String value() const = 0; 74 virtual String value() const = 0;
75 virtual int valueAsInteger() const = 0; 75 virtual int valueAsInteger() const = 0;
76 virtual String visibleValue() const = 0; 76 virtual String visibleValue() const = 0;
77 77
78 protected: 78 protected:
79 DateTimeFieldElement(Document*, FieldOwner&); 79 DateTimeFieldElement(Document*, FieldOwner&);
80 virtual void didBlur(); 80 virtual void didBlur();
(...skipping 12 matching lines...) Expand all
93 bool isRTL() const; 93 bool isRTL() const;
94 virtual bool supportsFocus() const OVERRIDE FINAL; 94 virtual bool supportsFocus() const OVERRIDE FINAL;
95 95
96 FieldOwner* m_fieldOwner; 96 FieldOwner* m_fieldOwner;
97 }; 97 };
98 98
99 } // namespace WebCore 99 } // namespace WebCore
100 100
101 #endif 101 #endif
102 #endif 102 #endif
OLDNEW
« no previous file with comments | « Source/WebCore/html/shadow/DateTimeEditElement.cpp ('k') | Source/WebCore/html/shadow/DateTimeFieldElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698