summaryrefslogtreecommitdiffstats
path: root/content/renderer/ime_event_guard.h
blob: 811540e988b5c0397baafd6de1d3d3d849406fd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CONTENT_RENDERER_IME_EVENT_GUARD_H_
#define CONTENT_RENDERER_IME_EVENT_GUARD_H_

namespace content {
class RenderWidget;

// Simple RAII object for handling IME events. Calls StartHandlingImeEvent on
// construction and FinishHandlingImeEvent on destruction.
class ImeEventGuard {
 public:
  explicit ImeEventGuard(RenderWidget* widget);
  ~ImeEventGuard();
 private:
  RenderWidget* widget_;
};
}

#endif  // CONTENT_RENDERER_IME_EVENT_GUARD_H_