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

Side by Side Diff: ui/base/linux_ui.h

Issue 10829021: Use current gtk dialogs in linux_aura. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make gtk window transient to aura window Created 8 years, 4 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 UI_BASE_LINUX_UI_H_ 5 #ifndef UI_BASE_LINUX_UI_H_
6 #define UI_BASE_LINUX_UI_H_ 6 #define UI_BASE_LINUX_UI_H_
7 7
8 #include "ui/base/dialogs/select_file_dialog.h"
9 #include "ui/base/dialogs/select_file_policy.h"
Daniel Erat 2012/07/27 17:21:56 nit: just forward-declare SelectFilePolicy in the
8 #include "ui/base/ui_export.h" 10 #include "ui/base/ui_export.h"
9 #include "third_party/skia/include/core/SkColor.h" 11 #include "third_party/skia/include/core/SkColor.h"
10 12
11 // The main entrypoint into Linux toolkit specific code. GTK code should only 13 // The main entrypoint into Linux toolkit specific code. GTK code should only
12 // be executed behind this interface. 14 // be executed behind this interface.
13 15
14 namespace gfx { 16 namespace gfx {
15 class Image; 17 class Image;
16 } 18 }
17 19
(...skipping 17 matching lines...) Expand all
35 // environment. 37 // environment.
36 // 38 //
37 // Can return NULL, in case no toolkit has been set. (For example, if we're 39 // Can return NULL, in case no toolkit has been set. (For example, if we're
38 // running with the "--ash" flag.) 40 // running with the "--ash" flag.)
39 static const LinuxUI* instance(); 41 static const LinuxUI* instance();
40 42
41 // Returns an themed image per theme_provider.h 43 // Returns an themed image per theme_provider.h
42 virtual bool UseNativeTheme() const = 0; 44 virtual bool UseNativeTheme() const = 0;
43 virtual gfx::Image* GetThemeImageNamed(int id) const = 0; 45 virtual gfx::Image* GetThemeImageNamed(int id) const = 0;
44 virtual bool GetColor(int id, SkColor* color) const = 0; 46 virtual bool GetColor(int id, SkColor* color) const = 0;
47
48 // Returns a native file selection dialog.
49 virtual SelectFileDialog* CreateSelectFileDialog(
50 SelectFileDialog::Listener* listener,
51 SelectFilePolicy* policy) const = 0;
45 }; 52 };
46 53
47 } // namespace ui 54 } // namespace ui
48 55
49 #endif // UI_BASE_LINUX_UI_H_ 56 #endif // UI_BASE_LINUX_UI_H_
OLDNEW
« ui/base/dialogs/select_file_dialog.cc ('K') | « ui/base/dialogs/select_file_dialog.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698