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

Side by Side Diff: Source/WebCore/page/Frame.h

Issue 14188004: Remove UserScript support, which is not used by Chromium (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove one more test Created 7 years, 8 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/WebCore/loader/FrameLoader.cpp ('k') | Source/WebCore/page/Frame.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) 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 20 matching lines...) Expand all
31 #include "AdjustViewSizeOrNot.h" 31 #include "AdjustViewSizeOrNot.h"
32 #include "AnimationController.h" 32 #include "AnimationController.h"
33 #include "DragImage.h" 33 #include "DragImage.h"
34 #include "Editor.h" 34 #include "Editor.h"
35 #include "EventHandler.h" 35 #include "EventHandler.h"
36 #include "FrameLoader.h" 36 #include "FrameLoader.h"
37 #include "FrameSelection.h" 37 #include "FrameSelection.h"
38 #include "FrameTree.h" 38 #include "FrameTree.h"
39 #include "NavigationScheduler.h" 39 #include "NavigationScheduler.h"
40 #include "ScriptController.h" 40 #include "ScriptController.h"
41 #include "UserScriptTypes.h"
42 41
43 namespace WebCore { 42 namespace WebCore {
44 43
45 class Document; 44 class Document;
46 class FrameDestructionObserver; 45 class FrameDestructionObserver;
47 class FrameView; 46 class FrameView;
48 class HTMLTableCellElement; 47 class HTMLTableCellElement;
49 class RegularExpression; 48 class RegularExpression;
50 class RenderPart; 49 class RenderPart;
51 50
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 RenderPart* ownerRenderer() const; // Renderer for the element that cont ains this frame. 100 RenderPart* ownerRenderer() const; // Renderer for the element that cont ains this frame.
102 101
103 void dispatchVisibilityStateChangeEvent(); 102 void dispatchVisibilityStateChangeEvent();
104 103
105 void reportMemoryUsage(MemoryObjectInfo*) const; 104 void reportMemoryUsage(MemoryObjectInfo*) const;
106 105
107 // ======== All public functions below this point are candidates to move out of Frame into another class. ======== 106 // ======== All public functions below this point are candidates to move out of Frame into another class. ========
108 107
109 bool inScope(TreeScope*) const; 108 bool inScope(TreeScope*) const;
110 109
111 void injectUserScripts(UserScriptInjectionTime);
112
113 String layerTreeAsText(LayerTreeFlags = 0) const; 110 String layerTreeAsText(LayerTreeFlags = 0) const;
114 String trackedRepaintRectsAsText() const; 111 String trackedRepaintRectsAsText() const;
115 112
116 static Frame* frameForWidget(const Widget*); 113 static Frame* frameForWidget(const Widget*);
117 114
118 Settings* settings() const; // can be NULL 115 Settings* settings() const; // can be NULL
119 116
120 void setPrinting(bool printing, const FloatSize& pageSize, const FloatSi ze& originalPageSize, float maximumShrinkRatio, AdjustViewSizeOrNot); 117 void setPrinting(bool printing, const FloatSize& pageSize, const FloatSi ze& originalPageSize, float maximumShrinkRatio, AdjustViewSizeOrNot);
121 bool shouldUsePrintingLayout() const; 118 bool shouldUsePrintingLayout() const;
122 FloatSize resizePageRectsKeepingRatio(const FloatSize& originalSize, con st FloatSize& expectedSize); 119 FloatSize resizePageRectsKeepingRatio(const FloatSize& originalSize, con st FloatSize& expectedSize);
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 // Should only be called on the main frame of a page. 164 // Should only be called on the main frame of a page.
168 void notifyChromeClientWheelEventHandlerCountChanged() const; 165 void notifyChromeClientWheelEventHandlerCountChanged() const;
169 166
170 bool isURLAllowed(const KURL&) const; 167 bool isURLAllowed(const KURL&) const;
171 168
172 // ======== 169 // ========
173 170
174 private: 171 private:
175 Frame(Page*, HTMLFrameOwnerElement*, FrameLoaderClient*); 172 Frame(Page*, HTMLFrameOwnerElement*, FrameLoaderClient*);
176 173
177 void injectUserScriptsForWorld(DOMWrapperWorld*, const UserScriptVector& , UserScriptInjectionTime);
178
179 HashSet<FrameDestructionObserver*> m_destructionObservers; 174 HashSet<FrameDestructionObserver*> m_destructionObservers;
180 175
181 Page* m_page; 176 Page* m_page;
182 mutable FrameTree m_treeNode; 177 mutable FrameTree m_treeNode;
183 mutable FrameLoader m_loader; 178 mutable FrameLoader m_loader;
184 mutable NavigationScheduler m_navigationScheduler; 179 mutable NavigationScheduler m_navigationScheduler;
185 180
186 HTMLFrameOwnerElement* m_ownerElement; 181 HTMLFrameOwnerElement* m_ownerElement;
187 RefPtr<FrameView> m_view; 182 RefPtr<FrameView> m_view;
188 RefPtr<Document> m_doc; 183 RefPtr<Document> m_doc;
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 } 277 }
283 278
284 inline EventHandler* Frame::eventHandler() const 279 inline EventHandler* Frame::eventHandler() const
285 { 280 {
286 return &m_eventHandler; 281 return &m_eventHandler;
287 } 282 }
288 283
289 } // namespace WebCore 284 } // namespace WebCore
290 285
291 #endif // Frame_h 286 #endif // Frame_h
OLDNEW
« no previous file with comments | « Source/WebCore/loader/FrameLoader.cpp ('k') | Source/WebCore/page/Frame.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698