| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/cocoa/notifications/balloon_view_host_mac.h" | 5 #include "chrome/browser/ui/cocoa/notifications/balloon_view_host_mac.h" |
| 6 | 6 |
| 7 #include "chrome/browser/renderer_host/render_view_host.h" | |
| 8 #include "chrome/browser/renderer_host/render_widget_host_view_mac.h" | 7 #include "chrome/browser/renderer_host/render_widget_host_view_mac.h" |
| 8 #include "content/browser/renderer_host/render_view_host.h" |
| 9 | 9 |
| 10 BalloonViewHost::BalloonViewHost(Balloon* balloon) | 10 BalloonViewHost::BalloonViewHost(Balloon* balloon) |
| 11 : BalloonHost(balloon) { | 11 : BalloonHost(balloon) { |
| 12 } | 12 } |
| 13 | 13 |
| 14 BalloonViewHost::~BalloonViewHost() { | 14 BalloonViewHost::~BalloonViewHost() { |
| 15 Shutdown(); | 15 Shutdown(); |
| 16 } | 16 } |
| 17 | 17 |
| 18 void BalloonViewHost::UpdateActualSize(const gfx::Size& new_size) { | 18 void BalloonViewHost::UpdateActualSize(const gfx::Size& new_size) { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 30 } | 30 } |
| 31 | 31 |
| 32 void BalloonViewHost::InitRenderWidgetHostView() { | 32 void BalloonViewHost::InitRenderWidgetHostView() { |
| 33 DCHECK(render_view_host_); | 33 DCHECK(render_view_host_); |
| 34 render_widget_host_view_ = new RenderWidgetHostViewMac(render_view_host_); | 34 render_widget_host_view_ = new RenderWidgetHostViewMac(render_view_host_); |
| 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 } |
| OLD | NEW |