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

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

Issue 16194013: Mouse press should focus on any types of form controls. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/html/HTMLTextAreaElement.cpp ('k') | Source/core/html/InputType.cpp » ('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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * Copyright (C) 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2011 Apple Inc. All rights reserved.
4 * Copyright (C) 2012 Samsung Electronics. All rights reserved. 4 * Copyright (C) 2012 Samsung Electronics. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are 7 * modification, are permitted provided that the following conditions are
8 * met: 8 * met:
9 * 9 *
10 * * Redistributions of source code must retain the above copyright 10 * * Redistributions of source code must retain the above copyright
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 virtual void handleKeypressEvent(KeyboardEvent*); 188 virtual void handleKeypressEvent(KeyboardEvent*);
189 virtual void handleKeyupEvent(KeyboardEvent*); 189 virtual void handleKeyupEvent(KeyboardEvent*);
190 virtual void handleBeforeTextInsertedEvent(BeforeTextInsertedEvent*); 190 virtual void handleBeforeTextInsertedEvent(BeforeTextInsertedEvent*);
191 virtual void handleTouchEvent(TouchEvent*); 191 virtual void handleTouchEvent(TouchEvent*);
192 virtual void forwardEvent(Event*); 192 virtual void forwardEvent(Event*);
193 // Helpers for event handlers. 193 // Helpers for event handlers.
194 virtual bool shouldSubmitImplicitly(Event*); 194 virtual bool shouldSubmitImplicitly(Event*);
195 virtual PassRefPtr<HTMLFormElement> formForSubmission() const; 195 virtual PassRefPtr<HTMLFormElement> formForSubmission() const;
196 virtual bool hasCustomFocusLogic() const; 196 virtual bool hasCustomFocusLogic() const;
197 virtual bool isKeyboardFocusable(KeyboardEvent*) const; 197 virtual bool isKeyboardFocusable(KeyboardEvent*) const;
198 virtual bool isMouseFocusable() const; 198 virtual bool shouldShowFocusRingOnMouseFocus() const;
199 virtual bool shouldUseInputMethod() const; 199 virtual bool shouldUseInputMethod() const;
200 virtual void handleFocusEvent(Node* oldFocusedNode, FocusDirection); 200 virtual void handleFocusEvent(Node* oldFocusedNode, FocusDirection);
201 virtual void handleBlurEvent(); 201 virtual void handleBlurEvent();
202 virtual void accessKeyAction(bool sendMouseEvents); 202 virtual void accessKeyAction(bool sendMouseEvents);
203 virtual bool canBeSuccessfulSubmitButton(); 203 virtual bool canBeSuccessfulSubmitButton();
204 virtual void subtreeHasChanged(); 204 virtual void subtreeHasChanged();
205 virtual bool hasTouchEventHandler() const; 205 virtual bool hasTouchEventHandler() const;
206 206
207 virtual void blur(); 207 virtual void blur();
208 208
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 private: 309 private:
310 // Helper for stepUp()/stepDown(). Adds step value * count to the current va lue. 310 // Helper for stepUp()/stepDown(). Adds step value * count to the current va lue.
311 void applyStep(int count, AnyStepHandling, TextFieldEventBehavior, Exception Code&); 311 void applyStep(int count, AnyStepHandling, TextFieldEventBehavior, Exception Code&);
312 312
313 // Raw pointer because the HTMLInputElement object owns this InputType objec t. 313 // Raw pointer because the HTMLInputElement object owns this InputType objec t.
314 HTMLInputElement* m_element; 314 HTMLInputElement* m_element;
315 }; 315 };
316 316
317 } // namespace WebCore 317 } // namespace WebCore
318 #endif 318 #endif
OLDNEW
« no previous file with comments | « Source/core/html/HTMLTextAreaElement.cpp ('k') | Source/core/html/InputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698