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

Unified Diff: chrome/browser/ui/cocoa/notifications/balloon_view_host_mac.mm

Issue 23361031: [Mac] Delete old balloon and Notification Center notification implementations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix DCHECK Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/cocoa/notifications/balloon_view_host_mac.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/notifications/balloon_view_host_mac.mm
diff --git a/chrome/browser/ui/cocoa/notifications/balloon_view_host_mac.mm b/chrome/browser/ui/cocoa/notifications/balloon_view_host_mac.mm
deleted file mode 100644
index a1303457220ae315c2777a17ca9a48b3e7d149f5..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/cocoa/notifications/balloon_view_host_mac.mm
+++ /dev/null
@@ -1,34 +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/cocoa/notifications/balloon_view_host_mac.h"
-
-#import <Cocoa/Cocoa.h>
-
-#include "content/public/browser/render_view_host.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) {
- web_contents_->GetView()->SizeContents(new_size);
- NSView* view = native_view();
- NSRect frame = [view frame];
- frame.size.width = new_size.width();
- frame.size.height = new_size.height();
-
- [view setFrame:frame];
- [view setNeedsDisplay:YES];
-}
-
-gfx::NativeView BalloonViewHost::native_view() const {
- return web_contents_->GetView()->GetContentNativeView();
-}
« no previous file with comments | « chrome/browser/ui/cocoa/notifications/balloon_view_host_mac.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698