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

Side by Side Diff: chrome/browser/gtk/html_dialog_gtk.cc

Issue 3145001: FBTF: Clean up task.h in x11_util.h and header usage in some delegates. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: more Created 10 years, 4 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
« no previous file with comments | « chrome/browser/gtk/gtk_util.cc ('k') | chrome/browser/gtk/hung_renderer_dialog_gtk.cc » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/gtk/html_dialog_gtk.h" 5 #include "chrome/browser/gtk/html_dialog_gtk.h"
6 6
7 #include <gtk/gtk.h> 7 #include <gtk/gtk.h>
8 8
9 #include "base/utf_string_conversions.h"
9 #include "chrome/browser/browser.h" 10 #include "chrome/browser/browser.h"
10 #include "chrome/browser/browser_window.h" 11 #include "chrome/browser/browser_window.h"
11 #include "chrome/browser/dom_ui/html_dialog_ui.h" 12 #include "chrome/browser/dom_ui/html_dialog_ui.h"
12 #include "chrome/browser/gtk/gtk_util.h" 13 #include "chrome/browser/gtk/gtk_util.h"
13 #include "chrome/browser/gtk/tab_contents_container_gtk.h" 14 #include "chrome/browser/gtk/tab_contents_container_gtk.h"
14 #include "chrome/browser/tab_contents/tab_contents.h" 15 #include "chrome/browser/tab_contents/tab_contents.h"
16 #include "chrome/common/native_web_keyboard_event.h"
15 #include "ipc/ipc_message.h" 17 #include "ipc/ipc_message.h"
16 18
17 // static 19 // static
18 void HtmlDialogGtk::ShowHtmlDialogGtk(Browser* browser, 20 void HtmlDialogGtk::ShowHtmlDialogGtk(Browser* browser,
19 HtmlDialogUIDelegate* delegate, 21 HtmlDialogUIDelegate* delegate,
20 gfx::NativeWindow parent_window) { 22 gfx::NativeWindow parent_window) {
21 HtmlDialogGtk* html_dialog = 23 HtmlDialogGtk* html_dialog =
22 new HtmlDialogGtk(browser->profile(), delegate, parent_window); 24 new HtmlDialogGtk(browser->profile(), delegate, parent_window);
23 html_dialog->InitDialog(); 25 html_dialog->InitDialog();
24 } 26 }
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 gtk_widget_set_size_request(GTK_WIDGET(tab_contents_container_->widget()), 158 gtk_widget_set_size_request(GTK_WIDGET(tab_contents_container_->widget()),
157 dialog_size.width(), 159 dialog_size.width(),
158 dialog_size.height()); 160 dialog_size.height());
159 161
160 gtk_widget_show_all(dialog_); 162 gtk_widget_show_all(dialog_);
161 } 163 }
162 164
163 void HtmlDialogGtk::OnResponse(GtkWidget* dialog, int response_id) { 165 void HtmlDialogGtk::OnResponse(GtkWidget* dialog, int response_id) {
164 OnDialogClosed(std::string()); 166 OnDialogClosed(std::string());
165 } 167 }
OLDNEW
« no previous file with comments | « chrome/browser/gtk/gtk_util.cc ('k') | chrome/browser/gtk/hung_renderer_dialog_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698