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 |
| 296 virtual void OnKeyboardBoundsUnchanged() override { |
| 297 } |
| 298 |
289 virtual void AddObserver(InputMethodObserver* observer) override { | 299 virtual void AddObserver(InputMethodObserver* observer) override { |
290 observer_list_.AddObserver(observer); | 300 observer_list_.AddObserver(observer); |
291 } | 301 } |
292 | 302 |
293 virtual void RemoveObserver(InputMethodObserver* observer) override { | 303 virtual void RemoveObserver(InputMethodObserver* observer) override { |
294 observer_list_.RemoveObserver(observer); | 304 observer_list_.RemoveObserver(observer); |
295 } | 305 } |
296 | 306 |
297 // Overridden from RemoteInputMethodPrivateWin: | 307 // Overridden from RemoteInputMethodPrivateWin: |
298 virtual void SetRemoteDelegate( | 308 virtual void SetRemoteDelegate( |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 return make_scoped_ptr(new RemoteInputMethodWin(delegate)); | 405 return make_scoped_ptr(new RemoteInputMethodWin(delegate)); |
396 } | 406 } |
397 | 407 |
398 // static | 408 // static |
399 RemoteInputMethodPrivateWin* RemoteInputMethodPrivateWin::Get( | 409 RemoteInputMethodPrivateWin* RemoteInputMethodPrivateWin::Get( |
400 InputMethod* input_method) { | 410 InputMethod* input_method) { |
401 return GetPrivate(input_method); | 411 return GetPrivate(input_method); |
402 } | 412 } |
403 | 413 |
404 } // namespace ui | 414 } // namespace ui |
OLD | NEW |