OLD | NEW |
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/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 1414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1425 cairo_fill(cr); | 1425 cairo_fill(cr); |
1426 cairo_destroy(cr); | 1426 cairo_destroy(cr); |
1427 } | 1427 } |
1428 | 1428 |
1429 //////////////////////////////////////////////////////////////////////////////// | 1429 //////////////////////////////////////////////////////////////////////////////// |
1430 // Widget, public: | 1430 // Widget, public: |
1431 | 1431 |
1432 // static | 1432 // static |
1433 Widget* Widget::CreatePopupWidget(TransparencyParam transparent, | 1433 Widget* Widget::CreatePopupWidget(TransparencyParam transparent, |
1434 EventsParam accept_events, | 1434 EventsParam accept_events, |
1435 DeleteParam delete_on_destroy) { | 1435 DeleteParam delete_on_destroy, |
| 1436 MirroringParam mirror_in_rtl) { |
1436 WidgetGtk* popup = new WidgetGtk(WidgetGtk::TYPE_POPUP); | 1437 WidgetGtk* popup = new WidgetGtk(WidgetGtk::TYPE_POPUP); |
1437 popup->set_delete_on_destroy(delete_on_destroy == DeleteOnDestroy); | 1438 popup->set_delete_on_destroy(delete_on_destroy == DeleteOnDestroy); |
1438 if (transparent == Transparent) | 1439 if (transparent == Transparent) |
1439 popup->MakeTransparent(); | 1440 popup->MakeTransparent(); |
1440 if (accept_events == NotAcceptEvents) | 1441 if (accept_events == NotAcceptEvents) |
1441 popup->MakeIgnoreEvents(); | 1442 popup->MakeIgnoreEvents(); |
1442 return popup; | 1443 return popup; |
1443 } | 1444 } |
1444 | 1445 |
1445 // Callback from gtk_container_foreach. Locates the first root view of widget | 1446 // Callback from gtk_container_foreach. Locates the first root view of widget |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1529 GtkWindow* window = GTK_WINDOW(element->data); | 1530 GtkWindow* window = GTK_WINDOW(element->data); |
1530 DCHECK(window); | 1531 DCHECK(window); |
1531 RootView *root_view = FindRootView(window); | 1532 RootView *root_view = FindRootView(window); |
1532 if (root_view) | 1533 if (root_view) |
1533 root_view->NotifyLocaleChanged(); | 1534 root_view->NotifyLocaleChanged(); |
1534 } | 1535 } |
1535 g_list_free(window_list); | 1536 g_list_free(window_list); |
1536 } | 1537 } |
1537 | 1538 |
1538 } // namespace views | 1539 } // namespace views |
OLD | NEW |