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

Side by Side Diff: third_party/WebKit/Source/core/page/ChromeClient.h

Issue 1447563002: Implement frame attribution (FrameBlamer) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make sure blame context is initialized early enough Created 4 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) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple, Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple, Inc. All rights reserved.
3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
4 * Copyright (C) 2012 Samsung Electronics. All rights reserved. 4 * Copyright (C) 2012 Samsung Electronics. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 17 matching lines...) Expand all
28 #include "core/frame/ConsoleTypes.h" 28 #include "core/frame/ConsoleTypes.h"
29 #include "core/inspector/ConsoleAPITypes.h" 29 #include "core/inspector/ConsoleAPITypes.h"
30 #include "core/loader/FrameLoader.h" 30 #include "core/loader/FrameLoader.h"
31 #include "core/loader/NavigationPolicy.h" 31 #include "core/loader/NavigationPolicy.h"
32 #include "core/style/ComputedStyleConstants.h" 32 #include "core/style/ComputedStyleConstants.h"
33 #include "platform/Cursor.h" 33 #include "platform/Cursor.h"
34 #include "platform/HostWindow.h" 34 #include "platform/HostWindow.h"
35 #include "platform/PopupMenu.h" 35 #include "platform/PopupMenu.h"
36 #include "platform/heap/Handle.h" 36 #include "platform/heap/Handle.h"
37 #include "platform/scroll/ScrollTypes.h" 37 #include "platform/scroll/ScrollTypes.h"
38 #include "public/platform/BlameContext.h"
38 #include "public/platform/WebEventListenerProperties.h" 39 #include "public/platform/WebEventListenerProperties.h"
39 #include "public/platform/WebFocusType.h" 40 #include "public/platform/WebFocusType.h"
40 #include "wtf/Forward.h" 41 #include "wtf/Forward.h"
41 #include "wtf/PassOwnPtr.h" 42 #include "wtf/PassOwnPtr.h"
42 #include "wtf/Vector.h" 43 #include "wtf/Vector.h"
43 44
44 namespace blink { 45 namespace blink {
45 46
46 class AXObject; 47 class AXObject;
47 class ColorChooser; 48 class ColorChooser;
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 virtual void registerPopupOpeningObserver(PopupOpeningObserver*) = 0; 252 virtual void registerPopupOpeningObserver(PopupOpeningObserver*) = 0;
252 virtual void unregisterPopupOpeningObserver(PopupOpeningObserver*) = 0; 253 virtual void unregisterPopupOpeningObserver(PopupOpeningObserver*) = 0;
253 254
254 virtual FloatSize elasticOverscroll() const { return FloatSize(); } 255 virtual FloatSize elasticOverscroll() const { return FloatSize(); }
255 256
256 // Called when observed XHR, fetch, and other fetch request with non-GET 257 // Called when observed XHR, fetch, and other fetch request with non-GET
257 // method is initiated from javascript. At this time, it is not guaranteed 258 // method is initiated from javascript. At this time, it is not guaranteed
258 // that this is comprehensive. 259 // that this is comprehensive.
259 virtual void didObserveNonGetFetchFromScript() const {} 260 virtual void didObserveNonGetFetchFromScript() const {}
260 261
261 virtual PassOwnPtr<WebFrameScheduler> createFrameScheduler() = 0; 262 virtual PassOwnPtr<WebFrameScheduler> createFrameScheduler(BlameContext*) = 0;
262 263
263 protected: 264 protected:
264 ~ChromeClient() override { } 265 ~ChromeClient() override { }
265 266
266 virtual void showMouseOverURL(const HitTestResult&) = 0; 267 virtual void showMouseOverURL(const HitTestResult&) = 0;
267 virtual void setWindowRect(const IntRect&) = 0; 268 virtual void setWindowRect(const IntRect&) = 0;
268 virtual bool openBeforeUnloadConfirmPanelDelegate(LocalFrame*, bool isReload ) = 0; 269 virtual bool openBeforeUnloadConfirmPanelDelegate(LocalFrame*, bool isReload ) = 0;
269 virtual bool openJavaScriptAlertDelegate(LocalFrame*, const String&) = 0; 270 virtual bool openJavaScriptAlertDelegate(LocalFrame*, const String&) = 0;
270 virtual bool openJavaScriptConfirmDelegate(LocalFrame*, const String&) = 0; 271 virtual bool openJavaScriptConfirmDelegate(LocalFrame*, const String&) = 0;
271 virtual bool openJavaScriptPromptDelegate(LocalFrame*, const String& message , const String& defaultValue, String& result) = 0; 272 virtual bool openJavaScriptPromptDelegate(LocalFrame*, const String& message , const String& defaultValue, String& result) = 0;
272 virtual void printDelegate(LocalFrame*) = 0; 273 virtual void printDelegate(LocalFrame*) = 0;
273 274
274 private: 275 private:
275 bool canOpenModalIfDuringPageDismissal(Frame* mainFrame, DialogType, const S tring& message); 276 bool canOpenModalIfDuringPageDismissal(Frame* mainFrame, DialogType, const S tring& message);
276 void setToolTip(const HitTestResult&); 277 void setToolTip(const HitTestResult&);
277 278
278 LayoutPoint m_lastToolTipPoint; 279 LayoutPoint m_lastToolTipPoint;
279 String m_lastToolTipText; 280 String m_lastToolTipText;
280 281
281 FRIEND_TEST_ALL_PREFIXES(ChromeClientTest, SetToolTipFlood); 282 FRIEND_TEST_ALL_PREFIXES(ChromeClientTest, SetToolTipFlood);
282 }; 283 };
283 284
284 } // namespace blink 285 } // namespace blink
285 286
286 #endif // ChromeClient_h 287 #endif // ChromeClient_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/loader/EmptyClients.cpp ('k') | third_party/WebKit/Source/platform/TraceEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698