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

Side by Side Diff: sky/engine/core/frame/Frame.h

Issue 1148253003: Add LayoutRoot (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Updated Created 5 years, 7 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) 1998, 1999 Torben Weis <weis@kde.org> 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org>
3 * 1999-2001 Lars Knoll <knoll@kde.org> 3 * 1999-2001 Lars Knoll <knoll@kde.org>
4 * 1999-2001 Antti Koivisto <koivisto@kde.org> 4 * 1999-2001 Antti Koivisto <koivisto@kde.org>
5 * 2000-2001 Simon Hausmann <hausmann@kde.org> 5 * 2000-2001 Simon Hausmann <hausmann@kde.org>
6 * 2000-2001 Dirk Mueller <mueller@kde.org> 6 * 2000-2001 Dirk Mueller <mueller@kde.org>
7 * 2000 Stefan Schimanski <1Stein@gmx.de> 7 * 2000 Stefan Schimanski <1Stein@gmx.de>
8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
9 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 9 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
10 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> 10 * Copyright (C) 2008 Eric Seidel <eric@webkit.org>
(...skipping 21 matching lines...) Expand all
32 #include "sky/engine/wtf/RefCounted.h" 32 #include "sky/engine/wtf/RefCounted.h"
33 #include "sky/engine/wtf/RefPtr.h" 33 #include "sky/engine/wtf/RefPtr.h"
34 34
35 namespace blink { 35 namespace blink {
36 class WebLayer; 36 class WebLayer;
37 } 37 }
38 38
39 namespace blink { 39 namespace blink {
40 40
41 class ChromeClient; 41 class ChromeClient;
42 class Document;
42 class FrameClient; 43 class FrameClient;
43 class FrameHost; 44 class FrameHost;
44 class LocalDOMWindow; 45 class LocalDOMWindow;
45 class Page; 46 class Page;
46 class Settings; 47 class Settings;
47 48
48 class Frame : public RefCounted<Frame> { 49 class Frame : public RefCounted<Frame> {
49 public: 50 public:
50 virtual ~Frame(); 51 virtual ~Frame();
51 52
(...skipping 13 matching lines...) Expand all
65 // after RemoteFrame is complete enough to exist without them. 66 // after RemoteFrame is complete enough to exist without them.
66 virtual void setDOMWindow(PassRefPtr<LocalDOMWindow>); 67 virtual void setDOMWindow(PassRefPtr<LocalDOMWindow>);
67 LocalDOMWindow* domWindow() const; 68 LocalDOMWindow* domWindow() const;
68 69
69 Settings* settings() const; // can be null 70 Settings* settings() const; // can be null
70 71
71 protected: 72 protected:
72 Frame(FrameClient*, FrameHost*); 73 Frame(FrameClient*, FrameHost*);
73 74
74 FrameHost* m_host; 75 FrameHost* m_host;
76 Document* m_document;
75 77
76 RefPtr<LocalDOMWindow> m_domWindow; 78 RefPtr<LocalDOMWindow> m_domWindow;
77 79
78 private: 80 private:
79 FrameClient* m_client; 81 FrameClient* m_client;
80 }; 82 };
81 83
82 inline FrameClient* Frame::client() const 84 inline FrameClient* Frame::client() const
83 { 85 {
84 return m_client; 86 return m_client;
85 } 87 }
86 88
87 inline void Frame::clearClient() 89 inline void Frame::clearClient()
88 { 90 {
89 m_client = 0; 91 m_client = 0;
90 } 92 }
91 93
92 inline LocalDOMWindow* Frame::domWindow() const 94 inline LocalDOMWindow* Frame::domWindow() const
93 { 95 {
94 return m_domWindow.get(); 96 return m_domWindow.get();
95 } 97 }
96 98
97 // Allow equality comparisons of Frames by reference or pointer, interchangeably . 99 // Allow equality comparisons of Frames by reference or pointer, interchangeably .
98 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES_REFCOUNTED(Frame) 100 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES_REFCOUNTED(Frame)
99 101
100 } // namespace blink 102 } // namespace blink
101 103
102 #endif // SKY_ENGINE_CORE_FRAME_FRAME_H_ 104 #endif // SKY_ENGINE_CORE_FRAME_FRAME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698