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

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

Issue 6538053: WebUI: Move more files from chrome/browser/dom_ui to chrome/browser/webui. Part 5. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 10 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) 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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/keyboard_overlay_delegate.h ('k') | chrome/browser/ui/views/select_file_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698