| 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 #ifndef CHROME_BROWSER_WEBUI_FILEBROWSE_UI_H_ | 5 #ifndef CHROME_BROWSER_WEBUI_FILEBROWSE_UI_H_ |
| 6 #define CHROME_BROWSER_WEBUI_FILEBROWSE_UI_H_ | 6 #define CHROME_BROWSER_WEBUI_FILEBROWSE_UI_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "chrome/browser/dom_ui/chrome_url_data_manager.h" | |
| 12 #include "chrome/browser/dom_ui/html_dialog_ui.h" | |
| 13 #include "chrome/browser/history/history.h" | 11 #include "chrome/browser/history/history.h" |
| 12 #include "chrome/browser/webui/chrome_url_data_manager.h" |
| 13 #include "chrome/browser/webui/html_dialog_ui.h" |
| 14 #include "net/base/directory_lister.h" | 14 #include "net/base/directory_lister.h" |
| 15 | 15 |
| 16 class Browser; | 16 class Browser; |
| 17 class Profile; | 17 class Profile; |
| 18 | 18 |
| 19 class FileBrowseUI : public HtmlDialogUI { | 19 class FileBrowseUI : public HtmlDialogUI { |
| 20 public: | 20 public: |
| 21 static const int kPopupWidth; | 21 static const int kPopupWidth; |
| 22 static const int kPopupHeight; | 22 static const int kPopupHeight; |
| 23 static const int kSmallPopupWidth; | 23 static const int kSmallPopupWidth; |
| 24 static const int kSmallPopupHeight; | 24 static const int kSmallPopupHeight; |
| 25 | 25 |
| 26 explicit FileBrowseUI(TabContents* contents); | 26 explicit FileBrowseUI(TabContents* contents); |
| 27 | 27 |
| 28 static Browser* OpenPopup(Profile* profile, | 28 static Browser* OpenPopup(Profile* profile, |
| 29 const std::string& hashArgument, | 29 const std::string& hashArgument, |
| 30 int width, | 30 int width, |
| 31 int height); | 31 int height); |
| 32 static Browser* GetPopupForPath(const std::string& path, | 32 static Browser* GetPopupForPath(const std::string& path, |
| 33 Profile* profile); | 33 Profile* profile); |
| 34 | 34 |
| 35 private: | 35 private: |
| 36 DISALLOW_COPY_AND_ASSIGN(FileBrowseUI); | 36 DISALLOW_COPY_AND_ASSIGN(FileBrowseUI); |
| 37 }; | 37 }; |
| 38 | 38 |
| 39 #endif // CHROME_BROWSER_WEBUI_FILEBROWSE_UI_H_ | 39 #endif // CHROME_BROWSER_WEBUI_FILEBROWSE_UI_H_ |
| OLD | NEW |