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

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

Issue 1388283002: Fix OSK flickering issue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 5 years, 1 month 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 #ifndef CONTENT_RENDERER_IME_EVENT_GUARD_H_ 5 #ifndef CONTENT_RENDERER_IME_EVENT_GUARD_H_
6 #define CONTENT_RENDERER_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 guarding IME updates. Calls OnImeGuardStart on
12 // construction and FinishHandlingImeEvent on destruction. 12 // construction and OnImeGuardFinish on destruction.
13 class ImeEventGuard { 13 class ImeEventGuard {
14 public: 14 public:
15 explicit ImeEventGuard(RenderWidget* widget); 15 explicit ImeEventGuard(RenderWidget* widget);
16 ImeEventGuard(RenderWidget* widget, bool from_non_ime);
16 ~ImeEventGuard(); 17 ~ImeEventGuard();
18
17 private: 19 private:
18 RenderWidget* widget_; 20 RenderWidget* widget_;
21 bool from_non_ime_;
19 }; 22 };
20 } 23 }
21 24
22 #endif // CONTENT_RENDERER_IME_EVENT_GUARD_H_ 25 #endif // CONTENT_RENDERER_IME_EVENT_GUARD_H_
23 26
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698