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

Side by Side Diff: chrome/browser/ui/gtk/constrained_html_delegate_gtk.cc

Issue 6644002: [ChromeOS] Implement collected cookies in webui. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync, address evan and oshima's comemnts #1 Created 9 years, 9 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/webui/constrained_html_ui.h" 5 #include "chrome/browser/ui/webui/constrained_html_ui.h"
6 6
7 #include "chrome/browser/ui/gtk/constrained_window_gtk.h" 7 #include "chrome/browser/ui/gtk/constrained_window_gtk.h"
8 #include "chrome/browser/ui/gtk/gtk_util.h" 8 #include "chrome/browser/ui/gtk/gtk_util.h"
9 #include "chrome/browser/ui/gtk/tab_contents_container_gtk.h" 9 #include "chrome/browser/ui/gtk/tab_contents_container_gtk.h"
10 #include "chrome/browser/ui/webui/html_dialog_tab_contents_delegate.h" 10 #include "chrome/browser/ui/webui/html_dialog_tab_contents_delegate.h"
11 #include "chrome/browser/ui/webui/html_dialog_ui.h" 11 #include "chrome/browser/ui/webui/html_dialog_ui.h"
12 #include "content/browser/renderer_host/render_view_host.h" 12 #include "content/browser/renderer_host/render_view_host.h"
13 #include "content/browser/tab_contents/tab_contents.h" 13 #include "content/browser/tab_contents/tab_contents.h"
14 #include "content/common/notification_source.h" 14 #include "content/common/notification_source.h"
15 #include "ui/gfx/rect.h" 15 #include "ui/gfx/rect.h"
16 16
17 class ConstrainedHtmlDelegateGtk : public ConstrainedWindowGtkDelegate, 17 class ConstrainedHtmlDelegateGtk : public ConstrainedWindowGtkDelegate,
18 public HtmlDialogTabContentsDelegate, 18 public HtmlDialogTabContentsDelegate,
19 public ConstrainedHtmlUIDelegate { 19 public ConstrainedHtmlUIDelegate {
20 public: 20 public:
21 ConstrainedHtmlDelegateGtk(Profile* profile, 21 ConstrainedHtmlDelegateGtk(Profile* profile,
22 HtmlDialogUIDelegate* delegate); 22 HtmlDialogUIDelegate* delegate);
23 23
24 virtual ~ConstrainedHtmlDelegateGtk(); 24 virtual ~ConstrainedHtmlDelegateGtk();
25 25
26 // ConstrainedWindowGtkDelegate ---------------------------------------------- 26 // ConstrainedWindowGtkDelegate ----------------------------------------------
27 virtual GtkWidget* GetWidgetRoot() { 27 virtual GtkWidget* GetWidgetRoot() {
28 return tab_contents_container_.widget(); 28 return tab_contents_container_.widget();
29 } 29 }
30 virtual GtkWidget* GetFocusWidget() { 30 virtual GtkWidget* GetFocusWidget() {
31 return tab_contents_.GetContentNativeView(); 31 return tab_contents_.GetContentNativeView();
32 } 32 }
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 void ConstrainedHtmlUI::CreateConstrainedHtmlDialog( 106 void ConstrainedHtmlUI::CreateConstrainedHtmlDialog(
107 Profile* profile, 107 Profile* profile,
108 HtmlDialogUIDelegate* delegate, 108 HtmlDialogUIDelegate* delegate,
109 TabContents* overshadowed) { 109 TabContents* overshadowed) {
110 ConstrainedHtmlDelegateGtk* constrained_delegate = 110 ConstrainedHtmlDelegateGtk* constrained_delegate =
111 new ConstrainedHtmlDelegateGtk(profile, delegate); 111 new ConstrainedHtmlDelegateGtk(profile, delegate);
112 ConstrainedWindow* constrained_window = 112 ConstrainedWindow* constrained_window =
113 overshadowed->CreateConstrainedDialog(constrained_delegate); 113 overshadowed->CreateConstrainedDialog(constrained_delegate);
114 constrained_delegate->set_window(constrained_window); 114 constrained_delegate->set_window(constrained_window);
115 } 115 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698