| 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 "chrome/browser/ui/gtk/fullscreen_exit_bubble_gtk.h" | 5 #include "chrome/browser/ui/gtk/fullscreen_exit_bubble_gtk.h" |
| 6 | 6 |
| 7 #include "chrome/browser/ui/gtk/gtk_chrome_link_button.h" | 7 #include "chrome/browser/ui/gtk/gtk_chrome_link_button.h" |
| 8 #include "chrome/browser/ui/gtk/gtk_floating_container.h" | |
| 9 #include "chrome/browser/ui/gtk/gtk_util.h" | 8 #include "chrome/browser/ui/gtk/gtk_util.h" |
| 10 #include "chrome/browser/ui/gtk/rounded_window.h" | 9 #include "chrome/browser/ui/gtk/rounded_window.h" |
| 11 #include "grit/generated_resources.h" | 10 #include "grit/generated_resources.h" |
| 12 #include "grit/ui_strings.h" | 11 #include "grit/ui_strings.h" |
| 12 #include "ui/base/gtk/gtk_floating_container.h" |
| 13 #include "ui/base/l10n/l10n_util.h" | 13 #include "ui/base/l10n/l10n_util.h" |
| 14 | 14 |
| 15 FullscreenExitBubbleGtk::FullscreenExitBubbleGtk( | 15 FullscreenExitBubbleGtk::FullscreenExitBubbleGtk( |
| 16 GtkFloatingContainer* container, | 16 GtkFloatingContainer* container, |
| 17 CommandUpdater::CommandUpdaterDelegate* delegate) | 17 CommandUpdater::CommandUpdaterDelegate* delegate) |
| 18 : FullscreenExitBubble(delegate), | 18 : FullscreenExitBubble(delegate), |
| 19 container_(container) { | 19 container_(container) { |
| 20 InitWidgets(); | 20 InitWidgets(); |
| 21 StartWatchingMouse(); | 21 StartWatchingMouse(); |
| 22 } | 22 } |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 | 130 |
| 131 g_value_set_int(&value, 0); | 131 g_value_set_int(&value, 0); |
| 132 gtk_container_child_set_property(GTK_CONTAINER(floating_container), | 132 gtk_container_child_set_property(GTK_CONTAINER(floating_container), |
| 133 widget(), "y", &value); | 133 widget(), "y", &value); |
| 134 g_value_unset(&value); | 134 g_value_unset(&value); |
| 135 } | 135 } |
| 136 | 136 |
| 137 void FullscreenExitBubbleGtk::OnLinkClicked(GtkWidget* link) { | 137 void FullscreenExitBubbleGtk::OnLinkClicked(GtkWidget* link) { |
| 138 ToggleFullscreen(); | 138 ToggleFullscreen(); |
| 139 } | 139 } |
| OLD | NEW |