OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009 Apple, Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009 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 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 virtual void attachRootGraphicsLayer(Frame*, GraphicsLayer*) = 0; | 229 virtual void attachRootGraphicsLayer(Frame*, GraphicsLayer*) = 0; |
230 // Sets a flag to specify that the next time content is drawn to the win
dow, | 230 // Sets a flag to specify that the next time content is drawn to the win
dow, |
231 // the changes appear on the screen in synchrony with updates to Graphic
sLayers. | 231 // the changes appear on the screen in synchrony with updates to Graphic
sLayers. |
232 virtual void setNeedsOneShotDrawingSynchronization() = 0; | 232 virtual void setNeedsOneShotDrawingSynchronization() = 0; |
233 // Sets a flag to specify that the view needs to be updated, so we need | 233 // Sets a flag to specify that the view needs to be updated, so we need |
234 // to do an eager layout before the drawing. | 234 // to do an eager layout before the drawing. |
235 virtual void scheduleCompositingLayerSync() = 0; | 235 virtual void scheduleCompositingLayerSync() = 0; |
236 // Returns whether or not the client can render the composited layer, | 236 // Returns whether or not the client can render the composited layer, |
237 // regardless of the settings. | 237 // regardless of the settings. |
238 virtual bool allowsAcceleratedCompositing() const { return true; } | 238 virtual bool allowsAcceleratedCompositing() const { return true; } |
| 239 |
| 240 enum CompositingTrigger { |
| 241 ThreeDTransformTrigger = 1 << 0, |
| 242 VideoTrigger = 1 << 1, |
| 243 PluginTrigger = 1 << 2, |
| 244 CanvasTrigger = 1 << 3, |
| 245 AnimationTrigger = 1 << 4, |
| 246 AllTriggers = 0xFFFFFFFF |
| 247 }; |
| 248 typedef unsigned CompositingTriggerFlags; |
| 249 |
| 250 // Returns a bitfield indicating conditions that can trigger the composi
tor. |
| 251 virtual CompositingTriggerFlags allowedCompositingTriggers() const { ret
urn static_cast<CompositingTriggerFlags>(AllTriggers); } |
239 #endif | 252 #endif |
240 | 253 |
241 virtual bool supportsFullscreenForNode(const Node*) { return false; } | 254 virtual bool supportsFullscreenForNode(const Node*) { return false; } |
242 virtual void enterFullscreenForNode(Node*) { } | 255 virtual void enterFullscreenForNode(Node*) { } |
243 virtual void exitFullscreenForNode(Node*) { } | 256 virtual void exitFullscreenForNode(Node*) { } |
244 | 257 |
245 #if ENABLE(FULLSCREEN_API) | 258 #if ENABLE(FULLSCREEN_API) |
246 virtual bool supportsFullScreenForElement(const Element*) { return false
; } | 259 virtual bool supportsFullScreenForElement(const Element*) { return false
; } |
247 virtual void enterFullScreenForElement(Element*) { } | 260 virtual void enterFullScreenForElement(Element*) { } |
248 virtual void exitFullScreenForElement(Element*) { } | 261 virtual void exitFullScreenForElement(Element*) { } |
(...skipping 30 matching lines...) Expand all Loading... |
279 | 292 |
280 virtual void postAccessibilityNotification(AccessibilityObject*, AXObjec
tCache::AXNotification) { } | 293 virtual void postAccessibilityNotification(AccessibilityObject*, AXObjec
tCache::AXNotification) { } |
281 | 294 |
282 protected: | 295 protected: |
283 virtual ~ChromeClient() { } | 296 virtual ~ChromeClient() { } |
284 }; | 297 }; |
285 | 298 |
286 } | 299 } |
287 | 300 |
288 #endif // ChromeClient_h | 301 #endif // ChromeClient_h |
OLD | NEW |