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

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

Issue 8986007: Move WebUIMessageHandler to its own file in the public directory and put it in the content namesp... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 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) 2011 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/html_dialog_view.h" 5 #include "chrome/browser/ui/views/html_dialog_view.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
11 #include "chrome/browser/ui/browser_dialogs.h" 11 #include "chrome/browser/ui/browser_dialogs.h"
12 #include "chrome/browser/ui/views/window.h" 12 #include "chrome/browser/ui/views/window.h"
13 #include "content/browser/tab_contents/tab_contents.h" 13 #include "content/browser/tab_contents/tab_contents.h"
14 #include "content/public/browser/native_web_keyboard_event.h" 14 #include "content/public/browser/native_web_keyboard_event.h"
15 #include "content/public/browser/notification_details.h" 15 #include "content/public/browser/notification_details.h"
16 #include "content/public/browser/notification_source.h" 16 #include "content/public/browser/notification_source.h"
17 #include "content/public/browser/notification_types.h" 17 #include "content/public/browser/notification_types.h"
18 #include "ui/base/keycodes/keyboard_codes.h" 18 #include "ui/base/keycodes/keyboard_codes.h"
19 #include "ui/views/events/event.h" 19 #include "ui/views/events/event.h"
20 #include "ui/views/widget/root_view.h" 20 #include "ui/views/widget/root_view.h"
21 #include "ui/views/widget/widget.h" 21 #include "ui/views/widget/widget.h"
22 22
23 #if defined(TOOLKIT_USES_GTK) 23 #if defined(TOOLKIT_USES_GTK)
24 #include "ui/views/widget/native_widget_gtk.h" 24 #include "ui/views/widget/native_widget_gtk.h"
25 #endif 25 #endif
26 26
27 class RenderWidgetHost; 27 class RenderWidgetHost;
28 28
29 using content::WebContents; 29 using content::WebContents;
30 using content::WebUIMessageHandler;
30 31
31 namespace browser { 32 namespace browser {
32 33
33 // Declared in browser_dialogs.h so that others don't need to depend on our .h. 34 // Declared in browser_dialogs.h so that others don't need to depend on our .h.
34 gfx::NativeWindow ShowHtmlDialog(gfx::NativeWindow parent, 35 gfx::NativeWindow ShowHtmlDialog(gfx::NativeWindow parent,
35 Profile* profile, 36 Profile* profile,
36 HtmlDialogUIDelegate* delegate, 37 HtmlDialogUIDelegate* delegate,
37 DialogStyle style) { 38 DialogStyle style) {
38 // It's not always safe to display an html dialog with an off the record 39 // It's not always safe to display an html dialog with an off the record
39 // profile. If the last browser with that profile is closed it will go 40 // profile. If the last browser with that profile is closed it will go
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 } 276 }
276 277
277 void HtmlDialogView::OnTabMainFrameFirstRender() { 278 void HtmlDialogView::OnTabMainFrameFirstRender() {
278 #if defined(OS_CHROMEOS) && defined(TOOLKIT_USES_GTK) 279 #if defined(OS_CHROMEOS) && defined(TOOLKIT_USES_GTK)
279 if (initialized_) { 280 if (initialized_) {
280 views::NativeWidgetGtk::UpdateFreezeUpdatesProperty( 281 views::NativeWidgetGtk::UpdateFreezeUpdatesProperty(
281 GTK_WINDOW(GetWidget()->GetNativeView()), false); 282 GTK_WINDOW(GetWidget()->GetNativeView()), false);
282 } 283 }
283 #endif 284 #endif
284 } 285 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/html_dialog_view.h ('k') | chrome/browser/ui/views/keyboard_overlay_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698