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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLInputElement.cpp

Issue 2716153003: Removed FrameHost::chromeClient() (Closed)
Patch Set: Small feedback Created 3 years, 9 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
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 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All
6 * rights reserved. 6 * rights reserved.
7 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) 7 * (C) 2006 Alexey Proskuryakov (ap@nypop.com)
8 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org) 8 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org)
9 * Copyright (C) 2010 Google Inc. All rights reserved. 9 * Copyright (C) 2010 Google Inc. All rights reserved.
10 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. 10 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved.
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 #include "core/dom/TaskRunnerHelper.h" 43 #include "core/dom/TaskRunnerHelper.h"
44 #include "core/dom/shadow/InsertionPoint.h" 44 #include "core/dom/shadow/InsertionPoint.h"
45 #include "core/dom/shadow/ShadowRoot.h" 45 #include "core/dom/shadow/ShadowRoot.h"
46 #include "core/editing/FrameSelection.h" 46 #include "core/editing/FrameSelection.h"
47 #include "core/editing/spellcheck/SpellChecker.h" 47 #include "core/editing/spellcheck/SpellChecker.h"
48 #include "core/events/BeforeTextInsertedEvent.h" 48 #include "core/events/BeforeTextInsertedEvent.h"
49 #include "core/events/KeyboardEvent.h" 49 #include "core/events/KeyboardEvent.h"
50 #include "core/events/MouseEvent.h" 50 #include "core/events/MouseEvent.h"
51 #include "core/events/ScopedEventQueue.h" 51 #include "core/events/ScopedEventQueue.h"
52 #include "core/frame/Deprecation.h" 52 #include "core/frame/Deprecation.h"
53 #include "core/frame/FrameHost.h"
54 #include "core/frame/FrameView.h" 53 #include "core/frame/FrameView.h"
55 #include "core/frame/LocalFrame.h" 54 #include "core/frame/LocalFrame.h"
56 #include "core/frame/UseCounter.h" 55 #include "core/frame/UseCounter.h"
57 #include "core/html/HTMLCollection.h" 56 #include "core/html/HTMLCollection.h"
58 #include "core/html/HTMLDataListElement.h" 57 #include "core/html/HTMLDataListElement.h"
59 #include "core/html/HTMLDataListOptionsCollection.h" 58 #include "core/html/HTMLDataListOptionsCollection.h"
60 #include "core/html/HTMLFormElement.h" 59 #include "core/html/HTMLFormElement.h"
61 #include "core/html/HTMLImageLoader.h" 60 #include "core/html/HTMLImageLoader.h"
62 #include "core/html/HTMLOptionElement.h" 61 #include "core/html/HTMLOptionElement.h"
63 #include "core/html/forms/ColorChooser.h" 62 #include "core/html/forms/ColorChooser.h"
64 #include "core/html/forms/DateTimeChooser.h" 63 #include "core/html/forms/DateTimeChooser.h"
65 #include "core/html/forms/FileInputType.h" 64 #include "core/html/forms/FileInputType.h"
66 #include "core/html/forms/FormController.h" 65 #include "core/html/forms/FormController.h"
67 #include "core/html/forms/InputType.h" 66 #include "core/html/forms/InputType.h"
68 #include "core/html/forms/SearchInputType.h" 67 #include "core/html/forms/SearchInputType.h"
69 #include "core/html/parser/HTMLParserIdioms.h" 68 #include "core/html/parser/HTMLParserIdioms.h"
70 #include "core/layout/LayoutObject.h" 69 #include "core/layout/LayoutObject.h"
71 #include "core/layout/LayoutTheme.h" 70 #include "core/layout/LayoutTheme.h"
72 #include "core/page/ChromeClient.h" 71 #include "core/page/ChromeClient.h"
72 #include "core/page/Page.h"
73 #include "platform/Language.h" 73 #include "platform/Language.h"
74 #include "platform/RuntimeEnabledFeatures.h" 74 #include "platform/RuntimeEnabledFeatures.h"
75 #include "platform/text/PlatformLocale.h" 75 #include "platform/text/PlatformLocale.h"
76 #include "wtf/MathExtras.h" 76 #include "wtf/MathExtras.h"
77 77
78 namespace blink { 78 namespace blink {
79 79
80 using ValueMode = InputType::ValueMode; 80 using ValueMode = InputType::ValueMode;
81 using namespace HTMLNames; 81 using namespace HTMLNames;
82 82
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 void HTMLInputElement::endEditing() { 331 void HTMLInputElement::endEditing() {
332 DCHECK(document().isActive()); 332 DCHECK(document().isActive());
333 if (!document().isActive()) 333 if (!document().isActive())
334 return; 334 return;
335 335
336 if (!isTextField()) 336 if (!isTextField())
337 return; 337 return;
338 338
339 LocalFrame* frame = document().frame(); 339 LocalFrame* frame = document().frame();
340 frame->spellChecker().didEndEditingOnTextField(this); 340 frame->spellChecker().didEndEditingOnTextField(this);
341 frame->host()->chromeClient().didEndEditingOnTextField(*this); 341 frame->page()->chromeClient().didEndEditingOnTextField(*this);
342 } 342 }
343 343
344 void HTMLInputElement::handleFocusEvent(Element* oldFocusedElement, 344 void HTMLInputElement::handleFocusEvent(Element* oldFocusedElement,
345 WebFocusType type) { 345 WebFocusType type) {
346 m_inputTypeView->handleFocusEvent(oldFocusedElement, type); 346 m_inputTypeView->handleFocusEvent(oldFocusedElement, type);
347 m_inputType->enableSecureTextInput(); 347 m_inputType->enableSecureTextInput();
348 } 348 }
349 349
350 void HTMLInputElement::dispatchFocusInEvent( 350 void HTMLInputElement::dispatchFocusInEvent(
351 const AtomicString& eventType, 351 const AtomicString& eventType,
(...skipping 1527 matching lines...) Expand 10 before | Expand all | Expand 10 after
1879 1879
1880 bool HTMLInputElement::hasFallbackContent() const { 1880 bool HTMLInputElement::hasFallbackContent() const {
1881 return m_inputTypeView->hasFallbackContent(); 1881 return m_inputTypeView->hasFallbackContent();
1882 } 1882 }
1883 1883
1884 void HTMLInputElement::setFilesFromPaths(const Vector<String>& paths) { 1884 void HTMLInputElement::setFilesFromPaths(const Vector<String>& paths) {
1885 return m_inputType->setFilesFromPaths(paths); 1885 return m_inputType->setFilesFromPaths(paths);
1886 } 1886 }
1887 1887
1888 } // namespace blink 1888 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp ('k') | third_party/WebKit/Source/core/html/HTMLSelectElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698