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

Side by Side Diff: third_party/WebKit/Source/core/frame/LocalFrame.h

Issue 2401333002: Add a blink InterfaceRegistry. (Closed)
Patch Set: Created 4 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
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 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
9 * reserved. 9 * reserved.
10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 template <typename Strategy> 54 template <typename Strategy>
55 class EphemeralRangeTemplate; 55 class EphemeralRangeTemplate;
56 class EventHandler; 56 class EventHandler;
57 class FloatSize; 57 class FloatSize;
58 class FrameConsole; 58 class FrameConsole;
59 class FrameSelection; 59 class FrameSelection;
60 class FrameView; 60 class FrameView;
61 class HTMLPlugInElement; 61 class HTMLPlugInElement;
62 class InputMethodController; 62 class InputMethodController;
63 class InterfaceProvider; 63 class InterfaceProvider;
64 class InterfaceRegistry;
64 class IntPoint; 65 class IntPoint;
65 class IntSize; 66 class IntSize;
66 class InstrumentingAgents; 67 class InstrumentingAgents;
67 class JSONObject; 68 class JSONObject;
68 class LayoutView; 69 class LayoutView;
69 class LayoutViewItem; 70 class LayoutViewItem;
70 class LocalDOMWindow; 71 class LocalDOMWindow;
71 class NavigationScheduler; 72 class NavigationScheduler;
72 class Node; 73 class Node;
73 class NodeTraversal; 74 class NodeTraversal;
74 template <typename Strategy> 75 template <typename Strategy>
75 class PositionWithAffinityTemplate; 76 class PositionWithAffinityTemplate;
76 class PluginData; 77 class PluginData;
77 class Range; 78 class Range;
78 class ScriptController; 79 class ScriptController;
79 class SpellChecker; 80 class SpellChecker;
80 class WebFrameHostScheduler; 81 class WebFrameHostScheduler;
81 class WebFrameScheduler; 82 class WebFrameScheduler;
82 83
83 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<LocalFrame>; 84 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<LocalFrame>;
84 85
85 class CORE_EXPORT LocalFrame final : public Frame, 86 class CORE_EXPORT LocalFrame final : public Frame,
86 public Supplementable<LocalFrame> { 87 public Supplementable<LocalFrame> {
87 USING_GARBAGE_COLLECTED_MIXIN(LocalFrame); 88 USING_GARBAGE_COLLECTED_MIXIN(LocalFrame);
88 89
89 public: 90 public:
90 static LocalFrame* create(FrameLoaderClient*, 91 static LocalFrame* create(FrameLoaderClient*,
91 FrameHost*, 92 FrameHost*,
92 FrameOwner*, 93 FrameOwner*,
93 InterfaceProvider* = nullptr); 94 InterfaceProvider* = nullptr,
95 InterfaceRegistry* = nullptr);
94 96
95 void init(); 97 void init();
96 void setView(FrameView*); 98 void setView(FrameView*);
97 void createView(const IntSize&, 99 void createView(const IntSize&,
98 const Color&, 100 const Color&,
99 bool, 101 bool,
100 ScrollbarMode = ScrollbarAuto, 102 ScrollbarMode = ScrollbarAuto,
101 bool horizontalLock = false, 103 bool horizontalLock = false,
102 ScrollbarMode = ScrollbarAuto, 104 ScrollbarMode = ScrollbarAuto,
103 bool verticalLock = false); 105 bool verticalLock = false);
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 208
207 bool shouldThrottleRendering() const; 209 bool shouldThrottleRendering() const;
208 210
209 // Returns the frame scheduler, creating one if needed. 211 // Returns the frame scheduler, creating one if needed.
210 WebFrameScheduler* frameScheduler(); 212 WebFrameScheduler* frameScheduler();
211 void scheduleVisualUpdateUnlessThrottled(); 213 void scheduleVisualUpdateUnlessThrottled();
212 214
213 bool isNavigationAllowed() const { return m_navigationDisableCount == 0; } 215 bool isNavigationAllowed() const { return m_navigationDisableCount == 0; }
214 216
215 InterfaceProvider* interfaceProvider() { return m_interfaceProvider; } 217 InterfaceProvider* interfaceProvider() { return m_interfaceProvider; }
218 InterfaceRegistry* interfaceRegistry() { return m_interfaceRegistry; }
216 219
217 FrameLoaderClient* client() const; 220 FrameLoaderClient* client() const;
218 221
219 PluginData* pluginData() const; 222 PluginData* pluginData() const;
220 223
221 private: 224 private:
222 friend class FrameNavigationDisabler; 225 friend class FrameNavigationDisabler;
223 226
224 LocalFrame(FrameLoaderClient*, FrameHost*, FrameOwner*, InterfaceProvider*); 227 LocalFrame(FrameLoaderClient*,
228 FrameHost*,
229 FrameOwner*,
230 InterfaceProvider*,
231 InterfaceRegistry*);
225 232
226 // Internal Frame helper overrides: 233 // Internal Frame helper overrides:
227 WindowProxyManager* getWindowProxyManager() const override; 234 WindowProxyManager* getWindowProxyManager() const override;
228 // Intentionally private to prevent redundant checks when the type is 235 // Intentionally private to prevent redundant checks when the type is
229 // already LocalFrame. 236 // already LocalFrame.
230 bool isLocalFrame() const override { return true; } 237 bool isLocalFrame() const override { return true; }
231 bool isRemoteFrame() const override { return false; } 238 bool isRemoteFrame() const override { return false; }
232 239
233 void enableNavigation() { --m_navigationDisableCount; } 240 void enableNavigation() { --m_navigationDisableCount; }
234 void disableNavigation() { ++m_navigationDisableCount; } 241 void disableNavigation() { ++m_navigationDisableCount; }
(...skipping 19 matching lines...) Expand all
254 int m_navigationDisableCount; 261 int m_navigationDisableCount;
255 262
256 float m_pageZoomFactor; 263 float m_pageZoomFactor;
257 float m_textZoomFactor; 264 float m_textZoomFactor;
258 265
259 bool m_inViewSourceMode; 266 bool m_inViewSourceMode;
260 267
261 Member<InstrumentingAgents> m_instrumentingAgents; 268 Member<InstrumentingAgents> m_instrumentingAgents;
262 269
263 InterfaceProvider* const m_interfaceProvider; 270 InterfaceProvider* const m_interfaceProvider;
271 InterfaceRegistry* const m_interfaceRegistry;
264 }; 272 };
265 273
266 inline void LocalFrame::init() { 274 inline void LocalFrame::init() {
267 m_loader.init(); 275 m_loader.init();
268 } 276 }
269 277
270 inline LocalDOMWindow* LocalFrame::localDOMWindow() const { 278 inline LocalDOMWindow* LocalFrame::localDOMWindow() const {
271 return m_domWindow.get(); 279 return m_domWindow.get();
272 } 280 }
273 281
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 explicit ScopedFrameBlamer(LocalFrame*); 371 explicit ScopedFrameBlamer(LocalFrame*);
364 ~ScopedFrameBlamer(); 372 ~ScopedFrameBlamer();
365 373
366 private: 374 private:
367 Member<LocalFrame> m_frame; 375 Member<LocalFrame> m_frame;
368 }; 376 };
369 377
370 } // namespace blink 378 } // namespace blink
371 379
372 #endif // LocalFrame_h 380 #endif // LocalFrame_h
OLDNEW
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | third_party/WebKit/Source/core/frame/LocalFrame.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698