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

Side by Side Diff: views/ime/input_method_gtk.h

Issue 6823055: Consolidate OnKeyEvent and InputMethod code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Refactor X2Event handling, nix Windows InputMethodDelegate, etc. Created 9 years, 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 VIEWS_IME_INPUT_METHOD_GTK_H_ 5 #ifndef VIEWS_IME_INPUT_METHOD_GTK_H_
6 #define VIEWS_IME_INPUT_METHOD_GTK_H_ 6 #define VIEWS_IME_INPUT_METHOD_GTK_H_
7 #pragma once 7 #pragma once
8 8
9 #include <gtk/gtk.h> 9 #include <gtk/gtk.h>
10 10
(...skipping 10 matching lines...) Expand all
21 // It's intended for testing purpose. 21 // It's intended for testing purpose.
22 class InputMethodGtk : public InputMethodBase { 22 class InputMethodGtk : public InputMethodBase {
23 public: 23 public:
24 explicit InputMethodGtk(internal::InputMethodDelegate* delegate); 24 explicit InputMethodGtk(internal::InputMethodDelegate* delegate);
25 virtual ~InputMethodGtk(); 25 virtual ~InputMethodGtk();
26 26
27 // Overridden from InputMethod: 27 // Overridden from InputMethod:
28 virtual void Init(Widget* widget) OVERRIDE; 28 virtual void Init(Widget* widget) OVERRIDE;
29 virtual void OnFocus() OVERRIDE; 29 virtual void OnFocus() OVERRIDE;
30 virtual void OnBlur() OVERRIDE; 30 virtual void OnBlur() OVERRIDE;
31 virtual void DispatchKeyEvent(const KeyEvent& key) OVERRIDE; 31 virtual bool OnKeyEvent(const KeyEvent& key) OVERRIDE;
32 virtual void OnTextInputTypeChanged(View* view) OVERRIDE; 32 virtual void OnTextInputTypeChanged(View* view) OVERRIDE;
33 virtual void OnCaretBoundsChanged(View* view) OVERRIDE; 33 virtual void OnCaretBoundsChanged(View* view) OVERRIDE;
34 virtual void CancelComposition(View* view) OVERRIDE; 34 virtual void CancelComposition(View* view) OVERRIDE;
35 virtual std::string GetInputLocale() OVERRIDE; 35 virtual std::string GetInputLocale() OVERRIDE;
36 virtual base::i18n::TextDirection GetInputTextDirection() OVERRIDE; 36 virtual base::i18n::TextDirection GetInputTextDirection() OVERRIDE;
37 virtual bool IsActive() OVERRIDE; 37 virtual bool IsActive() OVERRIDE;
38 38
39 private: 39 private:
40 // Overridden from InputMethodBase: 40 // Overridden from InputMethodBase:
41 virtual void FocusedViewWillChange() OVERRIDE; 41 virtual void FocusedViewWillChange() OVERRIDE;
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 // If it's true then all input method result received before the next key 112 // If it's true then all input method result received before the next key
113 // event will be discarded. 113 // event will be discarded.
114 bool suppress_next_result_; 114 bool suppress_next_result_;
115 115
116 DISALLOW_COPY_AND_ASSIGN(InputMethodGtk); 116 DISALLOW_COPY_AND_ASSIGN(InputMethodGtk);
117 }; 117 };
118 118
119 } // namespace views 119 } // namespace views
120 120
121 #endif // VIEWS_IME_INPUT_METHOD_GTK_H_ 121 #endif // VIEWS_IME_INPUT_METHOD_GTK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698