Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Side by Side Diff: ui/base/ime/remote_input_method_win.cc

Issue 1162943002: Replace more ObserverList with base::ObserverList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@observer
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/base/ime/mock_input_method.h ('k') | ui/base/models/list_model.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « ui/base/ime/mock_input_method.h ('k') | ui/base/models/list_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698