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

Side by Side Diff: Source/core/html/HTMLInputElement.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/HTMLInputElement.h ('k') | Source/core/html/HTMLLabelElement.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, 2009, 2010, 2011 Apple Inc. All r ights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved.
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 * Copyright (C) 2010 Google Inc. All rights reserved. 8 * Copyright (C) 2010 Google Inc. All rights reserved.
9 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 9 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
10 * Copyright (C) 2012 Samsung Electronics. All rights reserved. 10 * Copyright (C) 2012 Samsung Electronics. All rights reserved.
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 return; 377 return;
378 378
379 if (!isTextField()) 379 if (!isTextField())
380 return; 380 return;
381 381
382 LocalFrame* frame = document().frame(); 382 LocalFrame* frame = document().frame();
383 frame->spellChecker().didEndEditingOnTextField(this); 383 frame->spellChecker().didEndEditingOnTextField(this);
384 frame->host()->chrome().client().didEndEditingOnTextField(*this); 384 frame->host()->chrome().client().didEndEditingOnTextField(*this);
385 } 385 }
386 386
387 void HTMLInputElement::handleFocusEvent(Element* oldFocusedElement, FocusType ty pe) 387 void HTMLInputElement::handleFocusEvent(Element* oldFocusedElement, WebFocusType type)
388 { 388 {
389 m_inputTypeView->handleFocusEvent(oldFocusedElement, type); 389 m_inputTypeView->handleFocusEvent(oldFocusedElement, type);
390 m_inputType->enableSecureTextInput(); 390 m_inputType->enableSecureTextInput();
391 } 391 }
392 392
393 void HTMLInputElement::dispatchFocusInEvent(const AtomicString& eventType, Eleme nt* oldFocusedElement, FocusType type) 393 void HTMLInputElement::dispatchFocusInEvent(const AtomicString& eventType, Eleme nt* oldFocusedElement, WebFocusType type)
394 { 394 {
395 if (eventType == EventTypeNames::DOMFocusIn) 395 if (eventType == EventTypeNames::DOMFocusIn)
396 m_inputTypeView->handleFocusInEvent(oldFocusedElement, type); 396 m_inputTypeView->handleFocusInEvent(oldFocusedElement, type);
397 HTMLFormControlElementWithState::dispatchFocusInEvent(eventType, oldFocusedE lement, type); 397 HTMLFormControlElementWithState::dispatchFocusInEvent(eventType, oldFocusedE lement, type);
398 } 398 }
399 399
400 void HTMLInputElement::handleBlurEvent() 400 void HTMLInputElement::handleBlurEvent()
401 { 401 {
402 m_inputType->disableSecureTextInput(); 402 m_inputType->disableSecureTextInput();
403 m_inputTypeView->handleBlurEvent(); 403 m_inputTypeView->handleBlurEvent();
(...skipping 1505 matching lines...) Expand 10 before | Expand all | Expand 10 after
1909 void HTMLInputElement::ensurePrimaryContent() 1909 void HTMLInputElement::ensurePrimaryContent()
1910 { 1910 {
1911 m_inputTypeView->ensurePrimaryContent(); 1911 m_inputTypeView->ensurePrimaryContent();
1912 } 1912 }
1913 1913
1914 bool HTMLInputElement::hasFallbackContent() const 1914 bool HTMLInputElement::hasFallbackContent() const
1915 { 1915 {
1916 return m_inputTypeView->hasFallbackContent(); 1916 return m_inputTypeView->hasFallbackContent();
1917 } 1917 }
1918 } // namespace 1918 } // namespace
OLDNEW
« no previous file with comments | « Source/core/html/HTMLInputElement.h ('k') | Source/core/html/HTMLLabelElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698