diff options
Diffstat (limited to 'chrome/browser/notifications/balloon_host.h')
-rw-r--r-- | chrome/browser/notifications/balloon_host.h | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/chrome/browser/notifications/balloon_host.h b/chrome/browser/notifications/balloon_host.h index 1c8b088..4e51eba 100644 --- a/chrome/browser/notifications/balloon_host.h +++ b/chrome/browser/notifications/balloon_host.h @@ -7,19 +7,18 @@ #pragma once #include <string> +#include <vector> #include "chrome/browser/extensions/extension_function_dispatcher.h" -#include "chrome/browser/notifications/balloon.h" -#include "chrome/browser/notifications/notification.h" #include "chrome/browser/renderer_host/render_view_host_delegate.h" -#include "chrome/browser/renderer_host/site_instance.h" #include "chrome/browser/tab_contents/render_view_host_delegate_helper.h" -#include "chrome/common/extensions/extension_constants.h" -#include "chrome/common/renderer_preferences.h" -#include "webkit/glue/webpreferences.h" +class Balloon; class Browser; class Profile; +class SiteInstance; +struct RendererPreferences; +struct WebPreferences; class BalloonHost : public RenderViewHostDelegate, public RenderViewHostDelegate::View, @@ -40,9 +39,7 @@ class BalloonHost : public RenderViewHostDelegate, RenderViewHost* render_view_host() const { return render_view_host_; } - const string16& GetSource() const { - return balloon_->notification().display_source(); - } + const string16& GetSource() const; // RenderViewHostDelegate overrides. virtual WebPreferences GetWebkitPrefs(); @@ -77,6 +74,12 @@ class BalloonHost : public RenderViewHostDelegate, const gfx::Rect& initial_pos) {} virtual void ShowCreatedFullscreenWidget(int route_id) {} virtual void ShowContextMenu(const ContextMenuParams& params) {} + virtual void ShowPopupMenu(const gfx::Rect& bounds, + int item_height, + double item_font_size, + int selected_item, + const std::vector<WebMenuItem>& items, + bool right_aligned) {} virtual void StartDragging(const WebDropData& drop_data, WebKit::WebDragOperationsMask allowed_ops) {} virtual void StartDragging(const WebDropData&, |