| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/views/keyboard_overlay_delegate.h" | 5 #include "chrome/browser/ui/views/keyboard_overlay_delegate.h" |
| 6 | 6 |
| 7 #include "base/scoped_ptr.h" | 7 #include "base/scoped_ptr.h" |
| 8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
| 9 #include "chrome/browser/browser_list.h" | 9 #include "chrome/browser/browser_list.h" |
| 10 #include "chrome/browser/chromeos/frame/bubble_window.h" | 10 #include "chrome/browser/chromeos/frame/bubble_window.h" |
| 11 #include "chrome/browser/dom_ui/html_dialog_ui.h" | |
| 12 #include "chrome/browser/ui/browser.h" | 11 #include "chrome/browser/ui/browser.h" |
| 13 #include "chrome/browser/ui/views/html_dialog_view.h" | 12 #include "chrome/browser/ui/views/html_dialog_view.h" |
| 13 #include "chrome/browser/webui/html_dialog_ui.h" |
| 14 #include "chrome/common/url_constants.h" | 14 #include "chrome/common/url_constants.h" |
| 15 #include "grit/generated_resources.h" | 15 #include "grit/generated_resources.h" |
| 16 #include "ui/base/l10n/l10n_util.h" | 16 #include "ui/base/l10n/l10n_util.h" |
| 17 | 17 |
| 18 void KeyboardOverlayDelegate::ShowDialog(gfx::NativeWindow owning_window) { | 18 void KeyboardOverlayDelegate::ShowDialog(gfx::NativeWindow owning_window) { |
| 19 Browser* browser = BrowserList::GetLastActive(); | 19 Browser* browser = BrowserList::GetLastActive(); |
| 20 KeyboardOverlayDelegate* delegate = new KeyboardOverlayDelegate( | 20 KeyboardOverlayDelegate* delegate = new KeyboardOverlayDelegate( |
| 21 UTF16ToWide(l10n_util::GetStringUTF16(IDS_KEYBOARD_OVERLAY_TITLE))); | 21 UTF16ToWide(l10n_util::GetStringUTF16(IDS_KEYBOARD_OVERLAY_TITLE))); |
| 22 HtmlDialogView* html_view = | 22 HtmlDialogView* html_view = |
| 23 new HtmlDialogView(browser->profile(), delegate); | 23 new HtmlDialogView(browser->profile(), delegate); |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 return; | 69 return; |
| 70 } | 70 } |
| 71 | 71 |
| 72 void KeyboardOverlayDelegate::OnCloseContents(TabContents* source, | 72 void KeyboardOverlayDelegate::OnCloseContents(TabContents* source, |
| 73 bool* out_close_dialog) { | 73 bool* out_close_dialog) { |
| 74 } | 74 } |
| 75 | 75 |
| 76 bool KeyboardOverlayDelegate::ShouldShowDialogTitle() const { | 76 bool KeyboardOverlayDelegate::ShouldShowDialogTitle() const { |
| 77 return false; | 77 return false; |
| 78 } | 78 } |
| OLD | NEW |