| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
| 10 | 10 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 | 46 |
| 47 virtual void CreateView(const gfx::Size& initial_size); | 47 virtual void CreateView(const gfx::Size& initial_size); |
| 48 virtual RenderWidgetHostView* CreateViewForWidget( | 48 virtual RenderWidgetHostView* CreateViewForWidget( |
| 49 RenderWidgetHost* render_widget_host); | 49 RenderWidgetHost* render_widget_host); |
| 50 | 50 |
| 51 virtual gfx::NativeView GetNativeView() const; | 51 virtual gfx::NativeView GetNativeView() const; |
| 52 virtual gfx::NativeView GetContentNativeView() const; | 52 virtual gfx::NativeView GetContentNativeView() const; |
| 53 virtual gfx::NativeWindow GetTopLevelNativeWindow() const; | 53 virtual gfx::NativeWindow GetTopLevelNativeWindow() const; |
| 54 virtual void GetContainerBounds(gfx::Rect* out) const; | 54 virtual void GetContainerBounds(gfx::Rect* out) const; |
| 55 virtual void SetPageTitle(const std::wstring& title); | 55 virtual void SetPageTitle(const std::wstring& title); |
| 56 virtual void OnTabCrashed(); | 56 virtual void OnTabCrashed(base::TerminationStatus status, |
| 57 int error_code); |
| 57 virtual void SizeContents(const gfx::Size& size); | 58 virtual void SizeContents(const gfx::Size& size); |
| 58 virtual void Focus(); | 59 virtual void Focus(); |
| 59 virtual void SetInitialFocus(); | 60 virtual void SetInitialFocus(); |
| 60 virtual void StoreFocus(); | 61 virtual void StoreFocus(); |
| 61 virtual void RestoreFocus(); | 62 virtual void RestoreFocus(); |
| 62 | 63 |
| 63 // Backend implementation of RenderViewHostDelegate::View. | 64 // Backend implementation of RenderViewHostDelegate::View. |
| 64 virtual void ShowContextMenu(const ContextMenuParams& params); | 65 virtual void ShowContextMenu(const ContextMenuParams& params); |
| 65 virtual void ShowPopupMenu(const gfx::Rect& bounds, | 66 virtual void ShowPopupMenu(const gfx::Rect& bounds, |
| 66 int item_height, | 67 int item_height, |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 scoped_ptr<TabContentsDragSource> drag_source_; | 146 scoped_ptr<TabContentsDragSource> drag_source_; |
| 146 | 147 |
| 147 // The size we want the tab contents view to be. We keep this in a separate | 148 // The size we want the tab contents view to be. We keep this in a separate |
| 148 // variable because resizing in GTK+ is async. | 149 // variable because resizing in GTK+ is async. |
| 149 gfx::Size requested_size_; | 150 gfx::Size requested_size_; |
| 150 | 151 |
| 151 DISALLOW_COPY_AND_ASSIGN(TabContentsViewGtk); | 152 DISALLOW_COPY_AND_ASSIGN(TabContentsViewGtk); |
| 152 }; | 153 }; |
| 153 | 154 |
| 154 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ | 155 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ |
| OLD | NEW |