| 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_UI_VIEWS_HTML_DIALOG_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_HTML_DIALOG_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_HTML_DIALOG_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_HTML_DIALOG_VIEW_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/gtest_prod_util.h" | 12 #include "base/gtest_prod_util.h" |
| 13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "chrome/browser/tab_first_render_watcher.h" | 14 #include "chrome/browser/tab_first_render_watcher.h" |
| 15 #include "chrome/browser/ui/views/dom_view.h" | 15 #include "chrome/browser/ui/views/dom_view.h" |
| 16 #include "chrome/browser/ui/webui/html_dialog_tab_contents_delegate.h" | 16 #include "chrome/browser/ui/webui/html_dialog_tab_contents_delegate.h" |
| 17 #include "chrome/browser/ui/webui/html_dialog_ui.h" | 17 #include "chrome/browser/ui/webui/html_dialog_ui.h" |
| 18 #include "ui/gfx/size.h" | 18 #include "ui/gfx/size.h" |
| 19 #include "ui/views/widget/widget_delegate.h" | 19 #include "views/widget/widget_delegate.h" |
| 20 | 20 |
| 21 class Browser; | 21 class Browser; |
| 22 | 22 |
| 23 //////////////////////////////////////////////////////////////////////////////// | 23 //////////////////////////////////////////////////////////////////////////////// |
| 24 // | 24 // |
| 25 // HtmlDialogView is a view used to display an HTML dialog to the user. The | 25 // HtmlDialogView is a view used to display an HTML dialog to the user. The |
| 26 // content of the dialogs is determined by the delegate | 26 // content of the dialogs is determined by the delegate |
| 27 // (HtmlDialogUIDelegate), but is basically a file URL along with a | 27 // (HtmlDialogUIDelegate), but is basically a file URL along with a |
| 28 // JSON input string. The HTML is supposed to show a UI to the user and is | 28 // JSON input string. The HTML is supposed to show a UI to the user and is |
| 29 // expected to send back a JSON file as a return value. | 29 // expected to send back a JSON file as a return value. |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 // This view is a delegate to the HTML content since it needs to get notified | 107 // This view is a delegate to the HTML content since it needs to get notified |
| 108 // about when the dialog is closing. For all other actions (besides dialog | 108 // about when the dialog is closing. For all other actions (besides dialog |
| 109 // closing) we delegate to the creator of this view, which we keep track of | 109 // closing) we delegate to the creator of this view, which we keep track of |
| 110 // using this variable. | 110 // using this variable. |
| 111 HtmlDialogUIDelegate* delegate_; | 111 HtmlDialogUIDelegate* delegate_; |
| 112 | 112 |
| 113 DISALLOW_COPY_AND_ASSIGN(HtmlDialogView); | 113 DISALLOW_COPY_AND_ASSIGN(HtmlDialogView); |
| 114 }; | 114 }; |
| 115 | 115 |
| 116 #endif // CHROME_BROWSER_UI_VIEWS_HTML_DIALOG_VIEW_H_ | 116 #endif // CHROME_BROWSER_UI_VIEWS_HTML_DIALOG_VIEW_H_ |
| OLD | NEW |