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

Side by Side Diff: chrome/browser/extensions/api/developer_private/entry_picker.h

Issue 958803004: [Extensions] Make chrome://extensions use developerPrivate for packing crxs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Win fix Created 5 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 (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_EXTENSIONS_API_DEVELOPER_PRIVATE_ENTRY_PICKER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_ENTRY_PICKER_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_ENTRY_PICKER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_ENTRY_PICKER_H_
7 7
8 #include "extensions/browser/extension_function.h" 8 #include "extensions/browser/extension_function.h"
9 #include "ui/shell_dialogs/select_file_dialog.h" 9 #include "ui/shell_dialogs/select_file_dialog.h"
10 10
(...skipping 24 matching lines...) Expand all
35 35
36 // Allow picker UI to be skipped in testing. 36 // Allow picker UI to be skipped in testing.
37 static void SkipPickerAndAlwaysSelectPathForTest(base::FilePath* path); 37 static void SkipPickerAndAlwaysSelectPathForTest(base::FilePath* path);
38 static void SkipPickerAndAlwaysCancelForTest(); 38 static void SkipPickerAndAlwaysCancelForTest();
39 static void StopSkippingPickerForTest(); 39 static void StopSkippingPickerForTest();
40 40
41 protected: 41 protected:
42 ~EntryPicker() override; 42 ~EntryPicker() override;
43 43
44 private: 44 private:
45 // ui::SelectFileDialog::Listener implementation. 45 // ui::SelectFileDialog::Listener:
46 void FileSelected(const base::FilePath& path, 46 void FileSelected(const base::FilePath& path,
47 int index, 47 int index,
48 void* params) override; 48 void* params) override;
49
50 void FileSelectionCanceled(void* params) override; 49 void FileSelectionCanceled(void* params) override;
50 void MultiFilesSelected(const std::vector<base::FilePath>& files,
51 void* params) override;
51 52
52 scoped_refptr<ui::SelectFileDialog> select_file_dialog_; 53 scoped_refptr<ui::SelectFileDialog> select_file_dialog_;
53 EntryPickerClient* client_; 54 EntryPickerClient* client_;
54 55
55 DISALLOW_COPY_AND_ASSIGN(EntryPicker); 56 DISALLOW_COPY_AND_ASSIGN(EntryPicker);
56 }; 57 };
57 58
58 } // namespace api 59 } // namespace api
59 60
60 } // namespace extensions 61 } // namespace extensions
61 62
62 #endif // CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_ENTRY_PICKER_H_ 63 #endif // CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_ENTRY_PICKER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698