summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webframe_impl.cc
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-18 23:56:41 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-18 23:56:41 +0000
commit5d846d975e6febb772269fabb22ddde52842a1c5 (patch)
treed3955f8575aea23ad4e308438895c5b65db10f6b /webkit/glue/webframe_impl.cc
parent6edb59d11201e7496fc1fbd5b3467e31b297bff2 (diff)
downloadchromium_src-5d846d975e6febb772269fabb22ddde52842a1c5.zip
chromium_src-5d846d975e6febb772269fabb22ddde52842a1c5.tar.gz
chromium_src-5d846d975e6febb772269fabb22ddde52842a1c5.tar.bz2
Added the new isCommandEnabled() layout test function to the layout test controller.
Fixes one new layout test. Review URL: http://codereview.chromium.org/14871 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7277 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webframe_impl.cc')
-rw-r--r--webkit/glue/webframe_impl.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/webkit/glue/webframe_impl.cc b/webkit/glue/webframe_impl.cc
index dbcca01..9f9dd1d 100644
--- a/webkit/glue/webframe_impl.cc
+++ b/webkit/glue/webframe_impl.cc
@@ -1675,6 +1675,12 @@ bool WebFrameImpl::ExecuteCoreCommandByName(const std::string& name,
.execute(webkit_glue::StdStringToString(value));
}
+bool WebFrameImpl::IsCoreCommandEnabled(const std::string& name) {
+ ASSERT(frame());
+ return frame()->editor()->command(webkit_glue::StdStringToString(name))
+ .isEnabled();
+}
+
void WebFrameImpl::AddMessageToConsole(const std::wstring& msg,
ConsoleMessageLevel level) {
ASSERT(frame());