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_TAB_CONTENTS_VIEW_GTK_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ |
6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ |
7 | 7 |
8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
9 | 9 |
10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 virtual void OnTabCrashed(); | 50 virtual void OnTabCrashed(); |
51 virtual void SizeContents(const gfx::Size& size); | 51 virtual void SizeContents(const gfx::Size& size); |
52 virtual void Focus(); | 52 virtual void Focus(); |
53 virtual void SetInitialFocus(); | 53 virtual void SetInitialFocus(); |
54 virtual void StoreFocus(); | 54 virtual void StoreFocus(); |
55 virtual void RestoreFocus(); | 55 virtual void RestoreFocus(); |
56 | 56 |
57 // Backend implementation of RenderViewHostDelegate::View. | 57 // Backend implementation of RenderViewHostDelegate::View. |
58 virtual void ShowContextMenu(const ContextMenuParams& params); | 58 virtual void ShowContextMenu(const ContextMenuParams& params); |
59 virtual void StartDragging(const WebDropData& drop_data, | 59 virtual void StartDragging(const WebDropData& drop_data, |
60 WebKit::WebDragOperationsMask allowed_ops); | 60 WebKit::WebDragOperationsMask allowed_ops, |
| 61 const SkBitmap& image, |
| 62 const gfx::Point& image_offset); |
61 virtual void UpdateDragCursor(WebKit::WebDragOperation operation); | 63 virtual void UpdateDragCursor(WebKit::WebDragOperation operation); |
62 virtual void GotFocus(); | 64 virtual void GotFocus(); |
63 virtual void TakeFocus(bool reverse); | 65 virtual void TakeFocus(bool reverse); |
64 | 66 |
65 // NotificationObserver implementation --------------------------------------- | 67 // NotificationObserver implementation --------------------------------------- |
66 | 68 |
67 virtual void Observe(NotificationType type, | 69 virtual void Observe(NotificationType type, |
68 const NotificationSource& source, | 70 const NotificationSource& source, |
69 const NotificationDetails& details); | 71 const NotificationDetails& details); |
70 | 72 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 scoped_ptr<TabContentsDragSource> drag_source_; | 134 scoped_ptr<TabContentsDragSource> drag_source_; |
133 | 135 |
134 // The size we want the tab contents view to be. We keep this in a separate | 136 // The size we want the tab contents view to be. We keep this in a separate |
135 // variable because resizing in GTK+ is async. | 137 // variable because resizing in GTK+ is async. |
136 gfx::Size requested_size_; | 138 gfx::Size requested_size_; |
137 | 139 |
138 DISALLOW_COPY_AND_ASSIGN(TabContentsViewGtk); | 140 DISALLOW_COPY_AND_ASSIGN(TabContentsViewGtk); |
139 }; | 141 }; |
140 | 142 |
141 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ | 143 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ |
OLD | NEW |