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 11 matching lines...) Expand all Loading... |
22 #ifndef ChromeClient_h | 22 #ifndef ChromeClient_h |
23 #define ChromeClient_h | 23 #define ChromeClient_h |
24 | 24 |
25 #include "core/accessibility/AXObjectCache.h" | 25 #include "core/accessibility/AXObjectCache.h" |
26 #include "core/inspector/ConsoleAPITypes.h" | 26 #include "core/inspector/ConsoleAPITypes.h" |
27 #include "core/loader/FrameLoader.h" | 27 #include "core/loader/FrameLoader.h" |
28 #include "core/loader/NavigationPolicy.h" | 28 #include "core/loader/NavigationPolicy.h" |
29 #include "core/frame/ConsoleTypes.h" | 29 #include "core/frame/ConsoleTypes.h" |
30 #include "core/page/FocusType.h" | 30 #include "core/page/FocusType.h" |
31 #include "core/rendering/RenderEmbeddedObject.h" | 31 #include "core/rendering/RenderEmbeddedObject.h" |
| 32 #include "core/rendering/compositing/CompositingTriggers.h" |
32 #include "core/rendering/style/RenderStyleConstants.h" | 33 #include "core/rendering/style/RenderStyleConstants.h" |
33 #include "platform/Cursor.h" | 34 #include "platform/Cursor.h" |
34 #include "platform/HostWindow.h" | 35 #include "platform/HostWindow.h" |
35 #include "platform/PopupMenu.h" | 36 #include "platform/PopupMenu.h" |
36 #include "platform/PopupMenuClient.h" | 37 #include "platform/PopupMenuClient.h" |
37 #include "platform/graphics/GraphicsContext.h" | 38 #include "platform/graphics/GraphicsContext.h" |
38 #include "platform/scroll/ScrollTypes.h" | 39 #include "platform/scroll/ScrollTypes.h" |
39 #include "wtf/Forward.h" | 40 #include "wtf/Forward.h" |
40 #include "wtf/PassOwnPtr.h" | 41 #include "wtf/PassOwnPtr.h" |
41 #include "wtf/Vector.h" | 42 #include "wtf/Vector.h" |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 | 186 |
186 // Asychronous request to enumerate all files in a directory chosen by the u
ser. | 187 // Asychronous request to enumerate all files in a directory chosen by the u
ser. |
187 virtual void enumerateChosenDirectory(FileChooser*) = 0; | 188 virtual void enumerateChosenDirectory(FileChooser*) = 0; |
188 | 189 |
189 // Allows ports to customize the type of graphics layers created by this pag
e. | 190 // Allows ports to customize the type of graphics layers created by this pag
e. |
190 virtual GraphicsLayerFactory* graphicsLayerFactory() const { return 0; } | 191 virtual GraphicsLayerFactory* graphicsLayerFactory() const { return 0; } |
191 | 192 |
192 // Pass 0 as the GraphicsLayer to detatch the root layer. | 193 // Pass 0 as the GraphicsLayer to detatch the root layer. |
193 virtual void attachRootGraphicsLayer(GraphicsLayer*) = 0; | 194 virtual void attachRootGraphicsLayer(GraphicsLayer*) = 0; |
194 | 195 |
195 enum CompositingTrigger { | |
196 ThreeDTransformTrigger = 1 << 0, | |
197 VideoTrigger = 1 << 1, | |
198 PluginTrigger = 1 << 2, | |
199 CanvasTrigger = 1 << 3, | |
200 AnimationTrigger = 1 << 4, | |
201 FilterTrigger = 1 << 5, | |
202 ScrollableInnerFrameTrigger = 1 << 6, | |
203 AllTriggers = 0xFFFFFFFF | |
204 }; | |
205 typedef unsigned CompositingTriggerFlags; | |
206 | |
207 // Returns a bitfield indicating conditions that can trigger the compositor. | 196 // Returns a bitfield indicating conditions that can trigger the compositor. |
208 virtual CompositingTriggerFlags allowedCompositingTriggers() const { return
static_cast<CompositingTriggerFlags>(AllTriggers); } | 197 virtual CompositingTriggerFlags allowedCompositingTriggers() const { return
static_cast<CompositingTriggerFlags>(AllCompositingTriggers); } |
209 | 198 |
210 virtual void enterFullScreenForElement(Element*) { } | 199 virtual void enterFullScreenForElement(Element*) { } |
211 virtual void exitFullScreenForElement(Element*) { } | 200 virtual void exitFullScreenForElement(Element*) { } |
212 | 201 |
213 virtual void needTouchEvents(bool) = 0; | 202 virtual void needTouchEvents(bool) = 0; |
214 | 203 |
215 virtual void setTouchAction(TouchAction) = 0; | 204 virtual void setTouchAction(TouchAction) = 0; |
216 | 205 |
217 // Checks if there is an opened popup, called by RenderMenuList::showPopup()
. | 206 // Checks if there is an opened popup, called by RenderMenuList::showPopup()
. |
218 virtual bool hasOpenedPopup() const = 0; | 207 virtual bool hasOpenedPopup() const = 0; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 // Input mehtod editor related functions. | 251 // Input mehtod editor related functions. |
263 virtual void didCancelCompositionOnSelectionChange() { } | 252 virtual void didCancelCompositionOnSelectionChange() { } |
264 virtual void willSetInputMethodState() { } | 253 virtual void willSetInputMethodState() { } |
265 | 254 |
266 protected: | 255 protected: |
267 virtual ~ChromeClient() { } | 256 virtual ~ChromeClient() { } |
268 }; | 257 }; |
269 | 258 |
270 } | 259 } |
271 #endif // ChromeClient_h | 260 #endif // ChromeClient_h |
OLD | NEW |