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

Unified Diff: chrome/browser/ui/gtk/notifications/balloon_view_host_gtk.cc

Issue 231733005: Delete the GTK+ port of Chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remerge to ToT Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/gtk/notifications/balloon_view_host_gtk.cc
diff --git a/chrome/browser/ui/gtk/notifications/balloon_view_host_gtk.cc b/chrome/browser/ui/gtk/notifications/balloon_view_host_gtk.cc
deleted file mode 100644
index dba6a1b487e3e4738a2d92a5e27ec1338c0d2740..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/gtk/notifications/balloon_view_host_gtk.cc
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright (c) 2012 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/ui/gtk/notifications/balloon_view_host_gtk.h"
-
-#include <gtk/gtk.h>
-
-#include "chrome/browser/notifications/balloon.h"
-#include "content/public/browser/render_view_host.h"
-#include "content/public/browser/render_widget_host_view.h"
-#include "content/public/browser/web_contents.h"
-#include "content/public/browser/web_contents_view.h"
-
-BalloonViewHost::BalloonViewHost(Balloon* balloon)
- : BalloonHost(balloon) {
-}
-
-BalloonViewHost::~BalloonViewHost() {
- Shutdown();
-}
-
-void BalloonViewHost::UpdateActualSize(const gfx::Size& new_size) {
- content::RenderViewHost* host = web_contents_->GetRenderViewHost();
- if (host) {
- content::RenderWidgetHostView* view = host->GetView();
- if (view)
- view->SetSize(new_size);
- }
-
- gtk_widget_set_size_request(
- native_view(), new_size.width(), new_size.height());
-}
-
-gfx::NativeView BalloonViewHost::native_view() const {
- return web_contents_->GetView()->GetNativeView();
-}

Powered by Google App Engine
This is Rietveld 408576698