diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
commit | 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch) | |
tree | 46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/history/BackForwardController.h | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Source/WebCore/history/BackForwardController.h')
-rw-r--r-- | Source/WebCore/history/BackForwardController.h | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/Source/WebCore/history/BackForwardController.h b/Source/WebCore/history/BackForwardController.h index 638774643..60693d788 100644 --- a/Source/WebCore/history/BackForwardController.h +++ b/Source/WebCore/history/BackForwardController.h @@ -23,8 +23,7 @@ * THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef BackForwardController_h -#define BackForwardController_h +#pragma once #include <wtf/Noncopyable.h> #include <wtf/Forward.h> @@ -39,25 +38,25 @@ class Page; class BackForwardController { WTF_MAKE_NONCOPYABLE(BackForwardController); WTF_MAKE_FAST_ALLOCATED; public: - BackForwardController(Page&, PassRefPtr<BackForwardClient>); + BackForwardController(Page&, Ref<BackForwardClient>&&); ~BackForwardController(); BackForwardClient* client() const { return m_client.get(); } - bool canGoBackOrForward(int distance) const; + WEBCORE_EXPORT bool canGoBackOrForward(int distance) const; void goBackOrForward(int distance); - bool goBack(); - bool goForward(); + WEBCORE_EXPORT bool goBack(); + WEBCORE_EXPORT bool goForward(); - void addItem(PassRefPtr<HistoryItem>); + void addItem(Ref<HistoryItem>&&); void setCurrentItem(HistoryItem*); int count() const; - int backCount() const; - int forwardCount() const; + WEBCORE_EXPORT int backCount() const; + WEBCORE_EXPORT int forwardCount() const; - HistoryItem* itemAtIndex(int); + WEBCORE_EXPORT HistoryItem* itemAtIndex(int); void close(); @@ -71,5 +70,3 @@ private: }; } // namespace WebCore - -#endif // BackForwardController_h |