| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 UI_WEB_DIALOGS_WEB_DIALOG_WEB_CONTENTS_DELEGATE_H_ | 5 #ifndef UI_WEB_DIALOGS_WEB_DIALOG_WEB_CONTENTS_DELEGATE_H_ |
| 6 #define UI_WEB_DIALOGS_WEB_DIALOG_WEB_CONTENTS_DELEGATE_H_ | 6 #define UI_WEB_DIALOGS_WEB_DIALOG_WEB_CONTENTS_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/macros.h" |
| 9 #include "content/public/browser/web_contents_delegate.h" | 10 #include "content/public/browser/web_contents_delegate.h" |
| 10 #include "ui/web_dialogs/web_dialogs_export.h" | 11 #include "ui/web_dialogs/web_dialogs_export.h" |
| 11 | 12 |
| 12 namespace ui { | 13 namespace ui { |
| 13 | 14 |
| 14 // This class implements (and mostly ignores) most of | 15 // This class implements (and mostly ignores) most of |
| 15 // content::WebContentsDelegate for use in a Web dialog. Subclasses need only | 16 // content::WebContentsDelegate for use in a Web dialog. Subclasses need only |
| 16 // override a few methods instead of the everything from | 17 // override a few methods instead of the everything from |
| 17 // content::WebContentsDelegate; this way, implementations on all platforms | 18 // content::WebContentsDelegate; this way, implementations on all platforms |
| 18 // behave consistently. | 19 // behave consistently. |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 content::BrowserContext* browser_context_; | 72 content::BrowserContext* browser_context_; |
| 72 | 73 |
| 73 scoped_ptr<WebContentsHandler> handler_; | 74 scoped_ptr<WebContentsHandler> handler_; |
| 74 | 75 |
| 75 DISALLOW_COPY_AND_ASSIGN(WebDialogWebContentsDelegate); | 76 DISALLOW_COPY_AND_ASSIGN(WebDialogWebContentsDelegate); |
| 76 }; | 77 }; |
| 77 | 78 |
| 78 } // namespace ui | 79 } // namespace ui |
| 79 | 80 |
| 80 #endif // UI_WEB_DIALOGS_WEB_DIALOG_WEB_CONTENTS_DELEGATE_H_ | 81 #endif // UI_WEB_DIALOGS_WEB_DIALOG_WEB_CONTENTS_DELEGATE_H_ |
| OLD | NEW |