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

Side by Side Diff: Source/core/html/forms/TextFieldInputType.cpp

Issue 852083002: Propagate focus type to plugins (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Moved Created 5 years, 11 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/forms/TextFieldInputType.h ('k') | Source/core/loader/EmptyClients.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) 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 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 241
242 renderTextControl->capsLockStateMayHaveChanged(); 242 renderTextControl->capsLockStateMayHaveChanged();
243 } else if (event->type() == EventTypeNames::focus) { 243 } else if (event->type() == EventTypeNames::focus) {
244 renderTextControl->capsLockStateMayHaveChanged(); 244 renderTextControl->capsLockStateMayHaveChanged();
245 } 245 }
246 246
247 element().forwardEvent(event); 247 element().forwardEvent(event);
248 } 248 }
249 } 249 }
250 250
251 void TextFieldInputType::handleFocusEvent(Element* oldFocusedNode, FocusType foc usType) 251 void TextFieldInputType::handleFocusEvent(Element* oldFocusedNode, WebFocusType focusType)
252 { 252 {
253 InputType::handleFocusEvent(oldFocusedNode, focusType); 253 InputType::handleFocusEvent(oldFocusedNode, focusType);
254 element().beginEditing(); 254 element().beginEditing();
255 } 255 }
256 256
257 void TextFieldInputType::handleBlurEvent() 257 void TextFieldInputType::handleBlurEvent()
258 { 258 {
259 InputType::handleBlurEvent(); 259 InputType::handleBlurEvent();
260 element().endEditing(); 260 element().endEditing();
261 if (SpinButtonElement *spinButton = spinButtonElement()) 261 if (SpinButtonElement *spinButton = spinButtonElement())
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 return shouldSpinButtonRespondToMouseEvents() && element().focused(); 551 return shouldSpinButtonRespondToMouseEvents() && element().focused();
552 } 552 }
553 553
554 void TextFieldInputType::spinButtonDidReleaseMouseCapture(SpinButtonElement::Eve ntDispatch eventDispatch) 554 void TextFieldInputType::spinButtonDidReleaseMouseCapture(SpinButtonElement::Eve ntDispatch eventDispatch)
555 { 555 {
556 if (eventDispatch == SpinButtonElement::EventDispatchAllowed) 556 if (eventDispatch == SpinButtonElement::EventDispatchAllowed)
557 element().dispatchFormControlChangeEvent(); 557 element().dispatchFormControlChangeEvent();
558 } 558 }
559 559
560 } // namespace blink 560 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/html/forms/TextFieldInputType.h ('k') | Source/core/loader/EmptyClients.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698