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

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

Issue 248083003: Mouse event handlers use user gesture tokens on top-level LocalFrames. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: review comments addressed Created 6 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
« no previous file with comments | « no previous file | Source/core/frame/LocalFrame.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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 NavigationScheduler& navigationScheduler() const; 92 NavigationScheduler& navigationScheduler() const;
93 FrameSelection& selection() const; 93 FrameSelection& selection() const;
94 InputMethodController& inputMethodController() const; 94 InputMethodController& inputMethodController() const;
95 FetchContext& fetchContext() const { return loader().fetchContext(); } 95 FetchContext& fetchContext() const { return loader().fetchContext(); }
96 ScriptController& script(); 96 ScriptController& script();
97 SpellChecker& spellChecker() const; 97 SpellChecker& spellChecker() const;
98 FrameConsole& console() const; 98 FrameConsole& console() const;
99 99
100 void didChangeVisibilityState(); 100 void didChangeVisibilityState();
101 101
102 // FIXME: This method is only used by EventHandler to get the highest le vel
103 // LocalFrame in this frame's in-process subtree. When user gesture toke ns
104 // are synchronized across processes this method should be removed.
105 LocalFrame* localFrameRoot();
106
102 // ======== All public functions below this point are candidates to move out of LocalFrame into another class. ======== 107 // ======== All public functions below this point are candidates to move out of LocalFrame into another class. ========
103 108
104 bool inScope(TreeScope*) const; 109 bool inScope(TreeScope*) const;
105 110
106 void countObjectsNeedingLayout(unsigned& needsLayoutObjects, unsigned& t otalObjects, bool& isPartial); 111 void countObjectsNeedingLayout(unsigned& needsLayoutObjects, unsigned& t otalObjects, bool& isPartial);
107 112
108 // See GraphicsLayerClient.h for accepted flags. 113 // See GraphicsLayerClient.h for accepted flags.
109 String layerTreeAsText(unsigned flags = 0) const; 114 String layerTreeAsText(unsigned flags = 0) const;
110 String trackedRepaintRectsAsText() const; 115 String trackedRepaintRectsAsText() const;
111 116
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 DEFINE_TYPE_CASTS(LocalFrame, Frame, localFrame, localFrame->isLocalFrame(), localFrame.isLocalFrame()); 254 DEFINE_TYPE_CASTS(LocalFrame, Frame, localFrame, localFrame->isLocalFrame(), localFrame.isLocalFrame());
250 255
251 } // namespace WebCore 256 } // namespace WebCore
252 257
253 // During refactoring, there are some places where we need to do type conversion s that 258 // During refactoring, there are some places where we need to do type conversion s that
254 // will not be needed once all instances of LocalFrame and RemoteFrame are sorte d out. 259 // will not be needed once all instances of LocalFrame and RemoteFrame are sorte d out.
255 // At that time this #define will be removed and all the uses of it will need to be corrected. 260 // At that time this #define will be removed and all the uses of it will need to be corrected.
256 #define toLocalFrameTemporary toLocalFrame 261 #define toLocalFrameTemporary toLocalFrame
257 262
258 #endif // LocalFrame_h 263 #endif // LocalFrame_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/frame/LocalFrame.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698