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

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

Issue 11358027: Move constrained web dialog code back to chrome/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cros fix2 Created 8 years, 1 month 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 "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/browser/ui/constrained_window.h" 10 #include "chrome/browser/ui/constrained_window.h"
11 #include "chrome/browser/ui/tab_contents/tab_contents.h" 11 #include "chrome/browser/ui/tab_contents/tab_contents.h"
12 #include "chrome/browser/ui/webui/chrome_web_contents_handler.h" 12 #include "chrome/browser/ui/webui/chrome_web_contents_handler.h"
13 #include "content/public/browser/web_contents.h" 13 #include "content/public/browser/web_contents.h"
14 #include "ipc/ipc_message.h" 14 #include "ipc/ipc_message.h"
15 #include "ui/web_dialogs/web_dialog_delegate.h" 15 #include "ui/web_dialogs/web_dialog_delegate.h"
16 #include "ui/web_dialogs/web_dialog_ui.h" 16 #include "ui/web_dialogs/web_dialog_ui.h"
17 17
18 using content::NativeWebKeyboardEvent; 18 using content::NativeWebKeyboardEvent;
19 using content::WebContents; 19 using content::WebContents;
20 using ui::ConstrainedWebDialogUI;
21 using ui::WebDialogDelegate; 20 using ui::WebDialogDelegate;
22 using ui::WebDialogWebContentsDelegate; 21 using ui::WebDialogWebContentsDelegate;
23 22
24 ConstrainedWebDialogDelegateBase::ConstrainedWebDialogDelegateBase( 23 ConstrainedWebDialogDelegateBase::ConstrainedWebDialogDelegateBase(
25 Profile* profile, 24 Profile* profile,
26 WebDialogDelegate* delegate, 25 WebDialogDelegate* delegate,
27 WebDialogWebContentsDelegate* tab_delegate) 26 WebDialogWebContentsDelegate* tab_delegate)
28 : WebDialogWebContentsDelegate(profile, new ChromeWebContentsHandler), 27 : WebDialogWebContentsDelegate(profile, new ChromeWebContentsHandler),
29 web_dialog_delegate_(delegate), 28 web_dialog_delegate_(delegate),
30 window_(NULL), 29 window_(NULL),
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 } 90 }
92 91
93 TabContents* ConstrainedWebDialogDelegateBase::tab() { 92 TabContents* ConstrainedWebDialogDelegateBase::tab() {
94 return tab_.get(); 93 return tab_.get();
95 } 94 }
96 95
97 void ConstrainedWebDialogDelegateBase::HandleKeyboardEvent( 96 void ConstrainedWebDialogDelegateBase::HandleKeyboardEvent(
98 content::WebContents* source, 97 content::WebContents* source,
99 const NativeWebKeyboardEvent& event) { 98 const NativeWebKeyboardEvent& event) {
100 } 99 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/constrained_web_dialog_delegate_base.h ('k') | chrome/browser/ui/webui/constrained_web_dialog_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698