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 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 text_input_client_->InsertText(text); | 339 text_input_client_->InsertText(text); |
340 } | 340 } |
341 | 341 |
342 bool CanSendRemoteNotification( | 342 bool CanSendRemoteNotification( |
343 const TextInputClient* text_input_client) const { | 343 const TextInputClient* text_input_client) const { |
344 return text_input_client_ && | 344 return text_input_client_ && |
345 text_input_client_ == text_input_client && | 345 text_input_client_ == text_input_client && |
346 remote_delegate_; | 346 remote_delegate_; |
347 } | 347 } |
348 | 348 |
349 ObserverList<InputMethodObserver> observer_list_; | 349 base::ObserverList<InputMethodObserver> observer_list_; |
350 | 350 |
351 internal::InputMethodDelegate* delegate_; | 351 internal::InputMethodDelegate* delegate_; |
352 internal::RemoteInputMethodDelegateWin* remote_delegate_; | 352 internal::RemoteInputMethodDelegateWin* remote_delegate_; |
353 | 353 |
354 TextInputClient* text_input_client_; | 354 TextInputClient* text_input_client_; |
355 std::vector<int32> input_scopes_; | 355 std::vector<int32> input_scopes_; |
356 std::vector<gfx::Rect> composition_character_bounds_; | 356 std::vector<gfx::Rect> composition_character_bounds_; |
357 bool is_candidate_popup_open_; | 357 bool is_candidate_popup_open_; |
358 bool is_ime_; | 358 bool is_ime_; |
359 LANGID langid_; | 359 LANGID langid_; |
(...skipping 27 matching lines...) Expand all Loading... |
387 return make_scoped_ptr(new RemoteInputMethodWin(delegate)); | 387 return make_scoped_ptr(new RemoteInputMethodWin(delegate)); |
388 } | 388 } |
389 | 389 |
390 // static | 390 // static |
391 RemoteInputMethodPrivateWin* RemoteInputMethodPrivateWin::Get( | 391 RemoteInputMethodPrivateWin* RemoteInputMethodPrivateWin::Get( |
392 InputMethod* input_method) { | 392 InputMethod* input_method) { |
393 return GetPrivate(input_method); | 393 return GetPrivate(input_method); |
394 } | 394 } |
395 | 395 |
396 } // namespace ui | 396 } // namespace ui |
OLD | NEW |