summaryrefslogtreecommitdiffstats
path: root/WebKit/android/jni/WebHistory.h
diff options
context:
space:
mode:
authorBen Murdoch <benm@google.com>2009-11-26 14:58:02 +0000
committerBen Murdoch <benm@google.com>2009-12-03 11:37:33 +0000
commitbe33b78f63b17f1b6f5a36a503d797d5f9b941ee (patch)
treef20cc55272f748c404e72d0e38cbf694534dd7c1 /WebKit/android/jni/WebHistory.h
parent970b5d950cbc4b5089ff8bb091d896ddf58ad83a (diff)
downloadexternal_webkit-be33b78f63b17f1b6f5a36a503d797d5f9b941ee.zip
external_webkit-be33b78f63b17f1b6f5a36a503d797d5f9b941ee.tar.gz
external_webkit-be33b78f63b17f1b6f5a36a503d797d5f9b941ee.tar.bz2
Android History unforking pt4: Android specific changes to makefiles and other code that has not been upstreamed yet (i.e. WebKit/android).
This does NOT need to be upstreamed to WebKit (yet). Change-Id: I821fb90c3e463ef5fc4fa001ee5b8d967f9f7e48
Diffstat (limited to 'WebKit/android/jni/WebHistory.h')
-rw-r--r--WebKit/android/jni/WebHistory.h35
1 files changed, 10 insertions, 25 deletions
diff --git a/WebKit/android/jni/WebHistory.h b/WebKit/android/jni/WebHistory.h
index 8d545ca..baba1fd 100644
--- a/WebKit/android/jni/WebHistory.h
+++ b/WebKit/android/jni/WebHistory.h
@@ -26,14 +26,12 @@
#ifndef ANDROID_WEBKIT_WEBHISTORY_H
#define ANDROID_WEBKIT_WEBHISTORY_H
+#include "AndroidWebHistoryBridge.h"
+
#include <jni.h>
#include <wtf/RefCounted.h>
#include <wtf/Vector.h>
-namespace WebCore {
- class HistoryItem;
-}
-
namespace android {
class AutoJObject;
@@ -49,33 +47,20 @@ public:
// there are two scale factors saved with each history item. mScale reflects the
// viewport scale factor, default to 100 means 100%. mScreenWidthScale records
// the scale factor for the screen width used to wrap the text paragraph.
-class WebHistoryItem : public WTF::RefCounted<WebHistoryItem> {
+class WebHistoryItem : public WebCore::AndroidWebHistoryBridge {
public:
WebHistoryItem(WebHistoryItem* parent)
- : mParent(parent)
- , mObject(NULL)
- , mScale(100)
- , mScreenWidthScale(100)
- , mActive(false)
- , mHistoryItem(NULL) {}
+ : WebCore::AndroidWebHistoryBridge()
+ , m_parent(parent)
+ , m_object(NULL) { }
WebHistoryItem(JNIEnv*, jobject, WebCore::HistoryItem*);
~WebHistoryItem();
void updateHistoryItem(WebCore::HistoryItem* item);
- void setScale(int s) { mScale = s; }
- void setScreenWidthScale(int s) { mScreenWidthScale = s; }
- void setActive() { mActive = true; }
- void setParent(WebHistoryItem* parent) { mParent = parent; }
- WebHistoryItem* parent() { return mParent.get(); }
- int scale() { return mScale; }
- int screenWidthScale() { return mScreenWidthScale; }
- WebCore::HistoryItem* historyItem() { return mHistoryItem; }
+ void setParent(WebHistoryItem* parent) { m_parent = parent; }
+ WebHistoryItem* parent() const { return m_parent.get(); }
private:
- RefPtr<WebHistoryItem> mParent;
- jobject mObject;
- int mScale;
- int mScreenWidthScale;
- bool mActive;
- WebCore::HistoryItem* mHistoryItem;
+ RefPtr<WebHistoryItem> m_parent;
+ jobject m_object;
};
};