summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
authordarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-12 20:04:29 +0000
committerdarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-12 20:04:29 +0000
commitf33651e32ab77d1413e01f5fed1e90f5b36f7534 (patch)
tree76b42e47f0ccc8cd1ffe24dd728456ee764f8d70 /webkit
parent5235c0db9e3e00229e9267a41669d7a415d8fefc (diff)
downloadchromium_src-f33651e32ab77d1413e01f5fed1e90f5b36f7534.zip
chromium_src-f33651e32ab77d1413e01f5fed1e90f5b36f7534.tar.gz
chromium_src-f33651e32ab77d1413e01f5fed1e90f5b36f7534.tar.bz2
Remove the unused StateTrackingString.h
R=brettw Review URL: http://codereview.chromium.org/13793 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6918 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r--webkit/build/port/port.vcproj4
-rw-r--r--webkit/port/platform/StateTrackingString.h72
2 files changed, 0 insertions, 76 deletions
diff --git a/webkit/build/port/port.vcproj b/webkit/build/port/port.vcproj
index 4e992b2..9906e78 100644
--- a/webkit/build/port/port.vcproj
+++ b/webkit/build/port/port.vcproj
@@ -828,10 +828,6 @@
RelativePath="..\..\port\platform\GKURL.cpp"
>
</File>
- <File
- RelativePath="..\..\port\platform\StateTrackingString.h"
- >
- </File>
<Filter
Name="win"
>
diff --git a/webkit/port/platform/StateTrackingString.h b/webkit/port/platform/StateTrackingString.h
deleted file mode 100644
index 5f9e786..0000000
--- a/webkit/port/platform/StateTrackingString.h
+++ /dev/null
@@ -1,72 +0,0 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef StateTrackingString_h
-#define StateTrackingString_h
-
-#include "config.h"
-#include "ChromiumBridge.h"
-#include "PlatformString.h"
-
-namespace WebCore {
-
-// This string class emulates the necessary calls that the form code makes
-// and notifies the embedder if the value changes. We do not derive from
-// String so that if we don't implement some function that a WebKit merge uses,
-// the build will break instead of us silently missing that set.
-class StateTrackingString {
-public:
- StateTrackingString(Node* parentNode) : m_parentNode(parentNode) {
- Notify();
- }
- ~StateTrackingString() {
- // It would be nice to notify here, but when the string is going away,
- // that means the input element is going away, and we can't get at its
- // information.
- }
-
- void operator=(const StateTrackingString& other) {
- // Don't copy m_parentNode. StateTrackingString should keep its
- // parent node in its life time. The other's parent node may be
- // deleted.
- m_string = other.m_string;
- }
-
- void operator=(const char* other) {
- m_string = other;
- Notify();
- }
- void operator=(const String& other) {
- m_string = other;
- Notify();
- }
-
- // Things that don't need interception.
- bool isNull() const {
- return m_string.isNull();
- }
- unsigned length() const {
- return m_string.length();
- }
-
- // It can be magically converted to a string reference when passed to other
- // functions.
- operator const String&() const { return m_string; }
-
-private:
- void Notify() const {
- ChromiumBridge::NotifyFormStateChanged(m_parentNode->ownerDocument());
- }
-
- // The node that owns this value.
- Node* m_parentNode;
-
- // Actual data of this string.
- String m_string;
-};
-
-} // namespace WebCore
-
-#endif // StateTrackingString_h
-