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

Side by Side Diff: chrome/browser/ui/cocoa/notifications/balloon_view_host_mac.h

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, 3 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_COCOA_NOTIFICATIONS_BALLOON_VIEW_HOST_MAC_H_
6 #define CHROME_BROWSER_UI_COCOA_NOTIFICATIONS_BALLOON_VIEW_HOST_MAC_H_
7
8 #include "chrome/browser/notifications/balloon_host.h"
9
10 // BalloonViewHost class is a delegate to the renderer host for the HTML
11 // notification. When initialized it creates a new RenderViewHost and loads
12 // the contents of the toast into it. It also handles links within the toast,
13 // loading them into a new tab.
14 class BalloonViewHost : public BalloonHost {
15 public:
16 explicit BalloonViewHost(Balloon* balloon);
17
18 virtual ~BalloonViewHost();
19
20 // Changes the size of the balloon.
21 void UpdateActualSize(const gfx::Size& new_size);
22
23 // Accessors.
24 gfx::NativeView native_view() const;
25
26 private:
27 DISALLOW_COPY_AND_ASSIGN(BalloonViewHost);
28 };
29
30 #endif // CHROME_BROWSER_UI_COCOA_NOTIFICATIONS_BALLOON_VIEW_HOST_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698