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

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

Issue 2596193002: Clean up names and remove unnecessary parameter (Closed)
Patch Set: rebase Created 3 years, 11 months 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
« no previous file with comments | « content/public/test/text_input_test_utils.cc ('k') | content/renderer/ime_event_guard.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 guarding IME updates. Calls OnImeGuardStart on 11 // Simple RAII object for guarding IME updates. Calls OnImeGuardStart on
12 // construction and OnImeGuardFinish 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(); 16 ~ImeEventGuard();
17 17
18 bool show_ime() const { return show_ime_; } 18 bool show_virtual_keyboard() const { return show_virtual_keyboard_; }
19 bool from_ime() const { return from_ime_; } 19 bool reply_to_request() const { return reply_to_request_; }
20 void set_show_ime(bool show_ime) { show_ime_ = show_ime; } 20 void set_show_virtual_keyboard(bool show) { show_virtual_keyboard_ = show; }
21 void set_from_ime(bool from_ime) { from_ime_ = from_ime; }
22 21
23 private: 22 private:
24 RenderWidget* widget_; 23 RenderWidget* widget_;
25 bool show_ime_; 24 bool show_virtual_keyboard_;
26 bool from_ime_; 25 bool reply_to_request_;
27 }; 26 };
28 } 27 }
29 28
30 #endif // CONTENT_RENDERER_IME_EVENT_GUARD_H_ 29 #endif // CONTENT_RENDERER_IME_EVENT_GUARD_H_
31 30
OLDNEW
« no previous file with comments | « content/public/test/text_input_test_utils.cc ('k') | content/renderer/ime_event_guard.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698