1 // Copyright 2019 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.
4 
5 #ifndef CHROME_BROWSER_UI_VIEWS_NATIVE_FILE_SYSTEM_NATIVE_FILE_SYSTEM_UI_HELPERS_H_
6 #define CHROME_BROWSER_UI_VIEWS_NATIVE_FILE_SYSTEM_NATIVE_FILE_SYSTEM_UI_HELPERS_H_
7 
8 #include <memory>
9 
10 namespace base {
11 class FilePath;
12 }
13 
14 namespace url {
15 class Origin;
16 }
17 
18 namespace views {
19 class View;
20 }
21 
22 namespace native_file_system_ui_helper {
23 
24 // Creates and returns a label where the place holder is replaced with |origin|.
25 // If |show_emphasis| is true, the origin is formatted as emphasized text.
26 std::unique_ptr<views::View> CreateOriginLabel(int message_id,
27                                                const url::Origin& origin,
28                                                int text_context,
29                                                bool show_emphasis);
30 
31 // Creates and returns a label where the place holders are replaced with
32 // |origin| and |path|. If |show_emphasis| is true, the origin and path are
33 // formatted as emphasized text.
34 std::unique_ptr<views::View> CreateOriginPathLabel(int message_id,
35                                                    const url::Origin& origin,
36                                                    const base::FilePath& path,
37                                                    int text_context,
38                                                    bool show_emphasis);
39 
40 }  // namespace native_file_system_ui_helper
41 
42 #endif  // CHROME_BROWSER_UI_VIEWS_NATIVE_FILE_SYSTEM_NATIVE_FILE_SYSTEM_UI_HELPERS_H_
43