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

Side by Side Diff: chrome/browser/ui/libgtk2ui/select_file_dialog_impl_kde.cc

Issue 681823004: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 #include <set> 5 #include <set>
6 6
7 #include <X11/Xlib.h> 7 #include <X11/Xlib.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 // Implementation of SelectFileDialog that shows a KDE common dialog for 45 // Implementation of SelectFileDialog that shows a KDE common dialog for
46 // choosing a file or folder. This acts as a modal dialog. 46 // choosing a file or folder. This acts as a modal dialog.
47 class SelectFileDialogImplKDE : public SelectFileDialogImpl { 47 class SelectFileDialogImplKDE : public SelectFileDialogImpl {
48 public: 48 public:
49 SelectFileDialogImplKDE(Listener* listener, 49 SelectFileDialogImplKDE(Listener* listener,
50 ui::SelectFilePolicy* policy, 50 ui::SelectFilePolicy* policy,
51 base::nix::DesktopEnvironment desktop); 51 base::nix::DesktopEnvironment desktop);
52 52
53 protected: 53 protected:
54 virtual ~SelectFileDialogImplKDE(); 54 ~SelectFileDialogImplKDE() override;
55 55
56 // BaseShellDialog implementation: 56 // BaseShellDialog implementation:
57 virtual bool IsRunning(gfx::NativeWindow parent_window) const override; 57 bool IsRunning(gfx::NativeWindow parent_window) const override;
58 58
59 // SelectFileDialog implementation. 59 // SelectFileDialog implementation.
60 // |params| is user data we pass back via the Listener interface. 60 // |params| is user data we pass back via the Listener interface.
61 virtual void SelectFileImpl( 61 void SelectFileImpl(Type type,
62 Type type, 62 const base::string16& title,
63 const base::string16& title, 63 const base::FilePath& default_path,
64 const base::FilePath& default_path, 64 const FileTypeInfo* file_types,
65 const FileTypeInfo* file_types, 65 int file_type_index,
66 int file_type_index, 66 const base::FilePath::StringType& default_extension,
67 const base::FilePath::StringType& default_extension, 67 gfx::NativeWindow owning_window,
68 gfx::NativeWindow owning_window, 68 void* params) override;
69 void* params) override;
70 69
71 private: 70 private:
72 virtual bool HasMultipleFileTypeChoicesImpl() override; 71 bool HasMultipleFileTypeChoicesImpl() override;
73 72
74 struct KDialogParams { 73 struct KDialogParams {
75 KDialogParams(const std::string& type, const std::string& title, 74 KDialogParams(const std::string& type, const std::string& title,
76 const base::FilePath& default_path, XID parent, 75 const base::FilePath& default_path, XID parent,
77 bool file_operation, bool multiple_selection, 76 bool file_operation, bool multiple_selection,
78 void* kdialog_params, 77 void* kdialog_params,
79 void (SelectFileDialogImplKDE::*callback)(XID, 78 void (SelectFileDialogImplKDE::*callback)(XID,
80 const std::string&, 79 const std::string&,
81 int, void*)) 80 int, void*))
82 : type(type), title(title), default_path(default_path), parent(parent), 81 : type(type), title(title), default_path(default_path), parent(parent),
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 } 499 }
501 500
502 if (filenames_fp.empty()) { 501 if (filenames_fp.empty()) {
503 FileNotSelected(params); 502 FileNotSelected(params);
504 return; 503 return;
505 } 504 }
506 MultiFilesSelected(filenames_fp, params); 505 MultiFilesSelected(filenames_fp, params);
507 } 506 }
508 507
509 } // namespace libgtk2ui 508 } // namespace libgtk2ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698