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

Side by Side Diff: chrome/browser/ui/views/chrome_web_dialog_view.cc

Issue 10805047: Move WebDialogView to ui/views/controls/webview. (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
« no previous file with comments | « no previous file | chrome/browser/ui/views/keyboard_overlay_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/browser_dialogs.h" 5 #include "chrome/browser/ui/browser_dialogs.h"
6 #include "chrome/browser/ui/views/web_dialog_view.h"
7 #include "chrome/browser/ui/webui/chrome_web_contents_handler.h" 6 #include "chrome/browser/ui/webui/chrome_web_contents_handler.h"
7 #include "ui/views/controls/webview/web_dialog_view.h"
8 #include "ui/views/widget/widget.h" 8 #include "ui/views/widget/widget.h"
9 9
10 namespace chrome { 10 namespace chrome {
11 11
12 // Declared in browser_dialogs.h so that others don't need to depend on our .h. 12 // Declared in browser_dialogs.h so that others don't need to depend on our .h.
13 gfx::NativeWindow ShowWebDialog(gfx::NativeWindow parent, 13 gfx::NativeWindow ShowWebDialog(gfx::NativeWindow parent,
14 content::BrowserContext* context, 14 content::BrowserContext* context,
15 ui::WebDialogDelegate* delegate) { 15 ui::WebDialogDelegate* delegate) {
16 views::Widget* widget = views::Widget::CreateWindowWithParent( 16 views::Widget* widget = views::Widget::CreateWindowWithParent(
17 new WebDialogView(context, delegate, new ChromeWebContentsHandler), 17 new views::WebDialogView(context, delegate, new ChromeWebContentsHandler),
18 parent); 18 parent);
19 widget->Show(); 19 widget->Show();
20 return widget->GetNativeWindow(); 20 return widget->GetNativeWindow();
21 } 21 }
22 22
23 } // namespace chrome 23 } // namespace chrome
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/keyboard_overlay_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698