| Index: chrome/browser/gtk/notifications/balloon_view_host_gtk.cc
|
| ===================================================================
|
| --- chrome/browser/gtk/notifications/balloon_view_host_gtk.cc (revision 71352)
|
| +++ chrome/browser/gtk/notifications/balloon_view_host_gtk.cc (working copy)
|
| @@ -1,35 +0,0 @@
|
| -// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
| -// Use of this source code is governed by a BSD-style license that can be
|
| -// found in the LICENSE file.
|
| -
|
| -#include "chrome/browser/gtk/notifications/balloon_view_host_gtk.h"
|
| -
|
| -#include "chrome/browser/notifications/balloon.h"
|
| -#include "chrome/browser/renderer_host/render_view_host.h"
|
| -#include "chrome/browser/renderer_host/render_widget_host_view.h"
|
| -#include "chrome/browser/renderer_host/render_widget_host_view_gtk.h"
|
| -
|
| -BalloonViewHost::BalloonViewHost(Balloon* balloon)
|
| - : BalloonHost(balloon),
|
| - render_widget_host_view_(NULL) {
|
| -}
|
| -
|
| -void BalloonViewHost::UpdateActualSize(const gfx::Size& new_size) {
|
| - render_widget_host_view_->SetSize(new_size);
|
| - gtk_widget_set_size_request(
|
| - native_view(), new_size.width(), new_size.height());
|
| -}
|
| -
|
| -gfx::NativeView BalloonViewHost::native_view() const {
|
| - return render_widget_host_view_->native_view();
|
| -}
|
| -
|
| -void BalloonViewHost::InitRenderWidgetHostView() {
|
| - DCHECK(render_view_host_);
|
| - render_widget_host_view_ = new RenderWidgetHostViewGtk(render_view_host_);
|
| - render_widget_host_view_->InitAsChild();
|
| -}
|
| -
|
| -RenderWidgetHostView* BalloonViewHost::render_widget_host_view() const {
|
| - return render_widget_host_view_;
|
| -}
|
|
|