cc: Remove unused disable_hi_res_timer_tasks_on_battery flag.
[chromium-blink-merge.git] / content / renderer / ime_event_guard.h
blob811540e988b5c0397baafd6de1d3d3d849406fd9
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.
5 #ifndef CONTENT_RENDERER_IME_EVENT_GUARD_H_
6 #define CONTENT_RENDERER_IME_EVENT_GUARD_H_
8 namespace content {
9 class RenderWidget;
11 // Simple RAII object for handling IME events. Calls StartHandlingImeEvent on
12 // construction and FinishHandlingImeEvent on destruction.
13 class ImeEventGuard {
14 public:
15 explicit ImeEventGuard(RenderWidget* widget);
16 ~ImeEventGuard();
17 private:
18 RenderWidget* widget_;
22 #endif // CONTENT_RENDERER_IME_EVENT_GUARD_H_