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

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

Issue 7669040: content: Move render_widget_host_view_gtk to content/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: chromeos fix. Created 9 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 | 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/gtk/extensions/extension_view_gtk.h" 5 #include "chrome/browser/ui/gtk/extensions/extension_view_gtk.h"
6 6
7 #include "chrome/browser/extensions/extension_host.h" 7 #include "chrome/browser/extensions/extension_host.h"
8 #include "chrome/browser/renderer_host/render_widget_host_view_gtk.h"
9 #include "chrome/browser/ui/gtk/extensions/extension_popup_gtk.h" 8 #include "chrome/browser/ui/gtk/extensions/extension_popup_gtk.h"
10 #include "content/browser/renderer_host/render_view_host.h" 9 #include "content/browser/renderer_host/render_view_host.h"
10 #include "content/browser/renderer_host/render_widget_host_view_gtk.h"
11 11
12 ExtensionViewGtk::ExtensionViewGtk(ExtensionHost* extension_host, 12 ExtensionViewGtk::ExtensionViewGtk(ExtensionHost* extension_host,
13 Browser* browser) 13 Browser* browser)
14 : browser_(browser), 14 : browser_(browser),
15 extension_host_(extension_host), 15 extension_host_(extension_host),
16 render_widget_host_view_(NULL), 16 render_widget_host_view_(NULL),
17 container_(NULL) { 17 container_(NULL) {
18 } 18 }
19 19
20 void ExtensionViewGtk::Init() { 20 void ExtensionViewGtk::Init() {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 render_widget_host_view_->SetBackground(pending_background_); 55 render_widget_host_view_->SetBackground(pending_background_);
56 pending_background_.reset(); 56 pending_background_.reset();
57 } 57 }
58 58
59 // Tell the renderer not to draw scrollbars in popups unless the 59 // Tell the renderer not to draw scrollbars in popups unless the
60 // popups are at the maximum allowed size. 60 // popups are at the maximum allowed size.
61 gfx::Size largest_popup_size(ExtensionPopupGtk::kMaxWidth, 61 gfx::Size largest_popup_size(ExtensionPopupGtk::kMaxWidth,
62 ExtensionPopupGtk::kMaxHeight); 62 ExtensionPopupGtk::kMaxHeight);
63 extension_host_->DisableScrollbarsForSmallWindows(largest_popup_size); 63 extension_host_->DisableScrollbarsForSmallWindows(largest_popup_size);
64 } 64 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/extensions/extension_popup_gtk.cc ('k') | chrome/browser/ui/gtk/find_bar_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698