OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_DOM_UI_BUG_REPORT_UI_H_ | 5 #ifndef CHROME_BROWSER_DOM_UI_BUG_REPORT_UI_H_ |
6 #define CHROME_BROWSER_DOM_UI_BUG_REPORT_UI_H_ | 6 #define CHROME_BROWSER_DOM_UI_BUG_REPORT_UI_H_ |
7 | 7 |
8 #include "chrome/browser/dom_ui/html_dialog_ui.h" | 8 #include "chrome/browser/dom_ui/html_dialog_ui.h" |
| 9 #include "chrome/browser/ui/browser.h" |
| 10 #include "chrome/browser/ui/views/window.h" |
| 11 |
| 12 namespace gfx { |
| 13 class Rect; |
| 14 } // namespace gfx |
9 | 15 |
10 class TabContents; | 16 class TabContents; |
| 17 class NSWindow; |
| 18 |
| 19 |
| 20 // TODO(rkc): The following code is very ugly and needs to be refactored. |
| 21 // http://code.google.com/p/chromium/issues/detail?id=65119 |
| 22 namespace browser { |
| 23 #if defined(TOOLKIT_VIEWS) |
| 24 void ShowHtmlBugReportView(views::Window* parent, Browser* browser); |
| 25 #elif defined(OS_LINUX) |
| 26 void ShowHtmlBugReportView(gfx::NativeWindow window, const gfx::Rect& bounds, |
| 27 Browser* browser); |
| 28 #elif defined(OS_MACOSX) |
| 29 void ShowHtmlBugReportView(NSWindow* window, Browser* browser); |
| 30 #endif |
| 31 } // namespace browser |
11 | 32 |
12 class BugReportUI : public HtmlDialogUI { | 33 class BugReportUI : public HtmlDialogUI { |
13 public: | 34 public: |
14 explicit BugReportUI(TabContents* contents); | 35 explicit BugReportUI(TabContents* contents); |
15 private: | 36 private: |
16 | 37 |
17 DISALLOW_COPY_AND_ASSIGN(BugReportUI); | 38 DISALLOW_COPY_AND_ASSIGN(BugReportUI); |
18 }; | 39 }; |
19 | 40 |
20 #endif // CHROME_BROWSER_DOM_UI_BUG_REPORT_UI_H_ | 41 #endif // CHROME_BROWSER_DOM_UI_BUG_REPORT_UI_H_ |
OLD | NEW |