| 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/widget/widget_gtk.h" | 5 #include "views/widget/widget_gtk.h" |
| 6 | 6 |
| 7 #include <gdk/gdk.h> | 7 #include <gdk/gdk.h> |
| 8 #include <gdk/gdkx.h> | 8 #include <gdk/gdkx.h> |
| 9 #include <X11/extensions/shape.h> | 9 #include <X11/extensions/shape.h> |
| 10 | 10 |
| (...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 751 | 751 |
| 752 bool WidgetGtk::IsActive() const { | 752 bool WidgetGtk::IsActive() const { |
| 753 DCHECK(type_ != TYPE_CHILD); | 753 DCHECK(type_ != TYPE_CHILD); |
| 754 return is_active_; | 754 return is_active_; |
| 755 } | 755 } |
| 756 | 756 |
| 757 bool WidgetGtk::IsAccessibleWidget() const { | 757 bool WidgetGtk::IsAccessibleWidget() const { |
| 758 return false; | 758 return false; |
| 759 } | 759 } |
| 760 | 760 |
| 761 void WidgetGtk::GenerateMousePressedForView(View* view, | |
| 762 const gfx::Point& point) { | |
| 763 NOTIMPLEMENTED(); | |
| 764 } | |
| 765 | |
| 766 TooltipManager* WidgetGtk::GetTooltipManager() { | 761 TooltipManager* WidgetGtk::GetTooltipManager() { |
| 767 return tooltip_manager_.get(); | 762 return tooltip_manager_.get(); |
| 768 } | 763 } |
| 769 | 764 |
| 770 bool WidgetGtk::GetAccelerator(int cmd_id, ui::Accelerator* accelerator) { | 765 bool WidgetGtk::GetAccelerator(int cmd_id, ui::Accelerator* accelerator) { |
| 771 NOTIMPLEMENTED(); | 766 NOTIMPLEMENTED(); |
| 772 return false; | 767 return false; |
| 773 } | 768 } |
| 774 | 769 |
| 775 Window* WidgetGtk::GetWindow() { | 770 Window* WidgetGtk::GetWindow() { |
| (...skipping 882 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1658 GList *window_list = gtk_window_list_toplevels(); | 1653 GList *window_list = gtk_window_list_toplevels(); |
| 1659 for (GList* element = window_list; element; element = g_list_next(element)) { | 1654 for (GList* element = window_list; element; element = g_list_next(element)) { |
| 1660 Widget* widget = GetWidgetFromNativeWindow(GTK_WINDOW(element->data)); | 1655 Widget* widget = GetWidgetFromNativeWindow(GTK_WINDOW(element->data)); |
| 1661 if (widget) | 1656 if (widget) |
| 1662 widget->LocaleChanged(); | 1657 widget->LocaleChanged(); |
| 1663 } | 1658 } |
| 1664 g_list_free(window_list); | 1659 g_list_free(window_list); |
| 1665 } | 1660 } |
| 1666 | 1661 |
| 1667 } // namespace views | 1662 } // namespace views |
| OLD | NEW |