Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Side by Side Diff: chrome/browser/ui/views/extensions/media_galleries_scan_result_dialog_views.h

Issue 319013002: Reland Fix Views web-modal dialog widget creation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Revert MediaGalleriesScanResultDialogViews::AcceptDialogForTesting. Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_SCAN_RESULT_DIALOG_VI EWS_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_EXTENSIONS_MEDIA_GALLERIES_SCAN_RESULT_DIALOG_VI EWS_H_
6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_MEDIA_GALLERIES_SCAN_RESULT_DIALOG_VI EWS_H_ 6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_MEDIA_GALLERIES_SCAN_RESULT_DIALOG_VI EWS_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 74
75 void ShowContextMenu(const gfx::Point& point, 75 void ShowContextMenu(const gfx::Point& point,
76 ui::MenuSourceType source_type, 76 ui::MenuSourceType source_type,
77 MediaGalleryPrefId id); 77 MediaGalleryPrefId id);
78 78
79 // MediaGalleriesScanResultDialog implementation: 79 // MediaGalleriesScanResultDialog implementation:
80 virtual void AcceptDialogForTesting() OVERRIDE; 80 virtual void AcceptDialogForTesting() OVERRIDE;
81 81
82 MediaGalleriesScanResultDialogController* controller_; 82 MediaGalleriesScanResultDialogController* controller_;
83 83
84 // The containing window (a weak pointer). 84 // The contents of the dialog. Owned by the view hierarchy.
85 views::Widget* window_;
86
87 // The contents of the dialog. Owned by |window_|'s RootView.
88 views::View* contents_; 85 views::View* contents_;
89 86
90 // A map from media gallery ID to the view elements for each gallery. 87 // A map from media gallery ID to the view elements for each gallery.
91 GalleryViewMap gallery_view_map_; 88 GalleryViewMap gallery_view_map_;
92 89
93 // True if the user has pressed accept. 90 // True if the user has pressed accept.
94 bool accepted_; 91 bool accepted_;
95 92
96 scoped_ptr<views::MenuRunner> context_menu_runner_; 93 scoped_ptr<views::MenuRunner> context_menu_runner_;
97 94
98 DISALLOW_COPY_AND_ASSIGN(MediaGalleriesScanResultDialogViews); 95 DISALLOW_COPY_AND_ASSIGN(MediaGalleriesScanResultDialogViews);
99 }; 96 };
100 97
101 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_MEDIA_GALLERIES_SCAN_RESULT_DIALOG _VIEWS_H_ 98 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_MEDIA_GALLERIES_SCAN_RESULT_DIALOG _VIEWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698