OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GTK_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GTK_H_ |
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GTK_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GTK_H_ |
7 | 7 |
8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 virtual void RestoreFocus() OVERRIDE; | 64 virtual void RestoreFocus() OVERRIDE; |
65 virtual bool IsDoingDrag() const OVERRIDE; | 65 virtual bool IsDoingDrag() const OVERRIDE; |
66 virtual void CancelDragAndCloseTab() OVERRIDE; | 66 virtual void CancelDragAndCloseTab() OVERRIDE; |
67 virtual WebDropData* GetDropData() const OVERRIDE; | 67 virtual WebDropData* GetDropData() const OVERRIDE; |
68 virtual bool IsEventTracking() const OVERRIDE; | 68 virtual bool IsEventTracking() const OVERRIDE; |
69 virtual void CloseTabAfterEventTracking() OVERRIDE; | 69 virtual void CloseTabAfterEventTracking() OVERRIDE; |
70 virtual gfx::Rect GetViewBounds() const OVERRIDE; | 70 virtual gfx::Rect GetViewBounds() const OVERRIDE; |
71 | 71 |
72 // Backend implementation of RenderViewHostDelegateView. | 72 // Backend implementation of RenderViewHostDelegateView. |
73 virtual void ShowContextMenu( | 73 virtual void ShowContextMenu( |
74 const content::ContextMenuParams& params) OVERRIDE; | 74 const content::ContextMenuParams& params, |
| 75 const content::ContextMenuSourceType& type) OVERRIDE; |
75 virtual void ShowPopupMenu(const gfx::Rect& bounds, | 76 virtual void ShowPopupMenu(const gfx::Rect& bounds, |
76 int item_height, | 77 int item_height, |
77 double item_font_size, | 78 double item_font_size, |
78 int selected_item, | 79 int selected_item, |
79 const std::vector<WebMenuItem>& items, | 80 const std::vector<WebMenuItem>& items, |
80 bool right_aligned, | 81 bool right_aligned, |
81 bool allow_multiple_selection) OVERRIDE; | 82 bool allow_multiple_selection) OVERRIDE; |
82 virtual void StartDragging(const WebDropData& drop_data, | 83 virtual void StartDragging(const WebDropData& drop_data, |
83 WebKit::WebDragOperationsMask allowed_ops, | 84 WebKit::WebDragOperationsMask allowed_ops, |
84 const gfx::ImageSkia& image, | 85 const gfx::ImageSkia& image, |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 // The size we want the view to be. We keep this in a separate variable | 133 // The size we want the view to be. We keep this in a separate variable |
133 // because resizing in GTK+ is async. | 134 // because resizing in GTK+ is async. |
134 gfx::Size requested_size_; | 135 gfx::Size requested_size_; |
135 | 136 |
136 DISALLOW_COPY_AND_ASSIGN(WebContentsViewGtk); | 137 DISALLOW_COPY_AND_ASSIGN(WebContentsViewGtk); |
137 }; | 138 }; |
138 | 139 |
139 } // namespace content | 140 } // namespace content |
140 | 141 |
141 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GTK_H_ | 142 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GTK_H_ |
OLD | NEW |