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

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

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 #include "chrome/browser/ui/webui/constrained_web_dialog_delegate_base.h" 5 #include "chrome/browser/ui/webui/constrained_web_dialog_delegate_base.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/property_bag.h" 9 #include "base/property_bag.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
11 #include "chrome/browser/ui/constrained_window.h" 11 #include "chrome/browser/ui/constrained_window.h"
12 #include "chrome/browser/ui/tab_contents/tab_contents.h" 12 #include "chrome/browser/ui/tab_contents/tab_contents.h"
13 #include "chrome/browser/ui/webui/chrome_web_contents_handler.h" 13 #include "chrome/browser/ui/webui/chrome_web_contents_handler.h"
14 #include "content/public/browser/web_contents.h" 14 #include "content/public/browser/web_contents.h"
15 #include "ipc/ipc_message.h" 15 #include "ipc/ipc_message.h"
16 #include "ui/web_dialogs/web_dialog_delegate.h" 16 #include "ui/web_dialogs/web_dialog_delegate.h"
17 #include "ui/web_dialogs/web_dialog_ui.h" 17 #include "ui/web_dialogs/web_dialog_ui.h"
18 18
19 using content::NativeWebKeyboardEvent; 19 using content::NativeWebKeyboardEvent;
20 using content::WebContents; 20 using content::WebContents;
21 using ui::ConstrainedWebDialogUI; 21 using ui::ConstrainedWebDialogUI;
22 using ui::WebDialogDelegate; 22 using ui::WebDialogDelegate;
23 using ui::WebDialogWebContentsDelegate;
23 24
24 ConstrainedWebDialogDelegateBase::ConstrainedWebDialogDelegateBase( 25 ConstrainedWebDialogDelegateBase::ConstrainedWebDialogDelegateBase(
25 Profile* profile, 26 Profile* profile,
26 WebDialogDelegate* delegate, 27 WebDialogDelegate* delegate,
27 WebDialogWebContentsDelegate* tab_delegate) 28 WebDialogWebContentsDelegate* tab_delegate)
28 : WebDialogWebContentsDelegate(profile, new ChromeWebContentsHandler), 29 : WebDialogWebContentsDelegate(profile, new ChromeWebContentsHandler),
29 web_dialog_delegate_(delegate), 30 web_dialog_delegate_(delegate),
30 window_(NULL), 31 window_(NULL),
31 closed_via_webui_(false), 32 closed_via_webui_(false),
32 release_tab_on_close_(false) { 33 release_tab_on_close_(false) {
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 return window_; 92 return window_;
92 } 93 }
93 94
94 TabContents* ConstrainedWebDialogDelegateBase::tab() { 95 TabContents* ConstrainedWebDialogDelegateBase::tab() {
95 return tab_.get(); 96 return tab_.get();
96 } 97 }
97 98
98 void ConstrainedWebDialogDelegateBase::HandleKeyboardEvent( 99 void ConstrainedWebDialogDelegateBase::HandleKeyboardEvent(
99 const NativeWebKeyboardEvent& event) { 100 const NativeWebKeyboardEvent& event) {
100 } 101 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698