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

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

Issue 8581003: views: Move ime and test directories to ui/views. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix linux Created 9 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 | 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 #include "views/focus/accelerator_handler.h" 5 #include "views/focus/accelerator_handler.h"
6 6
7 #include <bitset> 7 #include <bitset>
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 #include <X11/extensions/XInput2.h> 9 #include <X11/extensions/XInput2.h>
10 10
11 #include "ui/base/touch/touch_factory.h" 11 #include "ui/base/touch/touch_factory.h"
12 #include "ui/views/ime/input_method.h"
12 #include "views/events/event.h" 13 #include "views/events/event.h"
13 #include "views/focus/focus_manager.h" 14 #include "views/focus/focus_manager.h"
14 #include "views/ime/input_method.h"
15 #include "views/view.h" 15 #include "views/view.h"
16 #include "views/widget/native_widget.h" 16 #include "views/widget/native_widget.h"
17 17
18 namespace views { 18 namespace views {
19 19
20 namespace { 20 namespace {
21 21
22 Widget* FindWidgetForGdkWindow(GdkWindow* gdk_window) { 22 Widget* FindWidgetForGdkWindow(GdkWindow* gdk_window) {
23 gpointer data = NULL; 23 gpointer data = NULL;
24 gdk_window_get_user_data(gdk_window, &data); 24 gdk_window_get_user_data(gdk_window, &data);
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 AcceleratorHandler::AcceleratorHandler() {} 178 AcceleratorHandler::AcceleratorHandler() {}
179 179
180 base::MessagePumpDispatcher::DispatchStatus 180 base::MessagePumpDispatcher::DispatchStatus
181 AcceleratorHandler::Dispatch(XEvent* xev) { 181 AcceleratorHandler::Dispatch(XEvent* xev) {
182 return DispatchXEvent(xev) ? 182 return DispatchXEvent(xev) ?
183 base::MessagePumpDispatcher::EVENT_PROCESSED : 183 base::MessagePumpDispatcher::EVENT_PROCESSED :
184 base::MessagePumpDispatcher::EVENT_IGNORED; 184 base::MessagePumpDispatcher::EVENT_IGNORED;
185 } 185 }
186 186
187 } // namespace views 187 } // namespace views
OLDNEW
« no previous file with comments | « views/controls/textfield/textfield_views_model_unittest.cc ('k') | views/focus/focus_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698