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

Side by Side Diff: chrome/browser/ui/gtk/notifications/balloon_view_host_gtk.h

Issue 8536010: Cleanup: Remove unneeded forward declarations from chrome/browser/ui/gtk and chrome/browser/ui/co... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: address comments Created 9 years, 1 month 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
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_GTK_NOTIFICATIONS_BALLOON_VIEW_HOST_GTK_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_NOTIFICATIONS_BALLOON_VIEW_HOST_GTK_H_
6 #define CHROME_BROWSER_UI_GTK_NOTIFICATIONS_BALLOON_VIEW_HOST_GTK_H_ 6 #define CHROME_BROWSER_UI_GTK_NOTIFICATIONS_BALLOON_VIEW_HOST_GTK_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/notifications/balloon_host.h" 9 #include "chrome/browser/notifications/balloon_host.h"
10 #include "ui/gfx/native_widget_types.h" 10 #include "ui/gfx/native_widget_types.h"
11 11
12 class RenderWidgetHostViewGtk;
13
14 // BalloonViewHost class is a delegate to the renderer host for the HTML 12 // BalloonViewHost class is a delegate to the renderer host for the HTML
15 // notification. When initialized it creates a new RenderViewHost and loads 13 // notification. When initialized it creates a new RenderViewHost and loads
16 // the contents of the toast into it. It also handles links within the toast, 14 // the contents of the toast into it. It also handles links within the toast,
17 // loading them into a new tab. 15 // loading them into a new tab.
18 class BalloonViewHost : public BalloonHost { 16 class BalloonViewHost : public BalloonHost {
19 public: 17 public:
20 explicit BalloonViewHost(Balloon* balloon); 18 explicit BalloonViewHost(Balloon* balloon);
21 19
22 virtual ~BalloonViewHost(); 20 virtual ~BalloonViewHost();
23 21
24 // Changes the size of the balloon. 22 // Changes the size of the balloon.
25 void UpdateActualSize(const gfx::Size& new_size); 23 void UpdateActualSize(const gfx::Size& new_size);
26 24
27 // Accessors. 25 // Accessors.
28 gfx::NativeView native_view() const; 26 gfx::NativeView native_view() const;
29 27
30 private: 28 private:
31 DISALLOW_COPY_AND_ASSIGN(BalloonViewHost); 29 DISALLOW_COPY_AND_ASSIGN(BalloonViewHost);
32 }; 30 };
33 31
34 #endif // CHROME_BROWSER_UI_GTK_NOTIFICATIONS_BALLOON_VIEW_HOST_GTK_H_ 32 #endif // CHROME_BROWSER_UI_GTK_NOTIFICATIONS_BALLOON_VIEW_HOST_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/infobars/extension_infobar_gtk.h ('k') | chrome/browser/ui/gtk/reload_button_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698