| 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/extensions/media_galleries_dialog_gtk.h" | 5 #include "chrome/browser/ui/gtk/extensions/media_galleries_dialog_gtk.h" |
| 6 | 6 |
| 7 #include "base/auto_reset.h" | 7 #include "base/auto_reset.h" |
| 8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
| 9 #include "chrome/browser/media_gallery/media_galleries_preferences.h" | 9 #include "chrome/browser/media_gallery/media_galleries_preferences.h" |
| 10 #include "chrome/browser/ui/gtk/gtk_util.h" | 10 #include "chrome/browser/ui/gtk/gtk_util.h" |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 NOTREACHED(); | 147 NOTREACHED(); |
| 148 return; | 148 return; |
| 149 } | 149 } |
| 150 | 150 |
| 151 void MediaGalleriesDialogGtk::OnAddFolder(GtkWidget* widget) { | 151 void MediaGalleriesDialogGtk::OnAddFolder(GtkWidget* widget) { |
| 152 controller_->OnAddFolderClicked(); | 152 controller_->OnAddFolderClicked(); |
| 153 } | 153 } |
| 154 | 154 |
| 155 void MediaGalleriesDialogGtk::OnConfirm(GtkWidget* widget) { | 155 void MediaGalleriesDialogGtk::OnConfirm(GtkWidget* widget) { |
| 156 accepted_ = true; | 156 accepted_ = true; |
| 157 window_->CloseConstrainedWindow(); | 157 window_->CloseWebContentsModalDialog(); |
| 158 } | 158 } |
| 159 | 159 |
| 160 void MediaGalleriesDialogGtk::OnCancel(GtkWidget* widget) { | 160 void MediaGalleriesDialogGtk::OnCancel(GtkWidget* widget) { |
| 161 window_->CloseConstrainedWindow(); | 161 window_->CloseWebContentsModalDialog(); |
| 162 } | 162 } |
| 163 | 163 |
| 164 // MediaGalleriesDialogController ---------------------------------------------- | 164 // MediaGalleriesDialogController ---------------------------------------------- |
| 165 | 165 |
| 166 // static | 166 // static |
| 167 MediaGalleriesDialog* MediaGalleriesDialog::Create( | 167 MediaGalleriesDialog* MediaGalleriesDialog::Create( |
| 168 MediaGalleriesDialogController* controller) { | 168 MediaGalleriesDialogController* controller) { |
| 169 return new MediaGalleriesDialogGtk(controller); | 169 return new MediaGalleriesDialogGtk(controller); |
| 170 } | 170 } |
| 171 | 171 |
| 172 } // namespace chrome | 172 } // namespace chrome |
| OLD | NEW |