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

Side by Side Diff: chrome/browser/ui/gtk/notifications/balloon_view_host_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/notifications/balloon_view_host_gtk.h" 5 #include "chrome/browser/ui/gtk/notifications/balloon_view_host_gtk.h"
6 6
7 #include "chrome/browser/notifications/balloon.h" 7 #include "chrome/browser/notifications/balloon.h"
8 #include "chrome/browser/renderer_host/render_widget_host_view_gtk.h"
9 #include "content/browser/renderer_host/render_view_host.h" 8 #include "content/browser/renderer_host/render_view_host.h"
10 #include "content/browser/renderer_host/render_widget_host_view.h" 9 #include "content/browser/renderer_host/render_widget_host_view.h"
10 #include "content/browser/renderer_host/render_widget_host_view_gtk.h"
11 11
12 BalloonViewHost::BalloonViewHost(Balloon* balloon) 12 BalloonViewHost::BalloonViewHost(Balloon* balloon)
13 : BalloonHost(balloon), 13 : BalloonHost(balloon),
14 render_widget_host_view_(NULL) { 14 render_widget_host_view_(NULL) {
15 } 15 }
16 16
17 BalloonViewHost::~BalloonViewHost() { 17 BalloonViewHost::~BalloonViewHost() {
18 Shutdown(); 18 Shutdown();
19 } 19 }
20 20
21 void BalloonViewHost::UpdateActualSize(const gfx::Size& new_size) { 21 void BalloonViewHost::UpdateActualSize(const gfx::Size& new_size) {
22 render_widget_host_view_->SetSize(new_size); 22 render_widget_host_view_->SetSize(new_size);
23 gtk_widget_set_size_request( 23 gtk_widget_set_size_request(
24 native_view(), new_size.width(), new_size.height()); 24 native_view(), new_size.width(), new_size.height());
25 } 25 }
26 26
27 gfx::NativeView BalloonViewHost::native_view() const { 27 gfx::NativeView BalloonViewHost::native_view() const {
28 return render_widget_host_view_->native_view(); 28 return render_widget_host_view_->native_view();
29 } 29 }
30 30
31 void BalloonViewHost::InitRenderWidgetHostView() { 31 void BalloonViewHost::InitRenderWidgetHostView() {
32 DCHECK(render_view_host_); 32 DCHECK(render_view_host_);
33 render_widget_host_view_ = new RenderWidgetHostViewGtk(render_view_host_); 33 render_widget_host_view_ = new RenderWidgetHostViewGtk(render_view_host_);
34 render_widget_host_view_->InitAsChild(); 34 render_widget_host_view_->InitAsChild();
35 } 35 }
36 36
37 RenderWidgetHostView* BalloonViewHost::render_widget_host_view() const { 37 RenderWidgetHostView* BalloonViewHost::render_widget_host_view() const {
38 return render_widget_host_view_; 38 return render_widget_host_view_;
39 } 39 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/location_bar_view_gtk.h ('k') | chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698