| OLD | NEW |
| 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 #ifndef IME_EVENT_GUARD_H_ | 5 #ifndef CONTENT_RENDERER_IME_EVENT_GUARD_H_ |
| 6 #define IME_EVENT_GUARD_H_ | 6 #define CONTENT_RENDERER_IME_EVENT_GUARD_H_ |
| 7 | 7 |
| 8 namespace content { | 8 namespace content { |
| 9 class RenderWidget; | 9 class RenderWidget; |
| 10 | 10 |
| 11 // Simple RAII object for handling IME events. Calls StartHandlingImeEvent on | 11 // Simple RAII object for handling IME events. Calls StartHandlingImeEvent on |
| 12 // construction and FinishHandlingImeEvent on destruction. | 12 // construction and FinishHandlingImeEvent on destruction. |
| 13 class ImeEventGuard { | 13 class ImeEventGuard { |
| 14 public: | 14 public: |
| 15 explicit ImeEventGuard(RenderWidget* widget); | 15 explicit ImeEventGuard(RenderWidget* widget); |
| 16 ~ImeEventGuard(); | 16 ~ImeEventGuard(); |
| 17 private: | 17 private: |
| 18 RenderWidget* widget_; | 18 RenderWidget* widget_; |
| 19 }; | 19 }; |
| 20 } | 20 } |
| 21 | 21 |
| 22 #endif | 22 #endif // CONTENT_RENDERER_IME_EVENT_GUARD_H_ |
| 23 | 23 |
| OLD | NEW |