| 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_TAB_CONTENTS_BACKGROUND_CONTENTS_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_BACKGROUND_CONTENTS_H_ |
| 6 #define CHROME_BROWSER_TAB_CONTENTS_BACKGROUND_CONTENTS_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_BACKGROUND_CONTENTS_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> |
| 10 | 11 |
| 11 #include "chrome/browser/js_modal_dialog.h" | 12 #include "chrome/browser/js_modal_dialog.h" |
| 12 #include "chrome/browser/renderer_host/render_view_host_delegate.h" | 13 #include "chrome/browser/renderer_host/render_view_host_delegate.h" |
| 13 #include "chrome/browser/tab_contents/render_view_host_delegate_helper.h" | 14 #include "chrome/browser/tab_contents/render_view_host_delegate_helper.h" |
| 14 #include "chrome/common/notification_registrar.h" | 15 #include "chrome/common/notification_registrar.h" |
| 15 #include "chrome/common/view_types.h" | 16 #include "chrome/common/view_types.h" |
| 16 #include "chrome/common/window_container_type.h" | 17 #include "chrome/common/window_container_type.h" |
| 17 #include "webkit/glue/window_open_disposition.h" | 18 #include "webkit/glue/window_open_disposition.h" |
| 18 | 19 |
| 19 class TabContents; | 20 class TabContents; |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 virtual void CreateNewFullscreenWidget( | 84 virtual void CreateNewFullscreenWidget( |
| 84 int route_id, WebKit::WebPopupType popup_type); | 85 int route_id, WebKit::WebPopupType popup_type); |
| 85 virtual void ShowCreatedWindow(int route_id, | 86 virtual void ShowCreatedWindow(int route_id, |
| 86 WindowOpenDisposition disposition, | 87 WindowOpenDisposition disposition, |
| 87 const gfx::Rect& initial_pos, | 88 const gfx::Rect& initial_pos, |
| 88 bool user_gesture); | 89 bool user_gesture); |
| 89 virtual void ShowCreatedWidget(int route_id, | 90 virtual void ShowCreatedWidget(int route_id, |
| 90 const gfx::Rect& initial_pos); | 91 const gfx::Rect& initial_pos); |
| 91 virtual void ShowCreatedFullscreenWidget(int route_id); | 92 virtual void ShowCreatedFullscreenWidget(int route_id); |
| 92 virtual void ShowContextMenu(const ContextMenuParams& params) {} | 93 virtual void ShowContextMenu(const ContextMenuParams& params) {} |
| 94 virtual void ShowPopupMenu(const gfx::Rect& bounds, |
| 95 int item_height, |
| 96 double item_font_size, |
| 97 int selected_item, |
| 98 const std::vector<WebMenuItem>& items, |
| 99 bool right_aligned) {} |
| 93 virtual void StartDragging(const WebDropData& drop_data, | 100 virtual void StartDragging(const WebDropData& drop_data, |
| 94 WebKit::WebDragOperationsMask allowed_operations, | 101 WebKit::WebDragOperationsMask allowed_operations, |
| 95 const SkBitmap& image, | 102 const SkBitmap& image, |
| 96 const gfx::Point& image_offset) {} | 103 const gfx::Point& image_offset) {} |
| 97 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) {} | 104 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) {} |
| 98 virtual void GotFocus() {} | 105 virtual void GotFocus() {} |
| 99 virtual void TakeFocus(bool reverse) {} | 106 virtual void TakeFocus(bool reverse) {} |
| 100 virtual void LostCapture() {} | 107 virtual void LostCapture() {} |
| 101 virtual void Activate() {} | 108 virtual void Activate() {} |
| 102 virtual void Deactivate() {} | 109 virtual void Deactivate() {} |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 BackgroundContents* contents; | 163 BackgroundContents* contents; |
| 157 | 164 |
| 158 // The name of the parent frame for these contents. | 165 // The name of the parent frame for these contents. |
| 159 const string16& frame_name; | 166 const string16& frame_name; |
| 160 | 167 |
| 161 // The ID of the parent application (if any). | 168 // The ID of the parent application (if any). |
| 162 const string16& application_id; | 169 const string16& application_id; |
| 163 }; | 170 }; |
| 164 | 171 |
| 165 #endif // CHROME_BROWSER_TAB_CONTENTS_BACKGROUND_CONTENTS_H_ | 172 #endif // CHROME_BROWSER_TAB_CONTENTS_BACKGROUND_CONTENTS_H_ |
| OLD | NEW |