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

Side by Side Diff: Source/core/frame/RemoteFrame.h

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 | « no previous file | Source/core/frame/RemoteFrame.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef RemoteFrame_h 5 #ifndef RemoteFrame_h
6 #define RemoteFrame_h 6 #define RemoteFrame_h
7 7
8 #include "core/frame/Frame.h" 8 #include "core/frame/Frame.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 class Event;
12 class RemoteFrameClient; 13 class RemoteFrameClient;
13 class RemoteFrameView; 14 class RemoteFrameView;
14 15
15 class RemoteFrame: public Frame { 16 class RemoteFrame: public Frame {
16 public: 17 public:
17 static PassRefPtrWillBeRawPtr<RemoteFrame> create(RemoteFrameClient*, FrameH ost*, FrameOwner*); 18 static PassRefPtrWillBeRawPtr<RemoteFrame> create(RemoteFrameClient*, FrameH ost*, FrameOwner*);
18 virtual bool isRemoteFrame() const override { return true; } 19 virtual bool isRemoteFrame() const override { return true; }
19 20
20 virtual ~RemoteFrame(); 21 virtual ~RemoteFrame();
21 22
22 virtual void navigate(Document& originDocument, const KURL&, bool lockBackFo rwardList) override; 23 virtual void navigate(Document& originDocument, const KURL&, bool lockBackFo rwardList) override;
23 virtual void detach() override; 24 virtual void detach() override;
24 25
26 // FIXME: Remove this method once we have input routing in the browser
27 // process. See http://crbug.com/339659.
28 void forwardInputEvent(Event*);
29
25 void setView(PassRefPtrWillBeRawPtr<RemoteFrameView>); 30 void setView(PassRefPtrWillBeRawPtr<RemoteFrameView>);
26 void createView(); 31 void createView();
27 32
28 RemoteFrameView* view() const; 33 RemoteFrameView* view() const;
29 34
30 void trace(Visitor*) override; 35 void trace(Visitor*) override;
31 36
32 private: 37 private:
33 RemoteFrame(RemoteFrameClient*, FrameHost*, FrameOwner*); 38 RemoteFrame(RemoteFrameClient*, FrameHost*, FrameOwner*);
34 39
35 RemoteFrameClient* remoteFrameClient() const; 40 RemoteFrameClient* remoteFrameClient() const;
36 41
37 RefPtrWillBeMember<RemoteFrameView> m_view; 42 RefPtrWillBeMember<RemoteFrameView> m_view;
38 }; 43 };
39 44
40 inline RemoteFrameView* RemoteFrame::view() const 45 inline RemoteFrameView* RemoteFrame::view() const
41 { 46 {
42 return m_view.get(); 47 return m_view.get();
43 } 48 }
44 49
45 DEFINE_TYPE_CASTS(RemoteFrame, Frame, remoteFrame, remoteFrame->isRemoteFrame(), remoteFrame.isRemoteFrame()); 50 DEFINE_TYPE_CASTS(RemoteFrame, Frame, remoteFrame, remoteFrame->isRemoteFrame(), remoteFrame.isRemoteFrame());
46 51
47 } // namespace blink 52 } // namespace blink
48 53
49 #endif // RemoteFrame_h 54 #endif // RemoteFrame_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/frame/RemoteFrame.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698