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

Side by Side Diff: chrome/browser/ui/views/select_file_dialog_extension.h

Issue 10908262: [cros] disable GDrive option on certain file pickers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: invert default in file manager Created 8 years, 3 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_UI_VIEWS_SELECT_FILE_DIALOG_EXTENSION_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_SELECT_FILE_DIALOG_EXTENSION_H_
6 #define CHROME_BROWSER_UI_VIEWS_SELECT_FILE_DIALOG_EXTENSION_H_ 6 #define CHROME_BROWSER_UI_VIEWS_SELECT_FILE_DIALOG_EXTENSION_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 // SelectFileDialog implementation. 60 // SelectFileDialog implementation.
61 virtual void SelectFileImpl(Type type, 61 virtual void SelectFileImpl(Type type,
62 const string16& title, 62 const string16& title,
63 const FilePath& default_path, 63 const FilePath& default_path,
64 const FileTypeInfo* file_types, 64 const FileTypeInfo* file_types,
65 int file_type_index, 65 int file_type_index,
66 const FilePath::StringType& default_extension, 66 const FilePath::StringType& default_extension,
67 gfx::NativeWindow owning_window, 67 gfx::NativeWindow owning_window,
68 void* params) OVERRIDE; 68 void* params) OVERRIDE;
69 69
70
71 private: 70 private:
72 friend class SelectFileDialogExtensionBrowserTest; 71 friend class SelectFileDialogExtensionBrowserTest;
73 friend class SelectFileDialogExtensionTest; 72 friend class SelectFileDialogExtensionTest;
74 73
75 // Object is ref-counted, use Create(). 74 // Object is ref-counted, use Create().
76 explicit SelectFileDialogExtension(SelectFileDialog::Listener* listener, 75 explicit SelectFileDialogExtension(SelectFileDialog::Listener* listener,
77 ui::SelectFilePolicy* policy); 76 ui::SelectFilePolicy* policy);
78 virtual ~SelectFileDialogExtension(); 77 virtual ~SelectFileDialogExtension();
79 78
80 // Invokes the appropriate file selection callback on our listener. 79 // Invokes the appropriate file selection callback on our listener.
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 }; 112 };
114 SelectionType selection_type_; 113 SelectionType selection_type_;
115 std::vector<ui::SelectedFileInfo> selection_files_; 114 std::vector<ui::SelectedFileInfo> selection_files_;
116 int selection_index_; 115 int selection_index_;
117 void* params_; 116 void* params_;
118 117
119 DISALLOW_COPY_AND_ASSIGN(SelectFileDialogExtension); 118 DISALLOW_COPY_AND_ASSIGN(SelectFileDialogExtension);
120 }; 119 };
121 120
122 #endif // CHROME_BROWSER_UI_VIEWS_SELECT_FILE_DIALOG_EXTENSION_H_ 121 #endif // CHROME_BROWSER_UI_VIEWS_SELECT_FILE_DIALOG_EXTENSION_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/libgtk2ui/select_file_dialog_impl_gtk2.cc ('k') | chrome/browser/ui/views/select_file_dialog_extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698