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

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

Issue 2811793005: Rename LocalFrame::Script() to GetScriptController() (Closed)
Patch Set: Created 3 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
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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 // Root of the layout tree for the document contained in this frame. 139 // Root of the layout tree for the document contained in this frame.
140 LayoutView* ContentLayoutObject() const; 140 LayoutView* ContentLayoutObject() const;
141 LayoutViewItem ContentLayoutItem() const; 141 LayoutViewItem ContentLayoutItem() const;
142 142
143 Editor& GetEditor() const; 143 Editor& GetEditor() const;
144 EventHandler& GetEventHandler() const; 144 EventHandler& GetEventHandler() const;
145 FrameLoader& Loader() const; 145 FrameLoader& Loader() const;
146 NavigationScheduler& GetNavigationScheduler() const; 146 NavigationScheduler& GetNavigationScheduler() const;
147 FrameSelection& Selection() const; 147 FrameSelection& Selection() const;
148 InputMethodController& GetInputMethodController() const; 148 InputMethodController& GetInputMethodController() const;
149 ScriptController& Script() const; 149 ScriptController& GetScriptController() const;
150 SpellChecker& GetSpellChecker() const; 150 SpellChecker& GetSpellChecker() const;
151 FrameConsole& Console() const; 151 FrameConsole& Console() const;
152 152
153 // This method is used to get the highest level LocalFrame in this 153 // This method is used to get the highest level LocalFrame in this
154 // frame's in-process subtree. 154 // frame's in-process subtree.
155 // FIXME: This is a temporary hack to support RemoteFrames, and callers 155 // FIXME: This is a temporary hack to support RemoteFrames, and callers
156 // should be updated to avoid storing things on the main frame. 156 // should be updated to avoid storing things on the main frame.
157 LocalFrame* LocalFrameRoot(); 157 LocalFrame* LocalFrameRoot();
158 158
159 // Note that the result of this function should not be cached: a frame is 159 // Note that the result of this function should not be cached: a frame is
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 256
257 mutable FrameLoader loader_; 257 mutable FrameLoader loader_;
258 Member<NavigationScheduler> navigation_scheduler_; 258 Member<NavigationScheduler> navigation_scheduler_;
259 259
260 // Cleared by LocalFrame::detach(), so as to keep the observable lifespan 260 // Cleared by LocalFrame::detach(), so as to keep the observable lifespan
261 // of LocalFrame::view(). 261 // of LocalFrame::view().
262 Member<FrameView> view_; 262 Member<FrameView> view_;
263 // Usually 0. Non-null if this is the top frame of PagePopup. 263 // Usually 0. Non-null if this is the top frame of PagePopup.
264 Member<Element> page_popup_owner_; 264 Member<Element> page_popup_owner_;
265 265
266 const Member<ScriptController> script_; 266 const Member<ScriptController> script_controller_;
267 const Member<Editor> editor_; 267 const Member<Editor> editor_;
268 const Member<SpellChecker> spell_checker_; 268 const Member<SpellChecker> spell_checker_;
269 const Member<FrameSelection> selection_; 269 const Member<FrameSelection> selection_;
270 const Member<EventHandler> event_handler_; 270 const Member<EventHandler> event_handler_;
271 const Member<FrameConsole> console_; 271 const Member<FrameConsole> console_;
272 const Member<InputMethodController> input_method_controller_; 272 const Member<InputMethodController> input_method_controller_;
273 273
274 int navigation_disable_count_; 274 int navigation_disable_count_;
275 275
276 float page_zoom_factor_; 276 float page_zoom_factor_;
(...skipping 14 matching lines...) Expand all
291 291
292 inline NavigationScheduler& LocalFrame::GetNavigationScheduler() const { 292 inline NavigationScheduler& LocalFrame::GetNavigationScheduler() const {
293 ASSERT(navigation_scheduler_); 293 ASSERT(navigation_scheduler_);
294 return *navigation_scheduler_.Get(); 294 return *navigation_scheduler_.Get();
295 } 295 }
296 296
297 inline FrameView* LocalFrame::View() const { 297 inline FrameView* LocalFrame::View() const {
298 return view_.Get(); 298 return view_.Get();
299 } 299 }
300 300
301 inline ScriptController& LocalFrame::Script() const { 301 inline ScriptController& LocalFrame::GetScriptController() const {
302 return *script_; 302 return *script_controller_;
303 } 303 }
304 304
305 inline FrameSelection& LocalFrame::Selection() const { 305 inline FrameSelection& LocalFrame::Selection() const {
306 return *selection_; 306 return *selection_;
307 } 307 }
308 308
309 inline Editor& LocalFrame::GetEditor() const { 309 inline Editor& LocalFrame::GetEditor() const {
310 return *editor_; 310 return *editor_;
311 } 311 }
312 312
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 explicit ScopedFrameBlamer(LocalFrame*); 377 explicit ScopedFrameBlamer(LocalFrame*);
378 ~ScopedFrameBlamer(); 378 ~ScopedFrameBlamer();
379 379
380 private: 380 private:
381 Member<LocalFrame> frame_; 381 Member<LocalFrame> frame_;
382 }; 382 };
383 383
384 } // namespace blink 384 } // namespace blink
385 385
386 #endif // LocalFrame_h 386 #endif // LocalFrame_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp ('k') | third_party/WebKit/Source/core/frame/LocalFrame.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698