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

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

Issue 640803004: Add a basic DOMWindow base class and use it in WindowProxy. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/frame/LocalFrame.cpp ('k') | 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 Event;
13 class RemoteFrameClient; 13 class RemoteFrameClient;
14 class RemoteFrameView; 14 class RemoteFrameView;
15 15
16 class RemoteFrame: public Frame { 16 class RemoteFrame: public Frame {
17 public: 17 public:
18 static PassRefPtrWillBeRawPtr<RemoteFrame> create(RemoteFrameClient*, FrameH ost*, FrameOwner*); 18 static PassRefPtrWillBeRawPtr<RemoteFrame> create(RemoteFrameClient*, FrameH ost*, FrameOwner*);
19 virtual bool isRemoteFrame() const override { return true; }
20 19
21 virtual ~RemoteFrame(); 20 virtual ~RemoteFrame();
22 21
22 // Frame overrides:
23 void trace(Visitor*) override;
24 virtual bool isRemoteFrame() const override { return true; }
25 virtual LocalDOMWindow* domWindow() const override { return 0; }
23 virtual void navigate(Document& originDocument, const KURL&, bool lockBackFo rwardList) override; 26 virtual void navigate(Document& originDocument, const KURL&, bool lockBackFo rwardList) override;
24 virtual void detach() override; 27 virtual void detach() override;
25 28
26 // FIXME: Remove this method once we have input routing in the browser 29 // FIXME: Remove this method once we have input routing in the browser
27 // process. See http://crbug.com/339659. 30 // process. See http://crbug.com/339659.
28 void forwardInputEvent(Event*); 31 void forwardInputEvent(Event*);
29 32
30 void setView(PassRefPtrWillBeRawPtr<RemoteFrameView>); 33 void setView(PassRefPtrWillBeRawPtr<RemoteFrameView>);
31 void createView(); 34 void createView();
32 35
33 RemoteFrameView* view() const; 36 RemoteFrameView* view() const;
34 37
35 void trace(Visitor*) override;
36 38
37 private: 39 private:
38 RemoteFrame(RemoteFrameClient*, FrameHost*, FrameOwner*); 40 RemoteFrame(RemoteFrameClient*, FrameHost*, FrameOwner*);
39 41
40 RemoteFrameClient* remoteFrameClient() const; 42 RemoteFrameClient* remoteFrameClient() const;
41 43
42 RefPtrWillBeMember<RemoteFrameView> m_view; 44 RefPtrWillBeMember<RemoteFrameView> m_view;
43 }; 45 };
44 46
45 inline RemoteFrameView* RemoteFrame::view() const 47 inline RemoteFrameView* RemoteFrame::view() const
46 { 48 {
47 return m_view.get(); 49 return m_view.get();
48 } 50 }
49 51
50 DEFINE_TYPE_CASTS(RemoteFrame, Frame, remoteFrame, remoteFrame->isRemoteFrame(), remoteFrame.isRemoteFrame()); 52 DEFINE_TYPE_CASTS(RemoteFrame, Frame, remoteFrame, remoteFrame->isRemoteFrame(), remoteFrame.isRemoteFrame());
51 53
52 } // namespace blink 54 } // namespace blink
53 55
54 #endif // RemoteFrame_h 56 #endif // RemoteFrame_h
OLDNEW
« no previous file with comments | « Source/core/frame/LocalFrame.cpp ('k') | Source/core/frame/RemoteFrame.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698