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

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

Issue 1278593004: Introduce ThreadedInputConnection behind a switch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix selection update to be accurate and fix tests Created 4 years, 10 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
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 ImeEventGuard::ImeEventGuard(RenderWidget* widget) 11 ImeEventGuard::ImeEventGuard(RenderWidget* widget)
12 : ImeEventGuard(widget, false, true) { 12 : widget_(widget), show_ime_(false), from_ime_(widget->IsFromImeDefault()) {
13 }
14
15 ImeEventGuard::ImeEventGuard(RenderWidget* widget, bool show_ime, bool from_ime)
16 : widget_(widget),
17 show_ime_(show_ime),
18 from_ime_(from_ime) {
19 widget_->OnImeEventGuardStart(this); 13 widget_->OnImeEventGuardStart(this);
20 } 14 }
21 15
22 ImeEventGuard::~ImeEventGuard() { 16 ImeEventGuard::~ImeEventGuard() {
23 widget_->OnImeEventGuardFinish(this); 17 widget_->OnImeEventGuardFinish(this);
24 } 18 }
25 19
26 } // namespace content 20 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698