OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/widget/widget_gtk.h" | 5 #include "views/widget/widget_gtk.h" |
6 | 6 |
7 #include "app/drag_drop_types.h" | 7 #include "app/drag_drop_types.h" |
8 #include "app/gfx/path.h" | 8 #include "app/gfx/path.h" |
9 #include "app/os_exchange_data.h" | 9 #include "app/os_exchange_data.h" |
10 #include "app/os_exchange_data_provider_gtk.h" | 10 #include "app/os_exchange_data_provider_gtk.h" |
(...skipping 682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
693 } | 693 } |
694 | 694 |
695 gboolean WidgetGtk::OnLeaveNotify(GtkWidget* widget, GdkEventCrossing* event) { | 695 gboolean WidgetGtk::OnLeaveNotify(GtkWidget* widget, GdkEventCrossing* event) { |
696 last_mouse_event_was_move_ = false; | 696 last_mouse_event_was_move_ = false; |
697 if (!has_capture_ && !is_mouse_down_) | 697 if (!has_capture_ && !is_mouse_down_) |
698 root_view_->ProcessOnMouseExited(); | 698 root_view_->ProcessOnMouseExited(); |
699 return false; | 699 return false; |
700 } | 700 } |
701 | 701 |
702 gboolean WidgetGtk::OnKeyPress(GtkWidget* widget, GdkEventKey* event) { | 702 gboolean WidgetGtk::OnKeyPress(GtkWidget* widget, GdkEventKey* event) { |
703 KeyEvent key_event(event, false); | 703 KeyEvent key_event(event); |
704 return root_view_->ProcessKeyEvent(key_event); | 704 return root_view_->ProcessKeyEvent(key_event); |
705 } | 705 } |
706 | 706 |
707 gboolean WidgetGtk::OnKeyRelease(GtkWidget* widget, GdkEventKey* event) { | 707 gboolean WidgetGtk::OnKeyRelease(GtkWidget* widget, GdkEventKey* event) { |
708 KeyEvent key_event(event, false); | 708 KeyEvent key_event(event); |
709 return root_view_->ProcessKeyEvent(key_event); | 709 return root_view_->ProcessKeyEvent(key_event); |
710 } | 710 } |
711 | 711 |
712 gboolean WidgetGtk::OnQueryTooltip(gint x, | 712 gboolean WidgetGtk::OnQueryTooltip(gint x, |
713 gint y, | 713 gint y, |
714 gboolean keyboard_mode, | 714 gboolean keyboard_mode, |
715 GtkTooltip* tooltip) { | 715 GtkTooltip* tooltip) { |
716 return tooltip_manager_->ShowTooltip(x, y, keyboard_mode, tooltip); | 716 return tooltip_manager_->ShowTooltip(x, y, keyboard_mode, tooltip); |
717 } | 717 } |
718 | 718 |
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1117 | 1117 |
1118 // static | 1118 // static |
1119 Widget* Widget::CreateTransparentPopupWidget(bool delete_on_destroy) { | 1119 Widget* Widget::CreateTransparentPopupWidget(bool delete_on_destroy) { |
1120 WidgetGtk* popup = new WidgetGtk(WidgetGtk::TYPE_POPUP); | 1120 WidgetGtk* popup = new WidgetGtk(WidgetGtk::TYPE_POPUP); |
1121 popup->set_delete_on_destroy(delete_on_destroy); | 1121 popup->set_delete_on_destroy(delete_on_destroy); |
1122 popup->MakeTransparent(); | 1122 popup->MakeTransparent(); |
1123 return popup; | 1123 return popup; |
1124 } | 1124 } |
1125 | 1125 |
1126 } // namespace views | 1126 } // namespace views |
OLD | NEW |