| 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/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/observer_list.h" | 8 #include "base/observer_list.h" |
| 9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
| 10 #include "base/win/metro.h" | 10 #include "base/win/metro.h" |
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 return text_input_client_ ? text_input_client_->CanComposeInline() : true; | 279 return text_input_client_ ? text_input_client_->CanComposeInline() : true; |
| 280 } | 280 } |
| 281 | 281 |
| 282 virtual bool IsCandidatePopupOpen() const override { | 282 virtual bool IsCandidatePopupOpen() const override { |
| 283 return is_candidate_popup_open_; | 283 return is_candidate_popup_open_; |
| 284 } | 284 } |
| 285 | 285 |
| 286 virtual void ShowImeIfNeeded() override { | 286 virtual void ShowImeIfNeeded() override { |
| 287 } | 287 } |
| 288 | 288 |
| 289 virtual void SetSupportsOnScreenKeyboard(bool supports) override { |
| 290 } |
| 291 |
| 292 virtual bool SupportsOnScreenKeyboard() const override { |
| 293 return false; |
| 294 } |
| 295 |
| 289 virtual void AddObserver(InputMethodObserver* observer) override { | 296 virtual void AddObserver(InputMethodObserver* observer) override { |
| 290 observer_list_.AddObserver(observer); | 297 observer_list_.AddObserver(observer); |
| 291 } | 298 } |
| 292 | 299 |
| 293 virtual void RemoveObserver(InputMethodObserver* observer) override { | 300 virtual void RemoveObserver(InputMethodObserver* observer) override { |
| 294 observer_list_.RemoveObserver(observer); | 301 observer_list_.RemoveObserver(observer); |
| 295 } | 302 } |
| 296 | 303 |
| 297 // Overridden from RemoteInputMethodPrivateWin: | 304 // Overridden from RemoteInputMethodPrivateWin: |
| 298 virtual void SetRemoteDelegate( | 305 virtual void SetRemoteDelegate( |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 return make_scoped_ptr(new RemoteInputMethodWin(delegate)); | 402 return make_scoped_ptr(new RemoteInputMethodWin(delegate)); |
| 396 } | 403 } |
| 397 | 404 |
| 398 // static | 405 // static |
| 399 RemoteInputMethodPrivateWin* RemoteInputMethodPrivateWin::Get( | 406 RemoteInputMethodPrivateWin* RemoteInputMethodPrivateWin::Get( |
| 400 InputMethod* input_method) { | 407 InputMethod* input_method) { |
| 401 return GetPrivate(input_method); | 408 return GetPrivate(input_method); |
| 402 } | 409 } |
| 403 | 410 |
| 404 } // namespace ui | 411 } // namespace ui |
| OLD | NEW |