| Index: ui/views/cocoa/bridged_native_widget.mm
|
| diff --git a/ui/views/cocoa/bridged_native_widget.mm b/ui/views/cocoa/bridged_native_widget.mm
|
| index a465d24e4211ae97ada810938e8f601b3ecd9e1a..2e1678b1719cd44eb7865b827247ba39b484f1e8 100644
|
| --- a/ui/views/cocoa/bridged_native_widget.mm
|
| +++ b/ui/views/cocoa/bridged_native_widget.mm
|
| @@ -26,8 +26,6 @@
|
| #include "ui/views/cocoa/tooltip_manager_mac.h"
|
| #import "ui/views/cocoa/views_nswindow_delegate.h"
|
| #import "ui/views/cocoa/widget_owner_nswindow_adapter.h"
|
| -#include "ui/views/ime/input_method_bridge.h"
|
| -#include "ui/views/ime/null_input_method.h"
|
| #include "ui/views/view.h"
|
| #include "ui/views/views_delegate.h"
|
| #include "ui/views/widget/native_widget_mac.h"
|
| @@ -708,18 +706,12 @@ void BridgedNativeWidget::OnSizeConstraintsChanged() {
|
| shows_fullscreen_controls);
|
| }
|
|
|
| -InputMethod* BridgedNativeWidget::CreateInputMethod() {
|
| - if (switches::IsTextInputFocusManagerEnabled())
|
| - return new NullInputMethod();
|
| -
|
| - return new InputMethodBridge(this, GetHostInputMethod(), true);
|
| -}
|
| -
|
| -ui::InputMethod* BridgedNativeWidget::GetHostInputMethod() {
|
| +ui::InputMethod* BridgedNativeWidget::GetInputMethod() {
|
| if (!input_method_) {
|
| // Delegate is NULL because Mac IME does not need DispatchKeyEventPostIME
|
| // callbacks.
|
| input_method_ = ui::CreateInputMethod(NULL, nil);
|
| + input_method_->OnFocus();
|
| }
|
| return input_method_.get();
|
| }
|
| @@ -759,16 +751,6 @@ void BridgedNativeWidget::CreateLayer(ui::LayerType layer_type,
|
| }
|
|
|
| ////////////////////////////////////////////////////////////////////////////////
|
| -// BridgedNativeWidget, internal::InputMethodDelegate:
|
| -
|
| -void BridgedNativeWidget::DispatchKeyEventPostIME(const ui::KeyEvent& key) {
|
| - DCHECK(focus_manager_);
|
| - native_widget_mac_->GetWidget()->OnKeyEvent(const_cast<ui::KeyEvent*>(&key));
|
| - if (!key.handled())
|
| - focus_manager_->OnKeyEvent(key);
|
| -}
|
| -
|
| -////////////////////////////////////////////////////////////////////////////////
|
| // BridgedNativeWidget, CocoaMouseCaptureDelegate:
|
|
|
| void BridgedNativeWidget::PostCapturedEvent(NSEvent* event) {
|
|
|