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

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

Issue 12090060: Merge 140788 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1364/
Patch Set: Created 7 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 unified diff | Download patch
« no previous file with comments | « no previous file | Source/WebCore/html/shadow/DateTimeFieldElements.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 virtual void populateDateTimeFieldsState(DateTimeFieldsState&) = 0; 67 virtual void populateDateTimeFieldsState(DateTimeFieldsState&) = 0;
68 void removeEventHandler() { m_fieldOwner = 0; } 68 void removeEventHandler() { m_fieldOwner = 0; }
69 void setReadOnly(); 69 void setReadOnly();
70 virtual void setEmptyValue(EventBehavior = DispatchNoEvent) = 0; 70 virtual void setEmptyValue(EventBehavior = DispatchNoEvent) = 0;
71 virtual void setValueAsDate(const DateComponents&) = 0; 71 virtual void setValueAsDate(const DateComponents&) = 0;
72 virtual void setValueAsDateTimeFieldsState(const DateTimeFieldsState&) = 0; 72 virtual void setValueAsDateTimeFieldsState(const DateTimeFieldsState&) = 0;
73 virtual void setValueAsInteger(int, EventBehavior = DispatchNoEvent) = 0; 73 virtual void setValueAsInteger(int, EventBehavior = DispatchNoEvent) = 0;
74 virtual void stepDown() = 0; 74 virtual void stepDown() = 0;
75 virtual void stepUp() = 0; 75 virtual void stepUp() = 0;
76 virtual String value() const = 0; 76 virtual String value() const = 0;
77 virtual int valueAsInteger() const = 0;
78 virtual String visibleValue() const = 0; 77 virtual String visibleValue() const = 0;
79 78
80 protected: 79 protected:
81 DateTimeFieldElement(Document*, FieldOwner&); 80 DateTimeFieldElement(Document*, FieldOwner&);
82 virtual void didBlur(); 81 virtual void didBlur();
83 virtual void didFocus(); 82 virtual void didFocus();
84 void focusOnNextField(); 83 void focusOnNextField();
85 virtual void handleKeyboardEvent(KeyboardEvent*) = 0; 84 virtual void handleKeyboardEvent(KeyboardEvent*) = 0;
86 void initialize(const AtomicString& pseudo, const String& axHelpText); 85 void initialize(const AtomicString& pseudo, const String& axHelpText);
87 Locale& localeForOwner() const; 86 Locale& localeForOwner() const;
88 AtomicString localeIdentifier() const; 87 AtomicString localeIdentifier() const;
89 virtual int maximum() const = 0; 88 virtual int maximum() const = 0;
90 virtual int minimum() const = 0; 89 virtual int minimum() const = 0;
91 void updateVisibleValue(EventBehavior); 90 void updateVisibleValue(EventBehavior);
91 virtual int valueAsInteger() const = 0;
92 92
93 private: 93 private:
94 void defaultKeyboardEventHandler(KeyboardEvent*); 94 void defaultKeyboardEventHandler(KeyboardEvent*);
95 virtual bool isDateTimeFieldElement() const OVERRIDE; 95 virtual bool isDateTimeFieldElement() const OVERRIDE;
96 virtual bool isFocusable() const OVERRIDE FINAL; 96 virtual bool isFocusable() const OVERRIDE FINAL;
97 virtual bool supportsFocus() const OVERRIDE FINAL; 97 virtual bool supportsFocus() const OVERRIDE FINAL;
98 98
99 FieldOwner* m_fieldOwner; 99 FieldOwner* m_fieldOwner;
100 }; 100 };
101 101
102 } // namespace WebCore 102 } // namespace WebCore
103 103
104 #endif 104 #endif
105 #endif 105 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/WebCore/html/shadow/DateTimeFieldElements.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698