| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
| 8 #include "chrome/browser/ui/browser.h" | 8 #include "chrome/browser/ui/browser.h" |
| 9 #include "chrome/browser/ui/gtk/gtk_chrome_link_button.h" | 9 #include "chrome/browser/ui/gtk/gtk_chrome_link_button.h" |
| 10 #include "chrome/browser/ui/gtk/gtk_util.h" | 10 #include "chrome/browser/ui/gtk/gtk_util.h" |
| 11 #include "chrome/browser/ui/gtk/rounded_window.h" | 11 #include "chrome/browser/ui/gtk/rounded_window.h" |
| 12 #include "content/browser/renderer_host/render_widget_host_view.h" | 12 #include "content/public/browser/render_widget_host_view.h" |
| 13 #include "grit/generated_resources.h" | 13 #include "grit/generated_resources.h" |
| 14 #include "grit/ui_strings.h" | 14 #include "grit/ui_strings.h" |
| 15 #include "ui/base/gtk/gtk_floating_container.h" | 15 #include "ui/base/gtk/gtk_floating_container.h" |
| 16 #include "ui/base/gtk/gtk_hig_constants.h" | 16 #include "ui/base/gtk/gtk_hig_constants.h" |
| 17 #include "ui/base/l10n/l10n_util.h" | 17 #include "ui/base/l10n/l10n_util.h" |
| 18 | 18 |
| 19 namespace { | 19 namespace { |
| 20 const GdkColor kFrameColor = GDK_COLOR_RGB(0x63, 0x63, 0x63); | 20 const GdkColor kFrameColor = GDK_COLOR_RGB(0x63, 0x63, 0x63); |
| 21 const int kMiddlePaddingPx = 30; | 21 const int kMiddlePaddingPx = 30; |
| 22 } // namespace | 22 } // namespace |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 ToggleFullscreen(); | 237 ToggleFullscreen(); |
| 238 } | 238 } |
| 239 | 239 |
| 240 void FullscreenExitBubbleGtk::OnAllowClicked(GtkWidget* button) { | 240 void FullscreenExitBubbleGtk::OnAllowClicked(GtkWidget* button) { |
| 241 Accept(); | 241 Accept(); |
| 242 UpdateContent(url_, bubble_type_); | 242 UpdateContent(url_, bubble_type_); |
| 243 } | 243 } |
| 244 void FullscreenExitBubbleGtk::OnDenyClicked(GtkWidget* button) { | 244 void FullscreenExitBubbleGtk::OnDenyClicked(GtkWidget* button) { |
| 245 Cancel(); | 245 Cancel(); |
| 246 } | 246 } |
| OLD | NEW |