Mailbox support for texture layers.
[chromium-blink-merge.git] / ui / base / dialogs / select_file_policy.h
blob63e878156194314f68b57cfac9d5b5865c9b872f
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
3 // found in the LICENSE file.
5 #ifndef UI_BASE_DIALOGS_SELECT_FILE_POLICY_H_
6 #define UI_BASE_DIALOGS_SELECT_FILE_POLICY_H_
8 #include "ui/base/ui_export.h"
10 namespace ui {
12 // An optional policy class that provides decisions on whether to allow showing
13 // a native file dialog. Some ports need this.
14 class UI_EXPORT SelectFilePolicy {
15 public:
16 virtual ~SelectFilePolicy();
18 // Returns true if the current policy allows for file selection dialogs.
19 virtual bool CanOpenSelectFileDialog() = 0;
21 // Called from the SelectFileDialog when we've denied a request.
22 virtual void SelectFileDenied() = 0;
25 } // namespace ui
27 #endif // UI_BASE_DIALOGS_SELECT_FILE_POLICY_H_