OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // TabContentsView implementation -------------------------------------------- | 46 // TabContentsView implementation -------------------------------------------- |
47 | 47 |
48 virtual void CreateView(const gfx::Size& initial_size) OVERRIDE; | 48 virtual void CreateView(const gfx::Size& initial_size) OVERRIDE; |
49 virtual RenderWidgetHostView* CreateViewForWidget( | 49 virtual RenderWidgetHostView* CreateViewForWidget( |
50 RenderWidgetHost* render_widget_host) OVERRIDE; | 50 RenderWidgetHost* render_widget_host) OVERRIDE; |
51 | 51 |
52 virtual gfx::NativeView GetNativeView() const OVERRIDE; | 52 virtual gfx::NativeView GetNativeView() const OVERRIDE; |
53 virtual gfx::NativeView GetContentNativeView() const OVERRIDE; | 53 virtual gfx::NativeView GetContentNativeView() const OVERRIDE; |
54 virtual gfx::NativeWindow GetTopLevelNativeWindow() const OVERRIDE; | 54 virtual gfx::NativeWindow GetTopLevelNativeWindow() const OVERRIDE; |
55 virtual void GetContainerBounds(gfx::Rect* out) const OVERRIDE; | 55 virtual void GetContainerBounds(gfx::Rect* out) const OVERRIDE; |
56 virtual void SetPageTitle(const std::wstring& title) OVERRIDE; | 56 virtual void SetPageTitle(const string16& title) OVERRIDE; |
57 virtual void OnTabCrashed(base::TerminationStatus status, | 57 virtual void OnTabCrashed(base::TerminationStatus status, |
58 int error_code) OVERRIDE; | 58 int error_code) OVERRIDE; |
59 virtual void SizeContents(const gfx::Size& size) OVERRIDE; | 59 virtual void SizeContents(const gfx::Size& size) OVERRIDE; |
60 virtual void RenderViewCreated(RenderViewHost* host) OVERRIDE; | 60 virtual void RenderViewCreated(RenderViewHost* host) OVERRIDE; |
61 virtual void Focus() OVERRIDE; | 61 virtual void Focus() OVERRIDE; |
62 virtual void SetInitialFocus() OVERRIDE; | 62 virtual void SetInitialFocus() OVERRIDE; |
63 virtual void StoreFocus() OVERRIDE; | 63 virtual void StoreFocus() OVERRIDE; |
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; |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 scoped_ptr<TabContentsDragSource> drag_source_; | 163 scoped_ptr<TabContentsDragSource> drag_source_; |
164 | 164 |
165 // The size we want the tab contents view to be. We keep this in a separate | 165 // The size we want the tab contents view to be. We keep this in a separate |
166 // variable because resizing in GTK+ is async. | 166 // variable because resizing in GTK+ is async. |
167 gfx::Size requested_size_; | 167 gfx::Size requested_size_; |
168 | 168 |
169 DISALLOW_COPY_AND_ASSIGN(TabContentsViewGtk); | 169 DISALLOW_COPY_AND_ASSIGN(TabContentsViewGtk); |
170 }; | 170 }; |
171 | 171 |
172 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ | 172 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ |
OLD | NEW |