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

Side by Side Diff: Source/core/html/HTMLFrameElementBase.cpp

Issue 642823006: Move forwardInputEvent to RemoteFrameClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix review comments Created 6 years, 2 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
« no previous file with comments | « Source/core/frame/RemoteFrameClient.h ('k') | Source/core/page/ChromeClient.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) 2000 Simon Hausmann (hausmann@kde.org) 4 * (C) 2000 Simon Hausmann (hausmann@kde.org)
5 * (C) 2001 Dirk Mueller (mueller@kde.org) 5 * (C) 2001 Dirk Mueller (mueller@kde.org)
6 * Copyright (C) 2004, 2006, 2008, 2009 Apple Inc. All rights reserved. 6 * Copyright (C) 2004, 2006, 2008, 2009 Apple Inc. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 16 matching lines...) Expand all
27 #include "bindings/core/v8/ScriptController.h" 27 #include "bindings/core/v8/ScriptController.h"
28 #include "bindings/core/v8/ScriptEventListener.h" 28 #include "bindings/core/v8/ScriptEventListener.h"
29 #include "core/HTMLNames.h" 29 #include "core/HTMLNames.h"
30 #include "core/dom/Attribute.h" 30 #include "core/dom/Attribute.h"
31 #include "core/dom/Document.h" 31 #include "core/dom/Document.h"
32 #include "core/frame/FrameView.h" 32 #include "core/frame/FrameView.h"
33 #include "core/frame/LocalFrame.h" 33 #include "core/frame/LocalFrame.h"
34 #include "core/frame/RemoteFrame.h" 34 #include "core/frame/RemoteFrame.h"
35 #include "core/html/parser/HTMLParserIdioms.h" 35 #include "core/html/parser/HTMLParserIdioms.h"
36 #include "core/loader/FrameLoader.h" 36 #include "core/loader/FrameLoader.h"
37 #include "core/page/ChromeClient.h"
38 #include "core/page/FocusController.h" 37 #include "core/page/FocusController.h"
39 #include "core/page/Page.h" 38 #include "core/page/Page.h"
40 #include "core/rendering/RenderPart.h" 39 #include "core/rendering/RenderPart.h"
41 40
42 namespace blink { 41 namespace blink {
43 42
44 using namespace HTMLNames; 43 using namespace HTMLNames;
45 44
46 HTMLFrameElementBase::HTMLFrameElementBase(const QualifiedName& tagName, Documen t& document) 45 HTMLFrameElementBase::HTMLFrameElementBase(const QualifiedName& tagName, Documen t& document)
47 : HTMLFrameOwnerElement(tagName, document) 46 : HTMLFrameOwnerElement(tagName, document)
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 bool HTMLFrameElementBase::isHTMLContentAttribute(const Attribute& attribute) co nst 205 bool HTMLFrameElementBase::isHTMLContentAttribute(const Attribute& attribute) co nst
207 { 206 {
208 return attribute.name() == srcdocAttr || HTMLFrameOwnerElement::isHTMLConten tAttribute(attribute); 207 return attribute.name() == srcdocAttr || HTMLFrameOwnerElement::isHTMLConten tAttribute(attribute);
209 } 208 }
210 209
211 // FIXME: Remove this code once we have input routing in the browser 210 // FIXME: Remove this code once we have input routing in the browser
212 // process. See http://crbug.com/339659. 211 // process. See http://crbug.com/339659.
213 void HTMLFrameElementBase::defaultEventHandler(Event* event) 212 void HTMLFrameElementBase::defaultEventHandler(Event* event)
214 { 213 {
215 if (contentFrame() && contentFrame()->isRemoteFrame()) { 214 if (contentFrame() && contentFrame()->isRemoteFrame()) {
216 contentFrame()->chromeClient().forwardInputEvent(toRemoteFrame(contentFr ame()), event); 215 toRemoteFrame(contentFrame())->forwardInputEvent(event);
217 return; 216 return;
218 } 217 }
219 HTMLFrameOwnerElement::defaultEventHandler(event); 218 HTMLFrameOwnerElement::defaultEventHandler(event);
220 } 219 }
221 220
222 } // namespace blink 221 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/frame/RemoteFrameClient.h ('k') | Source/core/page/ChromeClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698