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

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

Issue 12086018: GTTF: Add missing virtual destructors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 7 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 (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 "chrome/browser/extensions/extension_function.h" 8 #include "chrome/browser/extensions/extension_function.h"
9 #include "ui/shell_dialogs/select_file_dialog.h" 9 #include "ui/shell_dialogs/select_file_dialog.h"
10 10
11 namespace content { 11 namespace content {
12 class WebContents; 12 class WebContents;
13 } 13 }
14 14
15 namespace extensions { 15 namespace extensions {
16 16
17 namespace api { 17 namespace api {
18 18
19 class EntryPickerClient { 19 class EntryPickerClient {
20 public: 20 public:
21 virtual void FileSelected(const FilePath& path) = 0; 21 virtual void FileSelected(const FilePath& path) = 0;
22 virtual void FileSelectionCanceled() = 0; 22 virtual void FileSelectionCanceled() = 0;
23
24 protected:
25 virtual ~EntryPickerClient() { }
23 }; 26 };
24 27
25 // Handles showing a dialog to the user to ask for the directory name. 28 // Handles showing a dialog to the user to ask for the directory name.
26 class EntryPicker : public ui::SelectFileDialog::Listener { 29 class EntryPicker : public ui::SelectFileDialog::Listener {
27 public: 30 public:
28 EntryPicker(EntryPickerClient* client, 31 EntryPicker(EntryPickerClient* client,
29 content::WebContents* web_contents, 32 content::WebContents* web_contents,
30 ui::SelectFileDialog::Type picker_type, 33 ui::SelectFileDialog::Type picker_type,
31 const FilePath& last_directory, 34 const FilePath& last_directory,
32 const string16& select_title); 35 const string16& select_title);
(...skipping 19 matching lines...) Expand all
52 EntryPickerClient* client_; 55 EntryPickerClient* client_;
53 56
54 DISALLOW_COPY_AND_ASSIGN(EntryPicker); 57 DISALLOW_COPY_AND_ASSIGN(EntryPicker);
55 }; 58 };
56 59
57 } // namespace api 60 } // namespace api
58 61
59 } // namespace extensions 62 } // namespace extensions
60 63
61 #endif // CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_ENTRY_PICKER_H_ 64 #endif // CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_ENTRY_PICKER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698