Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Side by Side Diff: chrome/browser/ui/webui/constrained_web_dialog_delegate_base.h

Issue 10796049: Move WebDialogWebContentsDelegate to ui/web_dialogs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 CHROME_BROWSER_UI_WEBUI_CONSTRAINED_WEB_DIALOG_DELEGATE_BASE_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_CONSTRAINED_WEB_DIALOG_DELEGATE_BASE_H_
6 #define CHROME_BROWSER_UI_WEBUI_CONSTRAINED_WEB_DIALOG_DELEGATE_BASE_H_ 6 #define CHROME_BROWSER_UI_WEBUI_CONSTRAINED_WEB_DIALOG_DELEGATE_BASE_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "chrome/browser/ui/tab_contents/tab_contents.h" 9 #include "chrome/browser/ui/tab_contents/tab_contents.h"
10 #include "chrome/browser/ui/webui/web_dialog_web_contents_delegate.h"
11 #include "ui/web_dialogs/constrained_web_dialog_ui.h" 10 #include "ui/web_dialogs/constrained_web_dialog_ui.h"
12 #include "ui/web_dialogs/web_dialog_ui.h" 11 #include "ui/web_dialogs/web_dialog_ui.h"
12 #include "ui/web_dialogs/web_dialog_web_contents_delegate.h"
13 13
14 namespace ui { 14 namespace ui {
15 class WebDialogDelegate; 15 class WebDialogDelegate;
16 } 16 }
17 17
18 // Platform-agnostic base implementation of ConstrainedWebDialogDelegate. 18 // Platform-agnostic base implementation of ConstrainedWebDialogDelegate.
19 class ConstrainedWebDialogDelegateBase 19 class ConstrainedWebDialogDelegateBase
20 : public ui::ConstrainedWebDialogDelegate, 20 : public ui::ConstrainedWebDialogDelegate,
21 public WebDialogWebContentsDelegate { 21 public ui::WebDialogWebContentsDelegate {
22 public: 22 public:
23 ConstrainedWebDialogDelegateBase( 23 ConstrainedWebDialogDelegateBase(
24 Profile* profile, 24 Profile* profile,
25 ui::WebDialogDelegate* delegate, 25 ui::WebDialogDelegate* delegate,
26 WebDialogWebContentsDelegate* tab_delegate); 26 WebDialogWebContentsDelegate* tab_delegate);
27 virtual ~ConstrainedWebDialogDelegateBase(); 27 virtual ~ConstrainedWebDialogDelegateBase();
28 28
29 void set_window(ConstrainedWindow* window); 29 void set_window(ConstrainedWindow* window);
30 bool closed_via_webui() const; 30 bool closed_via_webui() const;
31 31
(...skipping 29 matching lines...) Expand all
61 61
62 // If true, release |tab_| on close instead of destroying it. 62 // If true, release |tab_| on close instead of destroying it.
63 bool release_tab_on_close_; 63 bool release_tab_on_close_;
64 64
65 scoped_ptr<WebDialogWebContentsDelegate> override_tab_delegate_; 65 scoped_ptr<WebDialogWebContentsDelegate> override_tab_delegate_;
66 66
67 DISALLOW_COPY_AND_ASSIGN(ConstrainedWebDialogDelegateBase); 67 DISALLOW_COPY_AND_ASSIGN(ConstrainedWebDialogDelegateBase);
68 }; 68 };
69 69
70 #endif // CHROME_BROWSER_UI_WEBUI_CONSTRAINED_WEB_DIALOG_DELEGATE_BASE_H_ 70 #endif // CHROME_BROWSER_UI_WEBUI_CONSTRAINED_WEB_DIALOG_DELEGATE_BASE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chrome_web_contents_handler.h ('k') | chrome/browser/ui/webui/constrained_web_dialog_delegate_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698