| 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" |
| 36 #include "platform/heap/Handle.h" | 37 #include "platform/heap/Handle.h" |
| 37 #include "platform/scroll/ScrollTypes.h" | 38 #include "platform/scroll/ScrollTypes.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 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 59 class HTMLFormControlElement; | 60 class HTMLFormControlElement; |
| 60 class HTMLInputElement; | 61 class HTMLInputElement; |
| 61 class HTMLSelectElement; | 62 class HTMLSelectElement; |
| 62 class IntRect; | 63 class IntRect; |
| 63 class LocalFrame; | 64 class LocalFrame; |
| 64 class Node; | 65 class Node; |
| 65 class Page; | 66 class Page; |
| 66 class PaintArtifact; | 67 class PaintArtifact; |
| 67 class PopupOpeningObserver; | 68 class PopupOpeningObserver; |
| 68 class CompositorAnimationTimeline; | 69 class CompositorAnimationTimeline; |
| 70 class WebBlameContext; |
| 69 class WebFrameScheduler; | 71 class WebFrameScheduler; |
| 70 | 72 |
| 71 struct CompositedSelection; | 73 struct CompositedSelection; |
| 72 struct DateTimeChooserParameters; | 74 struct DateTimeChooserParameters; |
| 73 struct FrameLoadRequest; | 75 struct FrameLoadRequest; |
| 74 struct GraphicsDeviceAdapter; | 76 struct GraphicsDeviceAdapter; |
| 75 struct ViewportDescription; | 77 struct ViewportDescription; |
| 76 struct WindowFeatures; | 78 struct WindowFeatures; |
| 77 | 79 |
| 78 class CORE_EXPORT ChromeClient : public HostWindow { | 80 class CORE_EXPORT ChromeClient : public HostWindow { |
| (...skipping 176 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(WebBlameContext*)
= 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*, const String&
message, bool isReload) = 0; | 274 virtual bool openBeforeUnloadConfirmPanelDelegate(LocalFrame*, const String&
message, 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 |