Update to Chromium revision 213078.
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1339 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
a2a3513620
commit
d357bb0b80
|
@ -100,7 +100,7 @@ extern "C" {
|
||||||
ui::Range replacement_range(replacementRange);
|
ui::Range replacement_range(replacementRange);
|
||||||
|
|
||||||
renderWidgetHostView_->get_render_widget_host_impl()->ImeConfirmComposition(
|
renderWidgetHostView_->get_render_widget_host_impl()->ImeConfirmComposition(
|
||||||
base::SysNSStringToUTF16(im_text), replacement_range);
|
base::SysNSStringToUTF16(im_text), replacement_range, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Inserting text will delete all marked text automatically.
|
// Inserting text will delete all marked text automatically.
|
||||||
|
@ -185,7 +185,7 @@ extern "C" {
|
||||||
// called in keyEvent: method.
|
// called in keyEvent: method.
|
||||||
if (!handlingKeyDown_) {
|
if (!handlingKeyDown_) {
|
||||||
renderWidgetHostView_->get_render_widget_host_impl()->
|
renderWidgetHostView_->get_render_widget_host_impl()->
|
||||||
ImeConfirmComposition();
|
ImeConfirmComposition(string16(), ui::Range::InvalidRange(), false);
|
||||||
} else {
|
} else {
|
||||||
unmarkTextCalled_ = YES;
|
unmarkTextCalled_ = YES;
|
||||||
}
|
}
|
||||||
|
@ -305,7 +305,7 @@ extern "C" {
|
||||||
// text.
|
// text.
|
||||||
|
|
||||||
if (!hasMarkedText_ && !oldHasMarkedText_ &&
|
if (!hasMarkedText_ && !oldHasMarkedText_ &&
|
||||||
!textToBeInserted_.length() <= 1) {
|
textToBeInserted_.length() <= 1) {
|
||||||
content::NativeWebKeyboardEvent event(keyEvent);
|
content::NativeWebKeyboardEvent event(keyEvent);
|
||||||
if (textToBeInserted_.length() == 1) {
|
if (textToBeInserted_.length() == 1) {
|
||||||
event.type = WebKit::WebInputEvent::Type::Char;
|
event.type = WebKit::WebInputEvent::Type::Char;
|
||||||
|
@ -319,7 +319,7 @@ extern "C" {
|
||||||
if (textToBeInserted_.length() >
|
if (textToBeInserted_.length() >
|
||||||
((hasMarkedText_ || oldHasMarkedText_) ? 0u : 1u)) {
|
((hasMarkedText_ || oldHasMarkedText_) ? 0u : 1u)) {
|
||||||
renderWidgetHostView_->get_render_widget_host_impl()->ImeConfirmComposition(
|
renderWidgetHostView_->get_render_widget_host_impl()->ImeConfirmComposition(
|
||||||
textToBeInserted_);
|
textToBeInserted_, ui::Range::InvalidRange(), false);
|
||||||
textToBeInserted_ = YES;
|
textToBeInserted_ = YES;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -336,7 +336,7 @@ extern "C" {
|
||||||
} else if (oldHasMarkedText_ && !hasMarkedText_ && !textInserted) {
|
} else if (oldHasMarkedText_ && !hasMarkedText_ && !textInserted) {
|
||||||
if (unmarkTextCalled_) {
|
if (unmarkTextCalled_) {
|
||||||
renderWidgetHostView_->get_render_widget_host_impl()->
|
renderWidgetHostView_->get_render_widget_host_impl()->
|
||||||
ImeConfirmComposition();
|
ImeConfirmComposition(string16(), ui::Range::InvalidRange(), false);
|
||||||
} else {
|
} else {
|
||||||
renderWidgetHostView_->get_render_widget_host_impl()->
|
renderWidgetHostView_->get_render_widget_host_impl()->
|
||||||
ImeCancelComposition();
|
ImeCancelComposition();
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
|
|
||||||
#include "base/strings/string16.h"
|
#include "base/strings/string16.h"
|
||||||
#include "base/strings/string_util.h"
|
#include "base/strings/string_util.h"
|
||||||
|
#include "base/strings/sys_string_conversions.h"
|
||||||
#include "base/strings/utf_string_conversions.h"
|
#include "base/strings/utf_string_conversions.h"
|
||||||
#include "content/public/renderer/document_state.h"
|
#include "content/public/renderer/document_state.h"
|
||||||
#include "content/public/renderer/navigation_state.h"
|
#include "content/public/renderer/navigation_state.h"
|
||||||
|
|
|
@ -10,6 +10,7 @@ MSVC_PUSH_WARNING_LEVEL(0);
|
||||||
#include "bindings/v8/V8RecursionScope.h"
|
#include "bindings/v8/V8RecursionScope.h"
|
||||||
#include "bindings/v8/V8Utilities.h"
|
#include "bindings/v8/V8Utilities.h"
|
||||||
MSVC_POP_WARNING();
|
MSVC_POP_WARNING();
|
||||||
|
#undef ceil
|
||||||
#undef LOG
|
#undef LOG
|
||||||
|
|
||||||
#include "libcef/renderer/content_renderer_client.h"
|
#include "libcef/renderer/content_renderer_client.h"
|
||||||
|
|
|
@ -1002,7 +1002,6 @@ CefV8ValueImpl::Handle::~Handle() {
|
||||||
// B. The associated context, if any, is still valid.
|
// B. The associated context, if any, is still valid.
|
||||||
if (should_persist_ && (!context_state_.get() || context_state_->IsValid())) {
|
if (should_persist_ && (!context_state_.get() || context_state_->IsValid())) {
|
||||||
handle_.MakeWeak(
|
handle_.MakeWeak(
|
||||||
isolate(),
|
|
||||||
(tracker_ ? new CefV8MakeWeakParam(context_state_, tracker_) : NULL),
|
(tracker_ ? new CefV8MakeWeakParam(context_state_, tracker_) : NULL),
|
||||||
TrackDestructor);
|
TrackDestructor);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -158,17 +158,14 @@ class DownloadTestHandler : public TestHandler {
|
||||||
EXPECT_TRUE(callback.get());
|
EXPECT_TRUE(callback.get());
|
||||||
|
|
||||||
download_id_ = download_item->GetId();
|
download_id_ = download_item->GetId();
|
||||||
EXPECT_LT(0, download_id_);
|
EXPECT_LT(0U, download_id_);
|
||||||
|
|
||||||
EXPECT_TRUE(download_item->IsValid());
|
EXPECT_TRUE(download_item->IsValid());
|
||||||
EXPECT_TRUE(download_item->IsInProgress());
|
EXPECT_TRUE(download_item->IsInProgress());
|
||||||
EXPECT_FALSE(download_item->IsComplete());
|
EXPECT_FALSE(download_item->IsComplete());
|
||||||
EXPECT_FALSE(download_item->IsCanceled());
|
EXPECT_FALSE(download_item->IsCanceled());
|
||||||
EXPECT_EQ(0LL, download_item->GetCurrentSpeed());
|
|
||||||
EXPECT_EQ(0, download_item->GetPercentComplete());
|
|
||||||
EXPECT_EQ(static_cast<int64>(sizeof(kTestContent)-1),
|
EXPECT_EQ(static_cast<int64>(sizeof(kTestContent)-1),
|
||||||
download_item->GetTotalBytes());
|
download_item->GetTotalBytes());
|
||||||
EXPECT_EQ(0LL, download_item->GetReceivedBytes());
|
|
||||||
EXPECT_EQ(0UL, download_item->GetFullPath().length());
|
EXPECT_EQ(0UL, download_item->GetFullPath().length());
|
||||||
EXPECT_STREQ(kTestDownloadUrl, download_item->GetURL().ToString().c_str());
|
EXPECT_STREQ(kTestDownloadUrl, download_item->GetURL().ToString().c_str());
|
||||||
EXPECT_EQ(0UL, download_item->GetSuggestedFileName().length());
|
EXPECT_EQ(0UL, download_item->GetSuggestedFileName().length());
|
||||||
|
@ -248,7 +245,7 @@ class DownloadTestHandler : public TestHandler {
|
||||||
private:
|
private:
|
||||||
base::ScopedTempDir temp_dir_;
|
base::ScopedTempDir temp_dir_;
|
||||||
base::FilePath test_path_;
|
base::FilePath test_path_;
|
||||||
int download_id_;
|
uint32 download_id_;
|
||||||
|
|
||||||
TrackCallback got_download_request_;
|
TrackCallback got_download_request_;
|
||||||
TrackCallback got_on_before_download_;
|
TrackCallback got_on_before_download_;
|
||||||
|
|
Loading…
Reference in New Issue