| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_NOTIFICATIONS_BALLOON_HOST_H_ | 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_ |
| 6 #define CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_ | 6 #define CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> |
| 10 | 11 |
| 11 #include "chrome/browser/extensions/extension_function_dispatcher.h" | 12 #include "chrome/browser/extensions/extension_function_dispatcher.h" |
| 12 #include "chrome/browser/notifications/balloon.h" | 13 #include "chrome/browser/notifications/balloon.h" |
| 13 #include "chrome/browser/notifications/notification.h" | 14 #include "chrome/browser/notifications/notification.h" |
| 14 #include "chrome/browser/renderer_host/render_view_host_delegate.h" | 15 #include "chrome/browser/renderer_host/render_view_host_delegate.h" |
| 15 #include "chrome/browser/renderer_host/site_instance.h" | 16 #include "chrome/browser/renderer_host/site_instance.h" |
| 16 #include "chrome/browser/tab_contents/render_view_host_delegate_helper.h" | 17 #include "chrome/browser/tab_contents/render_view_host_delegate_helper.h" |
| 17 #include "chrome/common/extensions/extension_constants.h" | 18 #include "chrome/common/extensions/extension_constants.h" |
| 18 #include "chrome/common/renderer_preferences.h" | 19 #include "chrome/common/renderer_preferences.h" |
| 19 #include "webkit/glue/webpreferences.h" | 20 #include "webkit/glue/webpreferences.h" |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 virtual void CreateNewFullscreenWidget( | 71 virtual void CreateNewFullscreenWidget( |
| 71 int route_id, WebKit::WebPopupType popup_type) {} | 72 int route_id, WebKit::WebPopupType popup_type) {} |
| 72 virtual void ShowCreatedWindow(int route_id, | 73 virtual void ShowCreatedWindow(int route_id, |
| 73 WindowOpenDisposition disposition, | 74 WindowOpenDisposition disposition, |
| 74 const gfx::Rect& initial_pos, | 75 const gfx::Rect& initial_pos, |
| 75 bool user_gesture); | 76 bool user_gesture); |
| 76 virtual void ShowCreatedWidget(int route_id, | 77 virtual void ShowCreatedWidget(int route_id, |
| 77 const gfx::Rect& initial_pos) {} | 78 const gfx::Rect& initial_pos) {} |
| 78 virtual void ShowCreatedFullscreenWidget(int route_id) {} | 79 virtual void ShowCreatedFullscreenWidget(int route_id) {} |
| 79 virtual void ShowContextMenu(const ContextMenuParams& params) {} | 80 virtual void ShowContextMenu(const ContextMenuParams& params) {} |
| 81 virtual void ShowPopupMenu(const gfx::Rect& bounds, |
| 82 int item_height, |
| 83 double item_font_size, |
| 84 int selected_item, |
| 85 const std::vector<WebMenuItem>& items, |
| 86 bool right_aligned) {} |
| 80 virtual void StartDragging(const WebDropData& drop_data, | 87 virtual void StartDragging(const WebDropData& drop_data, |
| 81 WebKit::WebDragOperationsMask allowed_ops) {} | 88 WebKit::WebDragOperationsMask allowed_ops) {} |
| 82 virtual void StartDragging(const WebDropData&, | 89 virtual void StartDragging(const WebDropData&, |
| 83 WebKit::WebDragOperationsMask, | 90 WebKit::WebDragOperationsMask, |
| 84 const SkBitmap&, | 91 const SkBitmap&, |
| 85 const gfx::Point&) {} | 92 const gfx::Point&) {} |
| 86 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) {} | 93 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) {} |
| 87 virtual void GotFocus() {} | 94 virtual void GotFocus() {} |
| 88 virtual void TakeFocus(bool reverse) {} | 95 virtual void TakeFocus(bool reverse) {} |
| 89 virtual void LostCapture() {} | 96 virtual void LostCapture() {} |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 | 149 |
| 143 // Handles requests to extension APIs. Will only be non-NULL if we are | 150 // Handles requests to extension APIs. Will only be non-NULL if we are |
| 144 // rendering a page from an extension. | 151 // rendering a page from an extension. |
| 145 scoped_ptr<ExtensionFunctionDispatcher> extension_function_dispatcher_; | 152 scoped_ptr<ExtensionFunctionDispatcher> extension_function_dispatcher_; |
| 146 | 153 |
| 147 // A flag to enable DOM UI. | 154 // A flag to enable DOM UI. |
| 148 bool enable_dom_ui_; | 155 bool enable_dom_ui_; |
| 149 }; | 156 }; |
| 150 | 157 |
| 151 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_ | 158 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_ |
| OLD | NEW |