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

Side by Side Diff: chrome/browser/ui/gtk/tab_contents_container_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/tab_contents_container_gtk.h" 5 #include "chrome/browser/ui/gtk/tab_contents_container_gtk.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/i18n/rtl.h" 9 #include "base/i18n/rtl.h"
10 #include "chrome/browser/ui/gtk/status_bubble_gtk.h" 10 #include "chrome/browser/ui/gtk/status_bubble_gtk.h"
11 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 11 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
12 #include "content/browser/renderer_host/render_widget_host_view.h"
13 #include "content/public/browser/notification_source.h" 12 #include "content/public/browser/notification_source.h"
14 #include "content/public/browser/notification_types.h" 13 #include "content/public/browser/notification_types.h"
14 #include "content/public/browser/render_widget_host_view.h"
15 #include "content/public/browser/web_contents.h" 15 #include "content/public/browser/web_contents.h"
16 #include "ui/base/gtk/gtk_expanded_container.h" 16 #include "ui/base/gtk/gtk_expanded_container.h"
17 #include "ui/base/gtk/gtk_floating_container.h" 17 #include "ui/base/gtk/gtk_floating_container.h"
18 #include "ui/gfx/native_widget_types.h" 18 #include "ui/gfx/native_widget_types.h"
19 19
20 using content::WebContents; 20 using content::WebContents;
21 21
22 TabContentsContainerGtk::TabContentsContainerGtk(StatusBubbleGtk* status_bubble) 22 TabContentsContainerGtk::TabContentsContainerGtk(StatusBubbleGtk* status_bubble)
23 : tab_(NULL), 23 : tab_(NULL),
24 preview_(NULL), 24 preview_(NULL),
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 g_value_set_int(&value, allocation->width - requisition.width); 243 g_value_set_int(&value, allocation->width - requisition.width);
244 gtk_container_child_set_property(GTK_CONTAINER(floating_container), 244 gtk_container_child_set_property(GTK_CONTAINER(floating_container),
245 status->widget(), "x", &value); 245 status->widget(), "x", &value);
246 246
247 int child_y = std::max(allocation->height - requisition.height, 0); 247 int child_y = std::max(allocation->height - requisition.height, 0);
248 g_value_set_int(&value, child_y + status->y_offset()); 248 g_value_set_int(&value, child_y + status->y_offset());
249 gtk_container_child_set_property(GTK_CONTAINER(floating_container), 249 gtk_container_child_set_property(GTK_CONTAINER(floating_container),
250 status->widget(), "y", &value); 250 status->widget(), "y", &value);
251 g_value_unset(&value); 251 g_value_unset(&value);
252 } 252 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/notifications/balloon_view_host_gtk.cc ('k') | chrome/browser/ui/gtk/web_intent_picker_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698