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_MAC_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_MAC_H_ |
6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_MAC_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_MAC_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #import <Cocoa/Cocoa.h> | 9 #import <Cocoa/Cocoa.h> |
10 | 10 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 | 53 |
54 virtual void CreateView(const gfx::Size& initial_size); | 54 virtual void CreateView(const gfx::Size& initial_size); |
55 virtual RenderWidgetHostView* CreateViewForWidget( | 55 virtual RenderWidgetHostView* CreateViewForWidget( |
56 RenderWidgetHost* render_widget_host); | 56 RenderWidgetHost* render_widget_host); |
57 virtual gfx::NativeView GetNativeView() const; | 57 virtual gfx::NativeView GetNativeView() const; |
58 virtual gfx::NativeView GetContentNativeView() const; | 58 virtual gfx::NativeView GetContentNativeView() const; |
59 virtual gfx::NativeWindow GetTopLevelNativeWindow() const; | 59 virtual gfx::NativeWindow GetTopLevelNativeWindow() const; |
60 virtual void GetContainerBounds(gfx::Rect* out) const; | 60 virtual void GetContainerBounds(gfx::Rect* out) const; |
61 virtual void RenderViewCreated(RenderViewHost* host); | 61 virtual void RenderViewCreated(RenderViewHost* host); |
62 virtual void SetPageTitle(const std::wstring& title); | 62 virtual void SetPageTitle(const std::wstring& title); |
63 virtual void OnTabCrashed(); | 63 virtual void OnTabCrashed(base::TerminationStatus status, |
| 64 int error_code); |
64 virtual void SizeContents(const gfx::Size& size); | 65 virtual void SizeContents(const gfx::Size& size); |
65 virtual void Focus(); | 66 virtual void Focus(); |
66 virtual void SetInitialFocus(); | 67 virtual void SetInitialFocus(); |
67 virtual void StoreFocus(); | 68 virtual void StoreFocus(); |
68 virtual void RestoreFocus(); | 69 virtual void RestoreFocus(); |
69 virtual void UpdatePreferredSize(const gfx::Size& pref_size); | 70 virtual void UpdatePreferredSize(const gfx::Size& pref_size); |
70 virtual RenderWidgetHostView* CreateNewWidgetInternal( | 71 virtual RenderWidgetHostView* CreateNewWidgetInternal( |
71 int route_id, | 72 int route_id, |
72 WebKit::WebPopupType popup_type); | 73 WebKit::WebPopupType popup_type); |
73 virtual void ShowCreatedWidgetInternal(RenderWidgetHostView* widget_host_view, | 74 virtual void ShowCreatedWidgetInternal(RenderWidgetHostView* widget_host_view, |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 // visible. | 119 // visible. |
119 scoped_nsobject<SadTabController> sad_tab_; | 120 scoped_nsobject<SadTabController> sad_tab_; |
120 | 121 |
121 // The page content's intrinsic width. | 122 // The page content's intrinsic width. |
122 int preferred_width_; | 123 int preferred_width_; |
123 | 124 |
124 DISALLOW_COPY_AND_ASSIGN(TabContentsViewMac); | 125 DISALLOW_COPY_AND_ASSIGN(TabContentsViewMac); |
125 }; | 126 }; |
126 | 127 |
127 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_MAC_H_ | 128 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_MAC_H_ |
OLD | NEW |