OLD | NEW |
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 #include "chrome/browser/dom_ui/filebrowse_ui.h" | 5 #include "chrome/browser/dom_ui/filebrowse_ui.h" |
6 | 6 |
7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
8 #include "app/resource_bundle.h" | |
9 #include "base/callback.h" | 8 #include "base/callback.h" |
10 #include "base/command_line.h" | 9 #include "base/command_line.h" |
11 #include "base/file_util.h" | 10 #include "base/file_util.h" |
12 #include "base/logging.h" | 11 #include "base/logging.h" |
13 #include "base/message_loop.h" | 12 #include "base/message_loop.h" |
14 #include "base/path_service.h" | 13 #include "base/path_service.h" |
15 #include "base/singleton.h" | 14 #include "base/singleton.h" |
16 #include "base/string_piece.h" | 15 #include "base/string_piece.h" |
17 #include "base/string_util.h" | 16 #include "base/string_util.h" |
18 #include "base/threading/thread.h" | 17 #include "base/threading/thread.h" |
(...skipping 22 matching lines...) Expand all Loading... |
41 #include "chrome/common/jstemplate_builder.h" | 40 #include "chrome/common/jstemplate_builder.h" |
42 #include "chrome/common/net/url_fetcher.h" | 41 #include "chrome/common/net/url_fetcher.h" |
43 #include "chrome/common/time_format.h" | 42 #include "chrome/common/time_format.h" |
44 #include "chrome/common/url_constants.h" | 43 #include "chrome/common/url_constants.h" |
45 #include "grit/browser_resources.h" | 44 #include "grit/browser_resources.h" |
46 #include "grit/chromium_strings.h" | 45 #include "grit/chromium_strings.h" |
47 #include "grit/generated_resources.h" | 46 #include "grit/generated_resources.h" |
48 #include "grit/locale_settings.h" | 47 #include "grit/locale_settings.h" |
49 #include "net/base/escape.h" | 48 #include "net/base/escape.h" |
50 #include "net/url_request/url_request_file_job.h" | 49 #include "net/url_request/url_request_file_job.h" |
| 50 #include "ui/base/resource/resource_bundle.h" |
51 | 51 |
52 #if defined(OS_CHROMEOS) | 52 #if defined(OS_CHROMEOS) |
53 #include "chrome/browser/chromeos/cros/cros_library.h" | 53 #include "chrome/browser/chromeos/cros/cros_library.h" |
54 #include "chrome/browser/chromeos/cros/mount_library.h" | 54 #include "chrome/browser/chromeos/cros/mount_library.h" |
55 #include "chrome/browser/chromeos/login/user_manager.h" | 55 #include "chrome/browser/chromeos/login/user_manager.h" |
56 #endif | 56 #endif |
57 | 57 |
58 // Maximum number of search results to return in a given search. We should | 58 // Maximum number of search results to return in a given search. We should |
59 // eventually remove this. | 59 // eventually remove this. |
60 static const int kMaxSearchResults = 100; | 60 static const int kMaxSearchResults = 100; |
(...skipping 1157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1218 } | 1218 } |
1219 } | 1219 } |
1220 | 1220 |
1221 return NULL; | 1221 return NULL; |
1222 } | 1222 } |
1223 | 1223 |
1224 const int FileBrowseUI::kPopupWidth = 250; | 1224 const int FileBrowseUI::kPopupWidth = 250; |
1225 const int FileBrowseUI::kPopupHeight = 300; | 1225 const int FileBrowseUI::kPopupHeight = 300; |
1226 const int FileBrowseUI::kSmallPopupWidth = 250; | 1226 const int FileBrowseUI::kSmallPopupWidth = 250; |
1227 const int FileBrowseUI::kSmallPopupHeight = 50; | 1227 const int FileBrowseUI::kSmallPopupHeight = 50; |
OLD | NEW |