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

Side by Side Diff: ui/views/win/hwnd_message_handler_delegate.h

Issue 1236923003: Makes DesktopWindowTreeHostXxx to dispatch key event to InputMethod. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_ 5 #ifndef UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_
6 #define UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_ 6 #define UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_
7 7
8 #include "ui/views/views_export.h" 8 #include "ui/views/views_export.h"
9 9
10 namespace gfx { 10 namespace gfx {
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 // Called when focus shifted to this HWND from |last_focused_window|. 159 // Called when focus shifted to this HWND from |last_focused_window|.
160 virtual void HandleNativeFocus(HWND last_focused_window) = 0; 160 virtual void HandleNativeFocus(HWND last_focused_window) = 0;
161 161
162 // Called when focus shifted from the HWND to a different window. 162 // Called when focus shifted from the HWND to a different window.
163 virtual void HandleNativeBlur(HWND focused_window) = 0; 163 virtual void HandleNativeBlur(HWND focused_window) = 0;
164 164
165 // Called when a mouse event is received. Returns true if the event was 165 // Called when a mouse event is received. Returns true if the event was
166 // handled by the delegate. 166 // handled by the delegate.
167 virtual bool HandleMouseEvent(const ui::MouseEvent& event) = 0; 167 virtual bool HandleMouseEvent(const ui::MouseEvent& event) = 0;
168 168
169 // Called when a translated key event is received (i.e. post IME translation.)
170 // Returns true if the event was handled by the delegate.
171 virtual bool HandleKeyEvent(const ui::KeyEvent& event) = 0;
172
173 // Called when an untranslated key event is received (i.e. pre-IME 169 // Called when an untranslated key event is received (i.e. pre-IME
174 // translation). Returns true if the event was sent to the input method. 170 // translation).
175 virtual bool HandleUntranslatedKeyEvent(const ui::KeyEvent& event) = 0; 171 virtual void HandleKeyEvent(ui::KeyEvent* event) = 0;
176 172
177 // Called when a touch event is received. 173 // Called when a touch event is received.
178 virtual void HandleTouchEvent(const ui::TouchEvent& event) = 0; 174 virtual void HandleTouchEvent(const ui::TouchEvent& event) = 0;
179 175
180 // Called when an IME message needs to be processed by the delegate. Returns 176 // Called when an IME message needs to be processed by the delegate. Returns
181 // true if the event was handled and no default processing should be 177 // true if the event was handled and no default processing should be
182 // performed. 178 // performed.
183 virtual bool HandleIMEMessage(UINT message, 179 virtual bool HandleIMEMessage(UINT message,
184 WPARAM w_param, 180 WPARAM w_param,
185 LPARAM l_param, 181 LPARAM l_param,
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 // Called when the window size is about to change. 220 // Called when the window size is about to change.
225 virtual void HandleWindowSizeChanging() = 0; 221 virtual void HandleWindowSizeChanging() = 0;
226 222
227 protected: 223 protected:
228 virtual ~HWNDMessageHandlerDelegate() {} 224 virtual ~HWNDMessageHandlerDelegate() {}
229 }; 225 };
230 226
231 } // namespace views 227 } // namespace views
232 228
233 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_ 229 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_
OLDNEW
« ui/views/controls/textfield/textfield_unittest.cc ('K') | « ui/views/win/hwnd_message_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698