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

Side by Side Diff: content/renderer/ime_event_guard.cc

Issue 2553923002: Remove deprecated ReplicaInputConnection (Closed)
Patch Set: Created 4 years 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
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 "content/renderer/ime_event_guard.h" 5 #include "content/renderer/ime_event_guard.h"
6 6
7 #include "content/renderer/render_widget.h" 7 #include "content/renderer/render_widget.h"
8 8
9 namespace content { 9 namespace content {
10 10
11 // When ThreadedInputConnection is used, we want to make sure that FROM_IME 11 // When ThreadedInputConnection is used, we want to make sure that FROM_IME
12 // is set only for OnRequestTextInputStateUpdate() so that we can distinguish 12 // is set only for OnRequestTextInputStateUpdate() so that we can distinguish
13 // it from other updates so that we can wait for it safely. So it is false by 13 // it from other updates so that we can wait for it safely. So it is false by
14 // default. 14 // default.
15 ImeEventGuard::ImeEventGuard(RenderWidget* widget) 15 ImeEventGuard::ImeEventGuard(RenderWidget* widget)
16 : widget_(widget), show_ime_(false), 16 : widget_(widget), show_ime_(false), from_ime_(false) {
17 from_ime_(!widget->IsUsingImeThread()) {
18 widget_->OnImeEventGuardStart(this); 17 widget_->OnImeEventGuardStart(this);
19 } 18 }
20 19
21 ImeEventGuard::~ImeEventGuard() { 20 ImeEventGuard::~ImeEventGuard() {
22 widget_->OnImeEventGuardFinish(this); 21 widget_->OnImeEventGuardFinish(this);
23 } 22 }
24 23
25 } // namespace content 24 } // namespace content
OLDNEW
« no previous file with comments | « content/public/common/content_features.cc ('k') | content/renderer/input/render_widget_input_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698