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_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_VIEWS_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_VIEWS_H_ |
6 #define CHROME_BROWSER_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_VIEWS_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_VIEWS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/scoped_ptr.h" | 11 #include "base/scoped_ptr.h" |
12 #include "chrome/browser/tab_contents/tab_contents_view.h" | 12 #include "chrome/browser/tab_contents/tab_contents_view.h" |
13 #include "gfx/size.h" | 13 #include "gfx/size.h" |
14 #include "views/view.h" | 14 #include "views/view.h" |
15 | 15 |
16 class ConstrainedWindowGtk; | 16 class ConstrainedWindowGtk; |
(...skipping 28 matching lines...) Expand all Loading... |
45 | 45 |
46 // TabContentsView implementation | 46 // TabContentsView implementation |
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 virtual gfx::NativeView GetNativeView() const; | 50 virtual gfx::NativeView GetNativeView() const; |
51 virtual gfx::NativeView GetContentNativeView() const; | 51 virtual gfx::NativeView GetContentNativeView() const; |
52 virtual gfx::NativeWindow GetTopLevelNativeWindow() const; | 52 virtual gfx::NativeWindow GetTopLevelNativeWindow() const; |
53 virtual void GetContainerBounds(gfx::Rect* out) const; | 53 virtual void GetContainerBounds(gfx::Rect* out) const; |
54 virtual void SetPageTitle(const std::wstring& title); | 54 virtual void SetPageTitle(const std::wstring& title); |
55 virtual void OnTabCrashed(); | 55 virtual void OnTabCrashed(base::TerminationStatus status, |
| 56 int error_code); |
56 virtual void SizeContents(const gfx::Size& size); | 57 virtual void SizeContents(const gfx::Size& size); |
57 virtual void Focus(); | 58 virtual void Focus(); |
58 virtual void SetInitialFocus(); | 59 virtual void SetInitialFocus(); |
59 virtual void StoreFocus(); | 60 virtual void StoreFocus(); |
60 virtual void RestoreFocus(); | 61 virtual void RestoreFocus(); |
61 | 62 |
62 // views::View implementation | 63 // views::View implementation |
63 virtual void DidChangeBounds(const gfx::Rect& previous, | 64 virtual void DidChangeBounds(const gfx::Rect& previous, |
64 const gfx::Rect& current); | 65 const gfx::Rect& current); |
65 | 66 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 // Current size. See comment in WidgetGtk as to why this is cached. | 122 // Current size. See comment in WidgetGtk as to why this is cached. |
122 gfx::Size size_; | 123 gfx::Size size_; |
123 | 124 |
124 // Each individual UI for constrained dialogs currently displayed. The | 125 // Each individual UI for constrained dialogs currently displayed. The |
125 // objects in this vector are owned by the TabContents, not the view. | 126 // objects in this vector are owned by the TabContents, not the view. |
126 std::vector<ConstrainedWindowGtk*> constrained_windows_; | 127 std::vector<ConstrainedWindowGtk*> constrained_windows_; |
127 | 128 |
128 DISALLOW_COPY_AND_ASSIGN(TabContentsViewViews); | 129 DISALLOW_COPY_AND_ASSIGN(TabContentsViewViews); |
129 }; | 130 }; |
130 | 131 |
131 #endif // CHROME_BROWSER_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_VIEWS_H_ | 132 #endif // CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_VIEWS_H_ |
OLD | NEW |