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

Side by Side Diff: views/ime/input_method_delegate.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_DELEGATE_H_ 5 #ifndef VIEWS_IME_INPUT_METHOD_DELEGATE_H_
6 #define VIEWS_IME_INPUT_METHOD_DELEGATE_H_ 6 #define VIEWS_IME_INPUT_METHOD_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 namespace views { 9 namespace views {
10 10
11 class KeyEvent; 11 class KeyEvent;
12 12
13 namespace internal { 13 namespace internal {
14 14
15 // An interface implemented by the object that handles events sent back from an 15 // An interface implemented by the object that handles events sent back from an
16 // InputMethod implementation. 16 // InputMethod implementation.
17 class InputMethodDelegate { 17 class InputMethodDelegate {
18 public: 18 public:
19 virtual ~InputMethodDelegate() {} 19 virtual ~InputMethodDelegate() {}
20 20
21 // Dispatch a key event already processed by the input method. 21 // Dispatch a key event already processed by the input method.
22 virtual void DispatchKeyEventPostIME(const KeyEvent& key) = 0; 22 virtual bool DispatchKeyEventPostIME(const KeyEvent& key) = 0;
Ben Goodger (Google) 2011/04/15 18:23:19 Do you even still need this function? I was think
msw 2011/04/15 19:19:57 According to James, it's necessary, although I'm s
23 23
24 }; 24 };
25 25
26 } // namespace internal 26 } // namespace internal
27 } // namespace views 27 } // namespace views
28 28
29 #endif // VIEWS_IME_INPUT_METHOD_DELEGATE_H_ 29 #endif // VIEWS_IME_INPUT_METHOD_DELEGATE_H_
OLDNEW
« no previous file with comments | « views/ime/input_method.h ('k') | views/ime/input_method_gtk.h » ('j') | views/widget/widget.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698