| 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 #ifndef CHROME_BROWSER_UI_GTK_EXTENSIONS_MEDIA_GALLERIES_DIALOG_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_EXTENSIONS_MEDIA_GALLERIES_DIALOG_GTK_H_ |
| 6 #define CHROME_BROWSER_UI_GTK_EXTENSIONS_MEDIA_GALLERIES_DIALOG_GTK_H_ | 6 #define CHROME_BROWSER_UI_GTK_EXTENSIONS_MEDIA_GALLERIES_DIALOG_GTK_H_ |
| 7 | 7 |
| 8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| 11 | 11 |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/gtest_prod_util.h" | 13 #include "base/gtest_prod_util.h" |
| 14 #include "chrome/browser/media_galleries/media_galleries_dialog_controller.h" | 14 #include "chrome/browser/media_galleries/media_galleries_dialog_controller.h" |
| 15 #include "chrome/browser/ui/gtk/constrained_window_gtk.h" | 15 #include "chrome/browser/ui/gtk/constrained_window_gtk.h" |
| 16 #include "ui/base/gtk/gtk_signal.h" | 16 #include "ui/base/gtk/gtk_signal.h" |
| 17 #include "ui/base/gtk/scoped_gobject.h" | 17 #include "ui/base/gtk/scoped_gobject.h" |
| 18 | 18 |
| 19 namespace chrome { | |
| 20 | |
| 21 class MediaGalleriesDialogController; | 19 class MediaGalleriesDialogController; |
| 22 class MediaGalleriesDialogTest; | 20 class MediaGalleriesDialogTest; |
| 23 | 21 |
| 24 // The media galleries configuration view for Gtk. It will immediately show | 22 // The media galleries configuration view for Gtk. It will immediately show |
| 25 // upon construction. | 23 // upon construction. |
| 26 class MediaGalleriesDialogGtk : public MediaGalleriesDialog { | 24 class MediaGalleriesDialogGtk : public MediaGalleriesDialog { |
| 27 public: | 25 public: |
| 28 explicit MediaGalleriesDialogGtk(MediaGalleriesDialogController* controller); | 26 explicit MediaGalleriesDialogGtk(MediaGalleriesDialogController* controller); |
| 29 virtual ~MediaGalleriesDialogGtk(); | 27 virtual ~MediaGalleriesDialogGtk(); |
| 30 | 28 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 // A map from MediaGalleryPrefInfo struct (owned by controller) to the | 69 // A map from MediaGalleryPrefInfo struct (owned by controller) to the |
| 72 // GtkCheckButton that controls it. | 70 // GtkCheckButton that controls it. |
| 73 CheckboxMap checkbox_map_; | 71 CheckboxMap checkbox_map_; |
| 74 | 72 |
| 75 // True if the user has pressed accept. | 73 // True if the user has pressed accept. |
| 76 bool accepted_; | 74 bool accepted_; |
| 77 | 75 |
| 78 DISALLOW_COPY_AND_ASSIGN(MediaGalleriesDialogGtk); | 76 DISALLOW_COPY_AND_ASSIGN(MediaGalleriesDialogGtk); |
| 79 }; | 77 }; |
| 80 | 78 |
| 81 } // namespace chrome | |
| 82 | |
| 83 #endif // CHROME_BROWSER_UI_GTK_EXTENSIONS_MEDIA_GALLERIES_DIALOG_GTK_H_ | 79 #endif // CHROME_BROWSER_UI_GTK_EXTENSIONS_MEDIA_GALLERIES_DIALOG_GTK_H_ |
| OLD | NEW |