mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update to Chromium revision fc6aaca4 (#406441)
This commit is contained in:
@ -28,6 +28,7 @@
|
||||
#include "third_party/WebKit/public/web/WebFrame.h"
|
||||
#include "third_party/WebKit/public/web/WebFrameContentDumper.h"
|
||||
#include "third_party/WebKit/public/web/WebKit.h"
|
||||
#include "third_party/WebKit/public/web/WebLocalFrame.h"
|
||||
#include "third_party/WebKit/public/web/WebView.h"
|
||||
#include "third_party/WebKit/public/web/WebScriptSource.h"
|
||||
|
||||
@ -50,45 +51,31 @@ bool CefFrameImpl::IsValid() {
|
||||
}
|
||||
|
||||
void CefFrameImpl::Undo() {
|
||||
CEF_REQUIRE_RT_RETURN_VOID();
|
||||
if (frame_)
|
||||
frame_->executeCommand(WebString::fromUTF8("Undo"));
|
||||
ExecuteCommand("Undo");
|
||||
}
|
||||
|
||||
void CefFrameImpl::Redo() {
|
||||
CEF_REQUIRE_RT_RETURN_VOID();
|
||||
if (frame_)
|
||||
frame_->executeCommand(WebString::fromUTF8("Redo"));
|
||||
ExecuteCommand("Redo");
|
||||
}
|
||||
|
||||
void CefFrameImpl::Cut() {
|
||||
CEF_REQUIRE_RT_RETURN_VOID();
|
||||
if (frame_)
|
||||
frame_->executeCommand(WebString::fromUTF8("Cut"));
|
||||
ExecuteCommand("Cut");
|
||||
}
|
||||
|
||||
void CefFrameImpl::Copy() {
|
||||
CEF_REQUIRE_RT_RETURN_VOID();
|
||||
if (frame_)
|
||||
frame_->executeCommand(WebString::fromUTF8("Copy"));
|
||||
ExecuteCommand("Copy");
|
||||
}
|
||||
|
||||
void CefFrameImpl::Paste() {
|
||||
CEF_REQUIRE_RT_RETURN_VOID();
|
||||
if (frame_)
|
||||
frame_->executeCommand(WebString::fromUTF8("Paste"));
|
||||
ExecuteCommand("Paste");
|
||||
}
|
||||
|
||||
void CefFrameImpl::Delete() {
|
||||
CEF_REQUIRE_RT_RETURN_VOID();
|
||||
if (frame_)
|
||||
frame_->executeCommand(WebString::fromUTF8("Delete"));
|
||||
ExecuteCommand("Delete");
|
||||
}
|
||||
|
||||
void CefFrameImpl::SelectAll() {
|
||||
CEF_REQUIRE_RT_RETURN_VOID();
|
||||
if (frame_)
|
||||
frame_->executeCommand(WebString::fromUTF8("SelectAll"));
|
||||
ExecuteCommand("SelectAll");
|
||||
}
|
||||
|
||||
void CefFrameImpl::ViewSource() {
|
||||
@ -281,6 +268,12 @@ void CefFrameImpl::Detach() {
|
||||
frame_ = NULL;
|
||||
}
|
||||
|
||||
void CefFrameImpl::ExecuteCommand(const std::string& command) {
|
||||
CEF_REQUIRE_RT_RETURN_VOID();
|
||||
if (frame_ && frame_->isWebLocalFrame())
|
||||
frame_->toWebLocalFrame()->executeCommand(WebString::fromUTF8(command));
|
||||
}
|
||||
|
||||
|
||||
// Enable deprecation warnings for MSVC. See http://crbug.com/585142.
|
||||
#if defined(OS_WIN)
|
||||
|
Reference in New Issue
Block a user