| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2010 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
| 4 * Copyright (C) 2009 Google, Inc. All rights reserved. | 4 * Copyright (C) 2009 Google, Inc. All rights reserved. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY | 22 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
| 23 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 23 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 26 */ | 26 */ |
| 27 | 27 |
| 28 #ifndef BackForwardClient_h | 28 #ifndef BackForwardClient_h |
| 29 #define BackForwardClient_h | 29 #define BackForwardClient_h |
| 30 | 30 |
| 31 #include "core/history/HistoryItem.h" | 31 #include "core/history/HistoryItem.h" |
| 32 #include <wtf/Forward.h> | 32 #include "wtf/Forward.h" |
| 33 #include <wtf/RefCounted.h> | 33 #include "wtf/RefCounted.h" |
| 34 | 34 |
| 35 namespace WebCore { | 35 namespace WebCore { |
| 36 | 36 |
| 37 class BackForwardClient { | 37 class BackForwardClient { |
| 38 public: | 38 public: |
| 39 virtual ~BackForwardClient() | 39 virtual ~BackForwardClient() |
| 40 { | 40 { |
| 41 } | 41 } |
| 42 | 42 |
| 43 virtual void addItem(PassRefPtr<HistoryItem>) = 0; | 43 virtual void addItem(PassRefPtr<HistoryItem>) = 0; |
| 44 | 44 |
| 45 virtual void goToItem(HistoryItem*) = 0; | 45 virtual void goToItem(HistoryItem*) = 0; |
| 46 | 46 |
| 47 virtual HistoryItem* itemAtIndex(int) = 0; | 47 virtual HistoryItem* itemAtIndex(int) = 0; |
| 48 virtual int backListCount() = 0; | 48 virtual int backListCount() = 0; |
| 49 virtual int forwardListCount() = 0; | 49 virtual int forwardListCount() = 0; |
| 50 | 50 |
| 51 virtual bool isActive() = 0; | 51 virtual bool isActive() = 0; |
| 52 | 52 |
| 53 virtual void close() = 0; | 53 virtual void close() = 0; |
| 54 }; | 54 }; |
| 55 | 55 |
| 56 } // namespace WebCore | 56 } // namespace WebCore |
| 57 | 57 |
| 58 #endif // BackForwardClient_h | 58 #endif // BackForwardClient_h |
| OLD | NEW |