| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 namespace WebCore { | 31 namespace WebCore { |
| 32 | 32 |
| 33 class Cursor; | 33 class Cursor; |
| 34 | 34 |
| 35 class HostWindow { | 35 class HostWindow { |
| 36 WTF_MAKE_NONCOPYABLE(HostWindow); WTF_MAKE_FAST_ALLOCATED; | 36 WTF_MAKE_NONCOPYABLE(HostWindow); WTF_MAKE_FAST_ALLOCATED; |
| 37 public: | 37 public: |
| 38 HostWindow() { } | 38 HostWindow() { } |
| 39 virtual ~HostWindow() { } | 39 virtual ~HostWindow() { } |
| 40 | 40 |
| 41 // Requests the host invalidate the root view, not the contents. | |
| 42 virtual void invalidateRootView(const IntRect& updateRect) = 0; | |
| 43 | |
| 44 // Requests the host invalidate the contents and the root view. | 41 // Requests the host invalidate the contents and the root view. |
| 45 virtual void invalidateContentsAndRootView(const IntRect& updateRect) = 0; | 42 virtual void invalidateContentsAndRootView(const IntRect& updateRect) = 0; |
| 46 | 43 |
| 47 // Requests the host scroll backingstore by the specified delta, rect to scr
oll, and clip rect. | 44 // Requests the host scroll backingstore by the specified delta, rect to scr
oll, and clip rect. |
| 48 virtual void scroll(const IntSize& scrollDelta, const IntRect& rectToScroll,
const IntRect& clipRect) = 0; | 45 virtual void scroll(const IntSize& scrollDelta, const IntRect& rectToScroll,
const IntRect& clipRect) = 0; |
| 49 | 46 |
| 50 // Requests the host invalidate the contents, not the root view. This is the
slow path for scrolling. | 47 // Requests the host invalidate the contents, not the root view. This is the
slow path for scrolling. |
| 51 virtual void invalidateContentsForSlowScroll(const IntRect& updateRect) = 0; | 48 virtual void invalidateContentsForSlowScroll(const IntRect& updateRect) = 0; |
| 52 | 49 |
| 53 // Methods for doing coordinate conversions to and from screen coordinates. | 50 // Methods for doing coordinate conversions to and from screen coordinates. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 64 virtual void setCursor(const Cursor&) = 0; | 61 virtual void setCursor(const Cursor&) = 0; |
| 65 | 62 |
| 66 virtual void setCursorHiddenUntilMouseMoves(bool) = 0; | 63 virtual void setCursorHiddenUntilMouseMoves(bool) = 0; |
| 67 | 64 |
| 68 virtual void scheduleAnimation() = 0; | 65 virtual void scheduleAnimation() = 0; |
| 69 }; | 66 }; |
| 70 | 67 |
| 71 } // namespace WebCore | 68 } // namespace WebCore |
| 72 | 69 |
| 73 #endif // HostWindow_h | 70 #endif // HostWindow_h |
| OLD | NEW |