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 3 // found in the LICENSE file. 4 5 #include "content/renderer/ime_event_guard.h" 6 7 #include "content/renderer/render_widget.h" 8 9 namespace content { 10 ImeEventGuard(RenderWidget * widget)11ImeEventGuard::ImeEventGuard(RenderWidget* widget) : widget_(widget) { 12 widget_->StartHandlingImeEvent(); 13 } 14 ~ImeEventGuard()15ImeEventGuard::~ImeEventGuard() { 16 widget_->FinishHandlingImeEvent(); 17 } 18 19 } // namespace content 20