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

Side by Side Diff: chrome/browser/ui/gtk/extensions/shell_window_gtk.cc

Issue 9420007: Move RenderWidgetHostView into content namespace. Fix include paths. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix linux_chromeos_gtk build issue not caught by trybots. Created 8 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/gtk/extensions/shell_window_gtk.h" 5 #include "chrome/browser/ui/gtk/extensions/shell_window_gtk.h"
6 6
7 #include "chrome/browser/extensions/extension_host.h" 7 #include "chrome/browser/extensions/extension_host.h"
8 #include "chrome/common/extensions/extension.h" 8 #include "chrome/common/extensions/extension.h"
9 #include "content/browser/renderer_host/render_widget_host_view.h" 9 #include "content/public/browser/render_widget_host_view.h"
10 10
11 ShellWindowGtk::ShellWindowGtk(ExtensionHost* host) 11 ShellWindowGtk::ShellWindowGtk(ExtensionHost* host)
12 : ShellWindow(host) { 12 : ShellWindow(host) {
13 host_->view()->SetContainer(this); 13 host_->view()->SetContainer(this);
14 window_ = GTK_WINDOW(gtk_window_new(GTK_WINDOW_TOPLEVEL)); 14 window_ = GTK_WINDOW(gtk_window_new(GTK_WINDOW_TOPLEVEL));
15 15
16 gtk_container_add(GTK_CONTAINER(window_), host_->view()->native_view()); 16 gtk_container_add(GTK_CONTAINER(window_), host_->view()->native_view());
17 17
18 // TOOD(mihaip): Allow window dimensions to be specified in manifest (and 18 // TOOD(mihaip): Allow window dimensions to be specified in manifest (and
19 // restore prior window dimensions and positions on relaunch). 19 // restore prior window dimensions and positions on relaunch).
(...skipping 24 matching lines...) Expand all
44 44
45 // Return true to prevent the GTK window from being destroyed. Close will 45 // Return true to prevent the GTK window from being destroyed. Close will
46 // destroy it for us. 46 // destroy it for us.
47 return TRUE; 47 return TRUE;
48 } 48 }
49 49
50 // static 50 // static
51 ShellWindow* ShellWindow::CreateShellWindow(ExtensionHost* host) { 51 ShellWindow* ShellWindow::CreateShellWindow(ExtensionHost* host) {
52 return new ShellWindowGtk(host); 52 return new ShellWindowGtk(host);
53 } 53 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/extensions/extension_view_gtk.cc ('k') | chrome/browser/ui/gtk/fullscreen_exit_bubble_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698