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

Side by Side Diff: sky/engine/core/page/Page.h

Issue 764573002: Parametrize PageScriptDebugServer with v8::Context -> InspectorHost resolver (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Removed Page::m_inspectorHost Created 6 years 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 | sky/engine/core/page/Page.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 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights reserv ed. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights reserv ed.
3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 18 matching lines...) Expand all
29 #include "sky/engine/platform/LifecycleContext.h" 29 #include "sky/engine/platform/LifecycleContext.h"
30 #include "sky/engine/platform/Supplementable.h" 30 #include "sky/engine/platform/Supplementable.h"
31 #include "sky/engine/platform/geometry/LayoutRect.h" 31 #include "sky/engine/platform/geometry/LayoutRect.h"
32 #include "sky/engine/platform/geometry/Region.h" 32 #include "sky/engine/platform/geometry/Region.h"
33 #include "sky/engine/platform/heap/Handle.h" 33 #include "sky/engine/platform/heap/Handle.h"
34 #include "sky/engine/wtf/Forward.h" 34 #include "sky/engine/wtf/Forward.h"
35 #include "sky/engine/wtf/HashSet.h" 35 #include "sky/engine/wtf/HashSet.h"
36 #include "sky/engine/wtf/Noncopyable.h" 36 #include "sky/engine/wtf/Noncopyable.h"
37 #include "sky/engine/wtf/text/WTFString.h" 37 #include "sky/engine/wtf/text/WTFString.h"
38 38
39 // FIXME: Page should not need to know anything about InspectorHost.
40 namespace inspector {
41 class InspectorHost;
42 }
43
44 namespace blink { 39 namespace blink {
45 40
46 class AutoscrollController; 41 class AutoscrollController;
47 class Chrome; 42 class Chrome;
48 class ChromeClient; 43 class ChromeClient;
49 class ClientRectList; 44 class ClientRectList;
50 class Document; 45 class Document;
51 class DragCaretController; 46 class DragCaretController;
52 class EditorClient; 47 class EditorClient;
53 class FocusController; 48 class FocusController;
(...skipping 29 matching lines...) Expand all
83 ChromeClient* chromeClient; 78 ChromeClient* chromeClient;
84 EditorClient* editorClient; 79 EditorClient* editorClient;
85 SpellCheckerClient* spellCheckerClient; 80 SpellCheckerClient* spellCheckerClient;
86 }; 81 };
87 82
88 Page(PageClients&, ServiceProvider&); 83 Page(PageClients&, ServiceProvider&);
89 virtual ~Page(); 84 virtual ~Page();
90 85
91 FrameHost& frameHost() const { return *m_frameHost; } 86 FrameHost& frameHost() const { return *m_frameHost; }
92 87
93 // FIXME(sky): This is only needed by PageDebuggerAgent to be able to look
94 // up the InspectorHost from the frame associated with a v8 context.
95 inspector::InspectorHost* inspectorHost() const { return m_inspectorHost; }
96 void setInspectorHost(inspector::InspectorHost* host) { m_inspectorHost = ho st; }
97
98 void setNeedsRecalcStyleInAllFrames(); 88 void setNeedsRecalcStyleInAllFrames();
99 void updateAcceleratedCompositingSettings(); 89 void updateAcceleratedCompositingSettings();
100 90
101 EditorClient& editorClient() const { return *m_editorClient; } 91 EditorClient& editorClient() const { return *m_editorClient; }
102 SpellCheckerClient& spellCheckerClient() const { return *m_spellCheckerClien t; } 92 SpellCheckerClient& spellCheckerClient() const { return *m_spellCheckerClien t; }
103 UndoStack& undoStack() const { return *m_undoStack; } 93 UndoStack& undoStack() const { return *m_undoStack; }
104 94
105 void setMainFrame(LocalFrame*); 95 void setMainFrame(LocalFrame*);
106 LocalFrame* mainFrame() const { return m_mainFrame; } 96 LocalFrame* mainFrame() const { return m_mainFrame; }
107 97
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 200
211 #if ENABLE(ASSERT) 201 #if ENABLE(ASSERT)
212 bool m_isPainting; 202 bool m_isPainting;
213 #endif 203 #endif
214 204
215 HashSet<RawPtr<MultisamplingChangedObserver> > m_multisamplingChangedObserve rs; 205 HashSet<RawPtr<MultisamplingChangedObserver> > m_multisamplingChangedObserve rs;
216 206
217 // A pointer to all the interfaces provided to in-process Frames for this Pa ge. 207 // A pointer to all the interfaces provided to in-process Frames for this Pa ge.
218 // FIXME: Most of the members of Page should move onto FrameHost. 208 // FIXME: Most of the members of Page should move onto FrameHost.
219 OwnPtr<FrameHost> m_frameHost; 209 OwnPtr<FrameHost> m_frameHost;
220 inspector::InspectorHost* m_inspectorHost;
221 }; 210 };
222 211
223 } // namespace blink 212 } // namespace blink
224 213
225 #endif // SKY_ENGINE_CORE_PAGE_PAGE_H_ 214 #endif // SKY_ENGINE_CORE_PAGE_PAGE_H_
OLDNEW
« no previous file with comments | « no previous file | sky/engine/core/page/Page.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698