Disable TabDragController tests that fail with a real compositor.
[chromium-blink-merge.git] / chrome / browser / ui / gtk / notifications / balloon_view_host_gtk.h
blob3b64b8687cea539fa24b33f6972ae814d0a05b59
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.
5 #ifndef CHROME_BROWSER_UI_GTK_NOTIFICATIONS_BALLOON_VIEW_HOST_GTK_H_
6 #define CHROME_BROWSER_UI_GTK_NOTIFICATIONS_BALLOON_VIEW_HOST_GTK_H_
8 #include "chrome/browser/notifications/balloon_host.h"
9 #include "ui/gfx/native_widget_types.h"
11 // BalloonViewHost class is a delegate to the renderer host for the HTML
12 // notification. When initialized it creates a new RenderViewHost and loads
13 // the contents of the toast into it. It also handles links within the toast,
14 // loading them into a new tab.
15 class BalloonViewHost : public BalloonHost {
16 public:
17 explicit BalloonViewHost(Balloon* balloon);
19 virtual ~BalloonViewHost();
21 // Changes the size of the balloon.
22 void UpdateActualSize(const gfx::Size& new_size);
24 // Accessors.
25 gfx::NativeView native_view() const;
27 private:
28 DISALLOW_COPY_AND_ASSIGN(BalloonViewHost);
31 #endif // CHROME_BROWSER_UI_GTK_NOTIFICATIONS_BALLOON_VIEW_HOST_GTK_H_