| 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_VIEWS_EXTENSIONS_MEDIA_GALLERIES_DIALOG_VIEWS_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_EXTENSIONS_MEDIA_GALLERIES_DIALOG_VIEWS_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_MEDIA_GALLERIES_DIALOG_VIEWS_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_MEDIA_GALLERIES_DIALOG_VIEWS_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "chrome/browser/media_galleries/media_galleries_dialog_controller.h" | 11 #include "chrome/browser/media_galleries/media_galleries_dialog_controller.h" |
| 12 #include "ui/views/controls/button/button.h" | 12 #include "ui/views/controls/button/button.h" |
| 13 #include "ui/views/window/dialog_delegate.h" | 13 #include "ui/views/window/dialog_delegate.h" |
| 14 | 14 |
| 15 namespace views { | 15 namespace views { |
| 16 class Checkbox; | 16 class Checkbox; |
| 17 class LabelButton; | 17 class LabelButton; |
| 18 class Widget; | 18 class Widget; |
| 19 } | 19 } |
| 20 | 20 |
| 21 namespace chrome { | |
| 22 | |
| 23 // The media galleries configuration view for Views. It will immediately show | 21 // The media galleries configuration view for Views. It will immediately show |
| 24 // upon construction. | 22 // upon construction. |
| 25 class MediaGalleriesDialogViews : public MediaGalleriesDialog, | 23 class MediaGalleriesDialogViews : public MediaGalleriesDialog, |
| 26 public views::DialogDelegate, | 24 public views::DialogDelegate, |
| 27 public views::ButtonListener { | 25 public views::ButtonListener { |
| 28 public: | 26 public: |
| 29 explicit MediaGalleriesDialogViews( | 27 explicit MediaGalleriesDialogViews( |
| 30 MediaGalleriesDialogController* controller); | 28 MediaGalleriesDialogController* controller); |
| 31 virtual ~MediaGalleriesDialogViews(); | 29 virtual ~MediaGalleriesDialogViews(); |
| 32 | 30 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 // if no checkboxes are ticked. After there is any interaction, or some | 84 // if no checkboxes are ticked. After there is any interaction, or some |
| 87 // checkboxes start checked, this will be true. | 85 // checkboxes start checked, this will be true. |
| 88 bool confirm_available_; | 86 bool confirm_available_; |
| 89 | 87 |
| 90 // True if the user has pressed accept. | 88 // True if the user has pressed accept. |
| 91 bool accepted_; | 89 bool accepted_; |
| 92 | 90 |
| 93 DISALLOW_COPY_AND_ASSIGN(MediaGalleriesDialogViews); | 91 DISALLOW_COPY_AND_ASSIGN(MediaGalleriesDialogViews); |
| 94 }; | 92 }; |
| 95 | 93 |
| 96 } // namespace chrome | |
| 97 | |
| 98 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_MEDIA_GALLERIES_DIALOG_VIEWS_H_ | 94 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_MEDIA_GALLERIES_DIALOG_VIEWS_H_ |
| OLD | NEW |