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

Side by Side Diff: chrome/browser/ui/gtk/dialogs_common.h

Issue 7885002: Added support for KDE file dialogs. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // This file implements commond select dialog functionality between GTK and KDE. 5 // This file implements commond select dialog functionality between GTK and KDE.
6 6
7 #ifndef CHROME_BROWSER_UI_GTK_DIALOGS_COMMON_H_ 7 #ifndef CHROME_BROWSER_UI_GTK_DIALOGS_COMMON_H_
8 #define CHROME_BROWSER_UI_GTK_DIALOGS_COMMON_H_ 8 #define CHROME_BROWSER_UI_GTK_DIALOGS_COMMON_H_
9 #pragma once 9 #pragma once
10 10
11 #include <set> 11 #include <set>
12 #include <string> 12 #include <string>
13 #include <vector> 13 #include <vector>
14 14
15 #include "base/memory/ref_counted.h"
Evan Martin 2011/09/15 20:53:38 Why is this needed now?
dfilimon 2011/09/15 21:58:14 Done.
15 #include "chrome/browser/ui/shell_dialogs.h" 16 #include "chrome/browser/ui/shell_dialogs.h"
16 17
17 // Shared implementation SelectFileDialog used by SelectFileDialogImplGTK 18 // Shared implementation SelectFileDialog used by SelectFileDialogImplGTK
18 class SelectFileDialogImpl : public SelectFileDialog { 19 class SelectFileDialogImpl : public SelectFileDialog {
19 public: 20 public:
20 // Factory method for creating a GTK-styled SelectFileDialogImpl 21 // Factory method for creating a GTK-styled SelectFileDialogImpl
21 static SelectFileDialogImpl* NewSelectFileDialogImplGTK(Listener* listener); 22 static SelectFileDialogImpl* NewSelectFileDialogImplGTK(Listener* listener);
23 // Factory method for creating a KDE-styled SelectFileDialogImpl
24 static SelectFileDialogImpl* NewSelectFileDialogImplKDE(Listener* listener);
22 25
23 // BaseShellDialog implementation. 26 // BaseShellDialog implementation.
24 virtual bool IsRunning(gfx::NativeWindow parent_window) const; 27 virtual bool IsRunning(gfx::NativeWindow parent_window) const;
25 virtual void ListenerDestroyed(); 28 virtual void ListenerDestroyed();
26 29
27 protected: 30 protected:
28 explicit SelectFileDialogImpl(Listener* listener); 31 explicit SelectFileDialogImpl(Listener* listener);
29 virtual ~SelectFileDialogImpl(); 32 virtual ~SelectFileDialogImpl();
30 33
31 // SelectFileDialog implementation. 34 // SelectFileDialog implementation.
(...skipping 28 matching lines...) Expand all
60 63
61 // These two variables track where the user last saved a file or opened a 64 // These two variables track where the user last saved a file or opened a
62 // file so that we can display future dialogs with the same starting path. 65 // file so that we can display future dialogs with the same starting path.
63 static FilePath* last_saved_path_; 66 static FilePath* last_saved_path_;
64 static FilePath* last_opened_path_; 67 static FilePath* last_opened_path_;
65 68
66 DISALLOW_COPY_AND_ASSIGN(SelectFileDialogImpl); 69 DISALLOW_COPY_AND_ASSIGN(SelectFileDialogImpl);
67 }; 70 };
68 71
69 #endif // CHROME_BROWSER_UI_GTK_DIALOGS_COMMON_H_ 72 #endif // CHROME_BROWSER_UI_GTK_DIALOGS_COMMON_H_
70
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/gtk/dialogs_common.cc » ('j') | chrome/browser/ui/gtk/dialogs_kde.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698