summaryrefslogtreecommitdiffstats
path: root/views/widget/widget.cc
diff options
context:
space:
mode:
authormsw@chromium.org <msw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-22 23:33:30 +0000
committermsw@chromium.org <msw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-22 23:33:30 +0000
commit988ace29e4f1990cf22f7d9781049e0b14d3d5cd (patch)
tree24ed6ac562ae60944980dd45ea1394a0f5b01902 /views/widget/widget.cc
parent4776115ccf7fff738be23e7638248209ba00417c (diff)
downloadchromium_src-988ace29e4f1990cf22f7d9781049e0b14d3d5cd.zip
chromium_src-988ace29e4f1990cf22f7d9781049e0b14d3d5cd.tar.gz
chromium_src-988ace29e4f1990cf22f7d9781049e0b14d3d5cd.tar.bz2
Add NativeWidgetDelegate/Widget::OnKeyEvent post-IME handling.
Refactor XEvent code and InputMethodGtk::DispatchKeyEvent. Nix WidgetWin::GetFocusedViewRootView, rename RootView::OnKeyEvent. Cleanup headers and refactor code in extension_input_api.cc. BUG=72040 TEST=Key event handling in win/linux_views/touch; extension input API SendKeyboardEventInputFunction use. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=82713 Review URL: http://codereview.chromium.org/6823055 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82751 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/widget/widget.cc')
-rw-r--r--views/widget/widget.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/views/widget/widget.cc b/views/widget/widget.cc
index 924c448..aeaebad8 100644
--- a/views/widget/widget.cc
+++ b/views/widget/widget.cc
@@ -320,6 +320,10 @@ void Widget::OnNativeWidgetPaint(gfx::Canvas* canvas) {
RefreshCompositeTree();
}
+bool Widget::OnKeyEvent(const KeyEvent& event) {
+ return GetRootView()->OnKeyEvent(event);
+}
+
bool Widget::OnMouseEvent(const MouseEvent& event) {
switch (event.type()) {
case ui::ET_MOUSE_PRESSED: