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

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

Issue 683013002: Extract a DOMWindow interface from LocalDOMWindow and use it in the idl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix incorrect assumption Created 6 years, 1 month 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
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 19
20 virtual ~RemoteFrame(); 20 virtual ~RemoteFrame();
21 21
22 // Frame overrides: 22 // Frame overrides:
23 void trace(Visitor*) override; 23 void trace(Visitor*) override;
24 virtual bool isRemoteFrame() const override { return true; } 24 virtual bool isRemoteFrame() const override { return true; }
25 virtual LocalDOMWindow* domWindow() const override { return 0; } 25 virtual DOMWindow* domWindow() const override { return 0; }
haraken 2014/11/08 09:17:25 I'm confused with this. Why does RemoteDOMWindow r
dcheng 2014/11/08 23:59:56 This isn't implemented yet, but will be in a futur
26 virtual void navigate(Document& originDocument, const KURL&, bool lockBackFo rwardList) override; 26 virtual void navigate(Document& originDocument, const KURL&, bool lockBackFo rwardList) override;
27 virtual void detach() override; 27 virtual void detach() override;
28 28
29 // 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
30 // process. See http://crbug.com/339659. 30 // process. See http://crbug.com/339659.
31 void forwardInputEvent(Event*); 31 void forwardInputEvent(Event*);
32 32
33 void setView(PassRefPtrWillBeRawPtr<RemoteFrameView>); 33 void setView(PassRefPtrWillBeRawPtr<RemoteFrameView>);
34 void createView(); 34 void createView();
35 35
(...skipping 11 matching lines...) Expand all
47 inline RemoteFrameView* RemoteFrame::view() const 47 inline RemoteFrameView* RemoteFrame::view() const
48 { 48 {
49 return m_view.get(); 49 return m_view.get();
50 } 50 }
51 51
52 DEFINE_TYPE_CASTS(RemoteFrame, Frame, remoteFrame, remoteFrame->isRemoteFrame(), remoteFrame.isRemoteFrame()); 52 DEFINE_TYPE_CASTS(RemoteFrame, Frame, remoteFrame, remoteFrame->isRemoteFrame(), remoteFrame.isRemoteFrame());
53 53
54 } // namespace blink 54 } // namespace blink
55 55
56 #endif // RemoteFrame_h 56 #endif // RemoteFrame_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698