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

Unified Diff: chrome/browser/ui/views/keyboard_overlay_dialog_view.cc

Issue 10214001: WebDialogs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/views/keyboard_overlay_dialog_view.h ('k') | chrome/browser/ui/views/sad_tab_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/keyboard_overlay_dialog_view.cc
===================================================================
--- chrome/browser/ui/views/keyboard_overlay_dialog_view.cc (revision 133969)
+++ chrome/browser/ui/views/keyboard_overlay_dialog_view.cc (working copy)
@@ -35,9 +35,9 @@
KeyboardOverlayDialogView::KeyboardOverlayDialogView(
Profile* profile,
- HtmlDialogUIDelegate* delegate,
+ WebDialogDelegate* delegate,
BrowserView* parent_view)
- : HtmlDialogView(profile, parent_view->browser(), delegate),
+ : WebDialogView(profile, parent_view->browser(), delegate),
parent_view_(parent_view) {
RegisterDialogAccelerators();
}
@@ -88,23 +88,23 @@
KeyboardOverlayDelegate* delegate = new KeyboardOverlayDelegate(
l10n_util::GetStringUTF16(IDS_KEYBOARD_OVERLAY_TITLE));
- KeyboardOverlayDialogView* html_view =
+ KeyboardOverlayDialogView* view =
new KeyboardOverlayDialogView(parent_view->browser()->profile(),
delegate,
parent_view);
- delegate->set_view(html_view);
- browser::CreateFramelessViewsWindow(owning_window, html_view);
+ delegate->set_view(view);
+ browser::CreateFramelessViewsWindow(owning_window, view);
// Show the widget at the bottom of the work area.
gfx::Size size;
delegate->GetDialogSize(&size);
gfx::Rect rect = gfx::Screen::GetMonitorNearestWindow(
- html_view->GetWidget()->GetNativeView()).work_area();
+ view->GetWidget()->GetNativeView()).work_area();
gfx::Rect bounds((rect.width() - size.width()) / 2,
rect.height() - size.height(),
size.width(),
size.height());
- html_view->GetWidget()->SetBounds(bounds);
- html_view->GetWidget()->Show();
+ view->GetWidget()->SetBounds(bounds);
+ view->GetWidget()->Show();
}
bool KeyboardOverlayDialogView::IsCloseAccelerator(
« no previous file with comments | « chrome/browser/ui/views/keyboard_overlay_dialog_view.h ('k') | chrome/browser/ui/views/sad_tab_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698