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

Side by Side Diff: chrome/browser/ui/views/webshare/webshare_target_picker_view.h

Issue 2714053003: Fix GCC build for target 'all' (Closed)
Patch Set: #if defined(__GNUC__) Created 3 years, 9 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
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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_WEBSHARE_WEBSHARE_TARGET_PICKER_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_WEBSHARE_WEBSHARE_TARGET_PICKER_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_WEBSHARE_WEBSHARE_TARGET_PICKER_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_WEBSHARE_WEBSHARE_TARGET_PICKER_VIEW_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/strings/string16.h" 12 #include "base/strings/string16.h"
13 #include "chrome/browser/ui/browser_dialogs.h" 13 #include "chrome/browser/ui/browser_dialogs.h"
14 #include "ui/base/ui_base_types.h" 14 #include "ui/base/ui_base_types.h"
15 #include "ui/views/controls/table/table_view_observer.h" 15 #include "ui/views/controls/table/table_view_observer.h"
16 #include "ui/views/window/dialog_delegate.h" 16 #include "ui/views/window/dialog_delegate.h"
17 17
18 class GURL; 18 class GURL;
19 class TargetPickerTableModel; 19 class TargetPickerTableModel;
20 class WebShareTargetPickerViewTest;
20 21
21 namespace views { 22 namespace views {
22 class TableView; 23 class TableView;
23 } 24 }
24 25
25 namespace {
26 class WebShareTargetPickerViewTest;
27 }
28
29 // Dialog that presents the user with a list of share target apps. Allows the 26 // Dialog that presents the user with a list of share target apps. Allows the
30 // user to pick one target to be opened and have data passed to it. 27 // user to pick one target to be opened and have data passed to it.
31 // 28 //
32 // NOTE: This dialog has *not* been UI-reviewed, and is being used by an 29 // NOTE: This dialog has *not* been UI-reviewed, and is being used by an
33 // in-development feature (Web Share) behind a runtime flag. It should not be 30 // in-development feature (Web Share) behind a runtime flag. It should not be
34 // used by any released code until going through UI review. 31 // used by any released code until going through UI review.
35 class WebShareTargetPickerView : public views::DialogDelegateView, 32 class WebShareTargetPickerView : public views::DialogDelegateView,
36 public views::TableViewObserver { 33 public views::TableViewObserver {
37 public: 34 public:
38 // |targets| is a list of app title and manifest URL pairs that will be shown 35 // |targets| is a list of app title and manifest URL pairs that will be shown
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 67
71 const std::vector<std::pair<base::string16, GURL>> targets_; 68 const std::vector<std::pair<base::string16, GURL>> targets_;
72 std::unique_ptr<TargetPickerTableModel> table_model_; 69 std::unique_ptr<TargetPickerTableModel> table_model_;
73 70
74 base::Callback<void(base::Optional<std::string>)> close_callback_; 71 base::Callback<void(base::Optional<std::string>)> close_callback_;
75 72
76 DISALLOW_COPY_AND_ASSIGN(WebShareTargetPickerView); 73 DISALLOW_COPY_AND_ASSIGN(WebShareTargetPickerView);
77 }; 74 };
78 75
79 #endif // CHROME_BROWSER_UI_VIEWS_WEBSHARE_WEBSHARE_TARGET_PICKER_VIEW_H_ 76 #endif // CHROME_BROWSER_UI_VIEWS_WEBSHARE_WEBSHARE_TARGET_PICKER_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/test/test_browser_dialog.h ('k') | chrome/browser/ui/views/webshare/webshare_target_picker_view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698