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

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

Issue 174013009: Add end to end test for Media galleries scan API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix mock Created 6 years, 10 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 // was added. 71 // was added.
72 bool AddOrUpdateScanResult(const MediaGalleryPrefInfo& gallery, 72 bool AddOrUpdateScanResult(const MediaGalleryPrefInfo& gallery,
73 bool selected, 73 bool selected,
74 views::View* container, 74 views::View* container,
75 int trailing_vertical_space); 75 int trailing_vertical_space);
76 76
77 void ShowContextMenu(const gfx::Point& point, 77 void ShowContextMenu(const gfx::Point& point,
78 ui::MenuSourceType source_type, 78 ui::MenuSourceType source_type,
79 MediaGalleryPrefId id); 79 MediaGalleryPrefId id);
80 80
81 // MediaGalleriesScanResultDialog implementation:
82 virtual void AcceptDialogForTesting() OVERRIDE;
83
81 MediaGalleriesScanResultDialogController* controller_; 84 MediaGalleriesScanResultDialogController* controller_;
82 85
83 // The containing window (a weak pointer). 86 // The containing window (a weak pointer).
84 views::Widget* window_; 87 views::Widget* window_;
85 88
86 // The contents of the dialog. Owned by |window_|'s RootView. 89 // The contents of the dialog. Owned by |window_|'s RootView.
87 views::View* contents_; 90 views::View* contents_;
88 91
89 // A map from media gallery ID to the view elements for each gallery. 92 // A map from media gallery ID to the view elements for each gallery.
90 GalleryViewMap gallery_view_map_; 93 GalleryViewMap gallery_view_map_;
91 94
92 // True if the user has pressed accept. 95 // True if the user has pressed accept.
93 bool accepted_; 96 bool accepted_;
94 97
95 scoped_ptr<views::MenuRunner> context_menu_runner_; 98 scoped_ptr<views::MenuRunner> context_menu_runner_;
96 99
97 DISALLOW_COPY_AND_ASSIGN(MediaGalleriesScanResultDialogViews); 100 DISALLOW_COPY_AND_ASSIGN(MediaGalleriesScanResultDialogViews);
98 }; 101 };
99 102
100 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_MEDIA_GALLERIES_SCAN_RESULT_DIALOG _VIEWS_H_ 103 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_MEDIA_GALLERIES_SCAN_RESULT_DIALOG _VIEWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698