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

Side by Side Diff: views/focus/accelerator_handler_gtk.cc

Issue 3801011: touchui: Directly process key and mouse events. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: nit Created 10 years, 1 month 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 | « views/focus/accelerator_handler.h ('k') | views/focus/accelerator_handler_touch.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 (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #include "views/focus/accelerator_handler.h"
6
5 #include <gtk/gtk.h> 7 #include <gtk/gtk.h>
6 8
7 #include "views/accelerator.h" 9 #include "views/accelerator.h"
8 #include "views/focus/accelerator_handler.h"
9 #include "views/focus/focus_manager.h" 10 #include "views/focus/focus_manager.h"
10 #include "views/widget/widget_gtk.h" 11 #include "views/widget/widget_gtk.h"
11 12
12 namespace views { 13 namespace views {
13 14
14 AcceleratorHandler::AcceleratorHandler() {} 15 AcceleratorHandler::AcceleratorHandler() {}
15 16
16 bool AcceleratorHandler::Dispatch(GdkEvent* event) { 17 bool AcceleratorHandler::Dispatch(GdkEvent* event) {
17 // The logic for handling keyboard accelerators has been moved into 18 // The logic for handling keyboard accelerators has been moved into
18 // WidgetGtk::OnKeyEvent handler (views/widget/widget_gtk.cc). 19 // WidgetGtk::OnKeyEvent handler (views/widget/widget_gtk.cc).
19 gtk_main_do_event(event); 20 gtk_main_do_event(event);
20 return true; 21 return true;
21 } 22 }
22 23
23 } // namespace views 24 } // namespace views
OLDNEW
« no previous file with comments | « views/focus/accelerator_handler.h ('k') | views/focus/accelerator_handler_touch.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698