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); | |
63 virtual void UpdateDragCursor(WebKit::WebDragOperation operation); | 61 virtual void UpdateDragCursor(WebKit::WebDragOperation operation); |
64 virtual void GotFocus(); | 62 virtual void GotFocus(); |
65 virtual void TakeFocus(bool reverse); | 63 virtual void TakeFocus(bool reverse); |
66 | 64 |
67 // NotificationObserver implementation --------------------------------------- | 65 // NotificationObserver implementation --------------------------------------- |
68 | 66 |
69 virtual void Observe(NotificationType type, | 67 virtual void Observe(NotificationType type, |
70 const NotificationSource& source, | 68 const NotificationSource& source, |
71 const NotificationDetails& details); | 69 const NotificationDetails& details); |
72 | 70 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 scoped_ptr<TabContentsDragSource> drag_source_; | 132 scoped_ptr<TabContentsDragSource> drag_source_; |
135 | 133 |
136 // The size we want the tab contents view to be. We keep this in a separate | 134 // The size we want the tab contents view to be. We keep this in a separate |
137 // variable because resizing in GTK+ is async. | 135 // variable because resizing in GTK+ is async. |
138 gfx::Size requested_size_; | 136 gfx::Size requested_size_; |
139 | 137 |
140 DISALLOW_COPY_AND_ASSIGN(TabContentsViewGtk); | 138 DISALLOW_COPY_AND_ASSIGN(TabContentsViewGtk); |
141 }; | 139 }; |
142 | 140 |
143 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ | 141 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ |
OLD | NEW |