| 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; | |
| 64 virtual bool IsEventTracking() const OVERRIDE; | 63 virtual bool IsEventTracking() const OVERRIDE; |
| 65 virtual void CloseTabAfterEventTracking() OVERRIDE; | 64 virtual void CloseTabAfterEventTracking() OVERRIDE; |
| 66 virtual void GetViewBounds(gfx::Rect* out) const OVERRIDE; | 65 virtual void GetViewBounds(gfx::Rect* out) const OVERRIDE; |
| 67 | 66 |
| 68 // Backend implementation of RenderViewHostDelegate::View. | 67 // Backend implementation of RenderViewHostDelegate::View. |
| 69 virtual void CreateNewWindow( | 68 virtual void CreateNewWindow( |
| 70 int route_id, | 69 int route_id, |
| 71 const ViewHostMsg_CreateWindow_Params& params) OVERRIDE; | 70 const ViewHostMsg_CreateWindow_Params& params) OVERRIDE; |
| 72 virtual void CreateNewWidget(int route_id, | 71 virtual void CreateNewWidget(int route_id, |
| 73 WebKit::WebPopupType popup_type) OVERRIDE; | 72 WebKit::WebPopupType popup_type) OVERRIDE; |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 // The size we want the view to be. We keep this in a separate variable | 142 // The size we want the view to be. We keep this in a separate variable |
| 144 // because resizing in GTK+ is async. | 143 // because resizing in GTK+ is async. |
| 145 gfx::Size requested_size_; | 144 gfx::Size requested_size_; |
| 146 | 145 |
| 147 DISALLOW_COPY_AND_ASSIGN(WebContentsViewGtk); | 146 DISALLOW_COPY_AND_ASSIGN(WebContentsViewGtk); |
| 148 }; | 147 }; |
| 149 | 148 |
| 150 } // namespace content | 149 } // namespace content |
| 151 | 150 |
| 152 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GTK_H_ | 151 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GTK_H_ |
| OLD | NEW |