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

Side by Side Diff: Source/core/html/HTMLTextAreaElement.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/HTMLTextAreaElement.h ('k') | Source/core/html/HTMLTextFormControlElement.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) 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) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Apple Inc. All rights reserv ed. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Apple Inc. All rights reserv ed.
6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) 6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com)
7 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org) 7 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org)
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 void HTMLTextAreaElement::defaultEventHandler(Event* event) 254 void HTMLTextAreaElement::defaultEventHandler(Event* event)
255 { 255 {
256 if (renderer() && (event->isMouseEvent() || event->isDragEvent() || event->h asInterface(EventNames::WheelEvent) || event->type() == EventTypeNames::blur)) 256 if (renderer() && (event->isMouseEvent() || event->isDragEvent() || event->h asInterface(EventNames::WheelEvent) || event->type() == EventTypeNames::blur))
257 forwardEvent(event); 257 forwardEvent(event);
258 else if (renderer() && event->isBeforeTextInsertedEvent()) 258 else if (renderer() && event->isBeforeTextInsertedEvent())
259 handleBeforeTextInsertedEvent(static_cast<BeforeTextInsertedEvent*>(even t)); 259 handleBeforeTextInsertedEvent(static_cast<BeforeTextInsertedEvent*>(even t));
260 260
261 HTMLTextFormControlElement::defaultEventHandler(event); 261 HTMLTextFormControlElement::defaultEventHandler(event);
262 } 262 }
263 263
264 void HTMLTextAreaElement::handleFocusEvent(Element*, FocusType) 264 void HTMLTextAreaElement::handleFocusEvent(Element*, WebFocusType)
265 { 265 {
266 if (LocalFrame* frame = document().frame()) 266 if (LocalFrame* frame = document().frame())
267 frame->spellChecker().didBeginEditing(this); 267 frame->spellChecker().didBeginEditing(this);
268 } 268 }
269 269
270 void HTMLTextAreaElement::subtreeHasChanged() 270 void HTMLTextAreaElement::subtreeHasChanged()
271 { 271 {
272 setChangedSinceLastFormControlChangeEvent(true); 272 setChangedSinceLastFormControlChangeEvent(true);
273 m_valueIsUpToDate = false; 273 m_valueIsUpToDate = false;
274 setNeedsValidityCheck(); 274 setNeedsValidityCheck();
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
626 { 626 {
627 return true; 627 return true;
628 } 628 }
629 629
630 bool HTMLTextAreaElement::supportsAutofocus() const 630 bool HTMLTextAreaElement::supportsAutofocus() const
631 { 631 {
632 return true; 632 return true;
633 } 633 }
634 634
635 } 635 }
OLDNEW
« no previous file with comments | « Source/core/html/HTMLTextAreaElement.h ('k') | Source/core/html/HTMLTextFormControlElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698