Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 15 matching lines...) Expand all Loading... | |
| 26 #include "core/CoreExport.h" | 26 #include "core/CoreExport.h" |
| 27 #include "core/dom/AXObjectCache.h" | 27 #include "core/dom/AXObjectCache.h" |
| 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/TraceEvent.h" | |
|
alex clarke (OOO till 29th)
2016/03/21 14:38:36
nit: is this needed?
Sami
2016/03/21 15:18:05
Good catch, removed.
| |
| 36 #include "platform/heap/Handle.h" | 37 #include "platform/heap/Handle.h" |
| 37 #include "platform/scroll/ScrollTypes.h" | 38 #include "platform/scroll/ScrollTypes.h" |
| 39 #include "public/platform/BlameContext.h" | |
| 38 #include "public/platform/WebEventListenerProperties.h" | 40 #include "public/platform/WebEventListenerProperties.h" |
| 39 #include "public/platform/WebFocusType.h" | 41 #include "public/platform/WebFocusType.h" |
| 40 #include "wtf/Forward.h" | 42 #include "wtf/Forward.h" |
| 41 #include "wtf/PassOwnPtr.h" | 43 #include "wtf/PassOwnPtr.h" |
| 42 #include "wtf/Vector.h" | 44 #include "wtf/Vector.h" |
| 43 | 45 |
| 44 namespace blink { | 46 namespace blink { |
| 45 | 47 |
| 46 class AXObject; | 48 class AXObject; |
| 47 class ColorChooser; | 49 class ColorChooser; |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 255 virtual void registerPopupOpeningObserver(PopupOpeningObserver*) = 0; | 257 virtual void registerPopupOpeningObserver(PopupOpeningObserver*) = 0; |
| 256 virtual void unregisterPopupOpeningObserver(PopupOpeningObserver*) = 0; | 258 virtual void unregisterPopupOpeningObserver(PopupOpeningObserver*) = 0; |
| 257 | 259 |
| 258 virtual FloatSize elasticOverscroll() const { return FloatSize(); } | 260 virtual FloatSize elasticOverscroll() const { return FloatSize(); } |
| 259 | 261 |
| 260 // Called when observed XHR, fetch, and other fetch request with non-GET | 262 // Called when observed XHR, fetch, and other fetch request with non-GET |
| 261 // method is initiated from javascript. At this time, it is not guaranteed | 263 // method is initiated from javascript. At this time, it is not guaranteed |
| 262 // that this is comprehensive. | 264 // that this is comprehensive. |
| 263 virtual void didObserveNonGetFetchFromScript() const {} | 265 virtual void didObserveNonGetFetchFromScript() const {} |
| 264 | 266 |
| 265 virtual PassOwnPtr<WebFrameScheduler> createFrameScheduler() = 0; | 267 virtual PassOwnPtr<WebFrameScheduler> createFrameScheduler(BlameContext*) = 0; |
| 266 | 268 |
| 267 protected: | 269 protected: |
| 268 ~ChromeClient() override { } | 270 ~ChromeClient() override { } |
| 269 | 271 |
| 270 virtual void showMouseOverURL(const HitTestResult&) = 0; | 272 virtual void showMouseOverURL(const HitTestResult&) = 0; |
| 271 virtual void setWindowRect(const IntRect&) = 0; | 273 virtual void setWindowRect(const IntRect&) = 0; |
| 272 virtual bool openBeforeUnloadConfirmPanelDelegate(LocalFrame*, bool isReload ) = 0; | 274 virtual bool openBeforeUnloadConfirmPanelDelegate(LocalFrame*, bool isReload ) = 0; |
| 273 virtual bool openJavaScriptAlertDelegate(LocalFrame*, const String&) = 0; | 275 virtual bool openJavaScriptAlertDelegate(LocalFrame*, const String&) = 0; |
| 274 virtual bool openJavaScriptConfirmDelegate(LocalFrame*, const String&) = 0; | 276 virtual bool openJavaScriptConfirmDelegate(LocalFrame*, const String&) = 0; |
| 275 virtual bool openJavaScriptPromptDelegate(LocalFrame*, const String& message , const String& defaultValue, String& result) = 0; | 277 virtual bool openJavaScriptPromptDelegate(LocalFrame*, const String& message , const String& defaultValue, String& result) = 0; |
| 276 virtual void printDelegate(LocalFrame*) = 0; | 278 virtual void printDelegate(LocalFrame*) = 0; |
| 277 | 279 |
| 278 private: | 280 private: |
| 279 bool canOpenModalIfDuringPageDismissal(Frame* mainFrame, DialogType, const S tring& message); | 281 bool canOpenModalIfDuringPageDismissal(Frame* mainFrame, DialogType, const S tring& message); |
| 280 void setToolTip(const HitTestResult&); | 282 void setToolTip(const HitTestResult&); |
| 281 | 283 |
| 282 LayoutPoint m_lastToolTipPoint; | 284 LayoutPoint m_lastToolTipPoint; |
| 283 String m_lastToolTipText; | 285 String m_lastToolTipText; |
| 284 | 286 |
| 285 FRIEND_TEST_ALL_PREFIXES(ChromeClientTest, SetToolTipFlood); | 287 FRIEND_TEST_ALL_PREFIXES(ChromeClientTest, SetToolTipFlood); |
| 286 }; | 288 }; |
| 287 | 289 |
| 288 } // namespace blink | 290 } // namespace blink |
| 289 | 291 |
| 290 #endif // ChromeClient_h | 292 #endif // ChromeClient_h |
| OLD | NEW |