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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
10 | 10 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 virtual void OnTabCrashed(base::TerminationStatus status, | 53 virtual void OnTabCrashed(base::TerminationStatus status, |
54 int error_code) OVERRIDE; | 54 int error_code) OVERRIDE; |
55 virtual void SizeContents(const gfx::Size& size) OVERRIDE; | 55 virtual void SizeContents(const gfx::Size& size) OVERRIDE; |
56 virtual void RenderViewCreated(content::RenderViewHost* host) OVERRIDE; | 56 virtual void RenderViewCreated(content::RenderViewHost* host) OVERRIDE; |
57 virtual void Focus() OVERRIDE; | 57 virtual void Focus() OVERRIDE; |
58 virtual void SetInitialFocus() OVERRIDE; | 58 virtual void SetInitialFocus() OVERRIDE; |
59 virtual void StoreFocus() OVERRIDE; | 59 virtual void StoreFocus() OVERRIDE; |
60 virtual void RestoreFocus() OVERRIDE; | 60 virtual void RestoreFocus() OVERRIDE; |
61 virtual bool IsDoingDrag() const OVERRIDE; | 61 virtual bool IsDoingDrag() const OVERRIDE; |
62 virtual void CancelDragAndCloseTab() OVERRIDE; | 62 virtual void CancelDragAndCloseTab() OVERRIDE; |
| 63 virtual WebDropData* GetDropData() const OVERRIDE; |
63 virtual bool IsEventTracking() const OVERRIDE; | 64 virtual bool IsEventTracking() const OVERRIDE; |
64 virtual void CloseTabAfterEventTracking() OVERRIDE; | 65 virtual void CloseTabAfterEventTracking() OVERRIDE; |
65 virtual void GetViewBounds(gfx::Rect* out) const OVERRIDE; | 66 virtual void GetViewBounds(gfx::Rect* out) const OVERRIDE; |
66 | 67 |
67 // Backend implementation of RenderViewHostDelegate::View. | 68 // Backend implementation of RenderViewHostDelegate::View. |
68 virtual void CreateNewWindow( | 69 virtual void CreateNewWindow( |
69 int route_id, | 70 int route_id, |
70 const ViewHostMsg_CreateWindow_Params& params) OVERRIDE; | 71 const ViewHostMsg_CreateWindow_Params& params) OVERRIDE; |
71 virtual void CreateNewWidget(int route_id, | 72 virtual void CreateNewWidget(int route_id, |
72 WebKit::WebPopupType popup_type) OVERRIDE; | 73 WebKit::WebPopupType popup_type) OVERRIDE; |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 // The size we want the view to be. We keep this in a separate variable | 143 // The size we want the view to be. We keep this in a separate variable |
143 // because resizing in GTK+ is async. | 144 // because resizing in GTK+ is async. |
144 gfx::Size requested_size_; | 145 gfx::Size requested_size_; |
145 | 146 |
146 DISALLOW_COPY_AND_ASSIGN(WebContentsViewGtk); | 147 DISALLOW_COPY_AND_ASSIGN(WebContentsViewGtk); |
147 }; | 148 }; |
148 | 149 |
149 } // namespace content | 150 } // namespace content |
150 | 151 |
151 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GTK_H_ | 152 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GTK_H_ |
OLD | NEW |