| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ui/base/ime/remote_input_method_win.h" | 5 #include "ui/base/ime/remote_input_method_win.h" |
| 6 | 6 |
| 7 #include "base/observer_list.h" | 7 #include "base/observer_list.h" |
| 8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
| 9 #include "base/win/metro.h" | 9 #include "base/win/metro.h" |
| 10 #include "base/win/scoped_handle.h" | 10 #include "base/win/scoped_handle.h" |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 } | 270 } |
| 271 | 271 |
| 272 virtual bool CanComposeInline() const OVERRIDE { | 272 virtual bool CanComposeInline() const OVERRIDE { |
| 273 return text_input_client_ ? text_input_client_->CanComposeInline() : true; | 273 return text_input_client_ ? text_input_client_->CanComposeInline() : true; |
| 274 } | 274 } |
| 275 | 275 |
| 276 virtual bool IsCandidatePopupOpen() const OVERRIDE { | 276 virtual bool IsCandidatePopupOpen() const OVERRIDE { |
| 277 return is_candidate_popup_open_; | 277 return is_candidate_popup_open_; |
| 278 } | 278 } |
| 279 | 279 |
| 280 virtual void ShowImeIfNeeded() OVERRIDE { |
| 281 } |
| 282 |
| 280 virtual void AddObserver(InputMethodObserver* observer) OVERRIDE { | 283 virtual void AddObserver(InputMethodObserver* observer) OVERRIDE { |
| 281 observer_list_.AddObserver(observer); | 284 observer_list_.AddObserver(observer); |
| 282 } | 285 } |
| 283 | 286 |
| 284 virtual void RemoveObserver(InputMethodObserver* observer) OVERRIDE { | 287 virtual void RemoveObserver(InputMethodObserver* observer) OVERRIDE { |
| 285 observer_list_.RemoveObserver(observer); | 288 observer_list_.RemoveObserver(observer); |
| 286 } | 289 } |
| 287 | 290 |
| 288 // Overridden from RemoteInputMethodPrivateWin: | 291 // Overridden from RemoteInputMethodPrivateWin: |
| 289 virtual void SetRemoteDelegate( | 292 virtual void SetRemoteDelegate( |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 return scoped_ptr<InputMethod>(new RemoteInputMethodWin(delegate)); | 383 return scoped_ptr<InputMethod>(new RemoteInputMethodWin(delegate)); |
| 381 } | 384 } |
| 382 | 385 |
| 383 // static | 386 // static |
| 384 RemoteInputMethodPrivateWin* RemoteInputMethodPrivateWin::Get( | 387 RemoteInputMethodPrivateWin* RemoteInputMethodPrivateWin::Get( |
| 385 InputMethod* input_method) { | 388 InputMethod* input_method) { |
| 386 return GetPrivate(input_method); | 389 return GetPrivate(input_method); |
| 387 } | 390 } |
| 388 | 391 |
| 389 } // namespace ui | 392 } // namespace ui |
| OLD | NEW |