OLD | NEW |
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/controls/native_control_gtk.h" | 5 #include "views/controls/native_control_gtk.h" |
6 | 6 |
7 #include <gtk/gtk.h> | 7 #include <gtk/gtk.h> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "ui/base/accessibility/accessibility_types.h" | 10 #include "ui/base/accessibility/accessibility_types.h" |
11 #include "ui/views/focus/focus_manager.h" | 11 #include "ui/views/focus/focus_manager.h" |
12 #include "views/widget/widget.h" | 12 #include "ui/views/widget/widget.h" |
13 | 13 |
14 #if defined(TOUCH_UI) | 14 #if defined(TOUCH_UI) |
15 namespace { | 15 namespace { |
16 | 16 |
17 GdkEvent* MouseButtonEvent(const views::MouseEvent& mouseev, | 17 GdkEvent* MouseButtonEvent(const views::MouseEvent& mouseev, |
18 const views::NativeViewHost* source) { | 18 const views::NativeViewHost* source) { |
19 GdkEvent* event = NULL; | 19 GdkEvent* event = NULL; |
20 switch (mouseev.type()) { | 20 switch (mouseev.type()) { |
21 case ui::ET_MOUSE_PRESSED: | 21 case ui::ET_MOUSE_PRESSED: |
22 event = gdk_event_new(GDK_BUTTON_PRESS); | 22 event = gdk_event_new(GDK_BUTTON_PRESS); |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 // options page is only based on views. | 234 // options page is only based on views. |
235 // NOTREACHED(); | 235 // NOTREACHED(); |
236 NOTIMPLEMENTED(); | 236 NOTIMPLEMENTED(); |
237 return false; | 237 return false; |
238 } | 238 } |
239 focus_manager->SetFocusedView(control->focus_view()); | 239 focus_manager->SetFocusedView(control->focus_view()); |
240 return false; | 240 return false; |
241 } | 241 } |
242 | 242 |
243 } // namespace views | 243 } // namespace views |
OLD | NEW |