| 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 18 matching lines...) Expand all Loading... |
| 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/BlameContext.h" |
| 39 #include "public/platform/WebDragOperation.h" |
| 39 #include "public/platform/WebEventListenerProperties.h" | 40 #include "public/platform/WebEventListenerProperties.h" |
| 40 #include "public/platform/WebFocusType.h" | 41 #include "public/platform/WebFocusType.h" |
| 41 #include "wtf/Forward.h" | 42 #include "wtf/Forward.h" |
| 42 #include "wtf/PassOwnPtr.h" | 43 #include "wtf/PassOwnPtr.h" |
| 43 #include "wtf/Vector.h" | 44 #include "wtf/Vector.h" |
| 44 | 45 |
| 45 namespace blink { | 46 namespace blink { |
| 46 | 47 |
| 47 class AXObject; | 48 class AXObject; |
| 48 class ColorChooser; | 49 class ColorChooser; |
| 49 class ColorChooserClient; | 50 class ColorChooserClient; |
| 51 class CompositorAnimationTimeline; |
| 50 class DateTimeChooser; | 52 class DateTimeChooser; |
| 51 class DateTimeChooserClient; | 53 class DateTimeChooserClient; |
| 52 class Element; | 54 class Element; |
| 53 class FileChooser; | 55 class FileChooser; |
| 56 class FloatPoint; |
| 54 class Frame; | 57 class Frame; |
| 55 class FloatPoint; | |
| 56 class GraphicsContext; | 58 class GraphicsContext; |
| 57 class GraphicsLayer; | 59 class GraphicsLayer; |
| 58 class HitTestResult; | |
| 59 class HTMLFormControlElement; | 60 class HTMLFormControlElement; |
| 60 class HTMLInputElement; | 61 class HTMLInputElement; |
| 61 class HTMLSelectElement; | 62 class HTMLSelectElement; |
| 63 class HitTestResult; |
| 62 class IntRect; | 64 class IntRect; |
| 63 class LocalFrame; | 65 class LocalFrame; |
| 64 class Node; | 66 class Node; |
| 65 class Page; | 67 class Page; |
| 66 class PaintArtifact; | 68 class PaintArtifact; |
| 67 class PopupOpeningObserver; | 69 class PopupOpeningObserver; |
| 68 class CompositorAnimationTimeline; | 70 class WebDragData; |
| 69 class WebFrameScheduler; | 71 class WebFrameScheduler; |
| 72 class WebImage; |
| 70 | 73 |
| 71 struct CompositedSelection; | 74 struct CompositedSelection; |
| 72 struct DateTimeChooserParameters; | 75 struct DateTimeChooserParameters; |
| 73 struct FrameLoadRequest; | 76 struct FrameLoadRequest; |
| 74 struct GraphicsDeviceAdapter; | 77 struct GraphicsDeviceAdapter; |
| 75 struct ViewportDescription; | 78 struct ViewportDescription; |
| 79 struct WebPoint; |
| 76 struct WindowFeatures; | 80 struct WindowFeatures; |
| 77 | 81 |
| 78 class CORE_EXPORT ChromeClient : public HostWindow { | 82 class CORE_EXPORT ChromeClient : public HostWindow { |
| 79 public: | 83 public: |
| 80 virtual void chromeDestroyed() = 0; | 84 virtual void chromeDestroyed() = 0; |
| 81 | 85 |
| 82 // The specified rectangle is adjusted for the minimum window size and the | 86 // The specified rectangle is adjusted for the minimum window size and the |
| 83 // screen, then setWindowRect with the adjusted rectangle is called. | 87 // screen, then setWindowRect with the adjusted rectangle is called. |
| 84 void setWindowRectWithAdjustment(const IntRect&); | 88 void setWindowRectWithAdjustment(const IntRect&); |
| 85 virtual IntRect windowRect() = 0; | 89 virtual IntRect windowRect() = 0; |
| 86 | 90 |
| 87 virtual IntRect pageRect() = 0; | 91 virtual IntRect pageRect() = 0; |
| 88 | 92 |
| 89 virtual void focus() = 0; | 93 virtual void focus() = 0; |
| 90 | 94 |
| 91 virtual bool canTakeFocus(WebFocusType) = 0; | 95 virtual bool canTakeFocus(WebFocusType) = 0; |
| 92 virtual void takeFocus(WebFocusType) = 0; | 96 virtual void takeFocus(WebFocusType) = 0; |
| 93 | 97 |
| 94 virtual void focusedNodeChanged(Node*, Node*) = 0; | 98 virtual void focusedNodeChanged(Node*, Node*) = 0; |
| 95 | 99 |
| 96 virtual bool hadFormInteraction() const = 0; | 100 virtual bool hadFormInteraction() const = 0; |
| 97 | 101 |
| 102 // Start a system drag and drop operation. |
| 103 virtual void startDragging(LocalFrame*, const WebDragData&, WebDragOperation
sMask, const WebImage& dragImage, const WebPoint& dragImageOffset) = 0; |
| 104 virtual bool acceptsLoadDrops() const = 0; |
| 105 |
| 98 // The LocalFrame pointer provides the ChromeClient with context about which | 106 // The LocalFrame pointer provides the ChromeClient with context about which |
| 99 // LocalFrame wants to create the new Page. Also, the newly created window | 107 // LocalFrame wants to create the new Page. Also, the newly created window |
| 100 // should not be shown to the user until the ChromeClient of the newly | 108 // should not be shown to the user until the ChromeClient of the newly |
| 101 // created Page has its show method called. | 109 // created Page has its show method called. |
| 102 // The FrameLoadRequest parameter is only for ChromeClient to check if the | 110 // The FrameLoadRequest parameter is only for ChromeClient to check if the |
| 103 // request could be fulfilled. The ChromeClient should not load the request. | 111 // request could be fulfilled. The ChromeClient should not load the request. |
| 104 virtual Page* createWindow(LocalFrame*, const FrameLoadRequest&, const Windo
wFeatures&, NavigationPolicy, ShouldSetOpener) = 0; | 112 virtual Page* createWindow(LocalFrame*, const FrameLoadRequest&, const Windo
wFeatures&, NavigationPolicy, ShouldSetOpener) = 0; |
| 105 virtual void show(NavigationPolicy = NavigationPolicyIgnore) = 0; | 113 virtual void show(NavigationPolicy = NavigationPolicyIgnore) = 0; |
| 106 | 114 |
| 107 void setWindowFeatures(const WindowFeatures&); | 115 void setWindowFeatures(const WindowFeatures&); |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 | 294 |
| 287 LayoutPoint m_lastToolTipPoint; | 295 LayoutPoint m_lastToolTipPoint; |
| 288 String m_lastToolTipText; | 296 String m_lastToolTipText; |
| 289 | 297 |
| 290 FRIEND_TEST_ALL_PREFIXES(ChromeClientTest, SetToolTipFlood); | 298 FRIEND_TEST_ALL_PREFIXES(ChromeClientTest, SetToolTipFlood); |
| 291 }; | 299 }; |
| 292 | 300 |
| 293 } // namespace blink | 301 } // namespace blink |
| 294 | 302 |
| 295 #endif // ChromeClient_h | 303 #endif // ChromeClient_h |
| OLD | NEW |