| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_UI_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_WIN_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_WIN_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_WIN_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_WIN_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/scoped_ptr.h" | 9 #include "base/scoped_ptr.h" |
| 10 #include "base/timer.h" | 10 #include "base/timer.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 // TabContentsView implementation -------------------------------------------- | 41 // TabContentsView implementation -------------------------------------------- |
| 42 | 42 |
| 43 virtual void CreateView(const gfx::Size& initial_size); | 43 virtual void CreateView(const gfx::Size& initial_size); |
| 44 virtual RenderWidgetHostView* CreateViewForWidget( | 44 virtual RenderWidgetHostView* CreateViewForWidget( |
| 45 RenderWidgetHost* render_widget_host); | 45 RenderWidgetHost* render_widget_host); |
| 46 virtual gfx::NativeView GetNativeView() const; | 46 virtual gfx::NativeView GetNativeView() const; |
| 47 virtual gfx::NativeView GetContentNativeView() const; | 47 virtual gfx::NativeView GetContentNativeView() const; |
| 48 virtual gfx::NativeWindow GetTopLevelNativeWindow() const; | 48 virtual gfx::NativeWindow GetTopLevelNativeWindow() const; |
| 49 virtual void GetContainerBounds(gfx::Rect* out) const; | 49 virtual void GetContainerBounds(gfx::Rect* out) const; |
| 50 virtual void SetPageTitle(const std::wstring& title); | 50 virtual void SetPageTitle(const std::wstring& title); |
| 51 virtual void OnTabCrashed(); | 51 virtual void OnTabCrashed(base::TerminationStatus status, |
| 52 int error_code); |
| 52 virtual void SizeContents(const gfx::Size& size); | 53 virtual void SizeContents(const gfx::Size& size); |
| 53 virtual void Focus(); | 54 virtual void Focus(); |
| 54 virtual void SetInitialFocus(); | 55 virtual void SetInitialFocus(); |
| 55 virtual void StoreFocus(); | 56 virtual void StoreFocus(); |
| 56 virtual void RestoreFocus(); | 57 virtual void RestoreFocus(); |
| 57 virtual bool IsDoingDrag() const; | 58 virtual bool IsDoingDrag() const; |
| 58 virtual void CancelDragAndCloseTab(); | 59 virtual void CancelDragAndCloseTab(); |
| 59 | 60 |
| 60 // Backend implementation of RenderViewHostDelegate::View. | 61 // Backend implementation of RenderViewHostDelegate::View. |
| 61 virtual void ShowContextMenu(const ContextMenuParams& params); | 62 virtual void ShowContextMenu(const ContextMenuParams& params); |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 // Used to close the tab after the stack has unwound. | 144 // Used to close the tab after the stack has unwound. |
| 144 base::OneShotTimer<TabContentsViewWin> close_tab_timer_; | 145 base::OneShotTimer<TabContentsViewWin> close_tab_timer_; |
| 145 | 146 |
| 146 // Used to handle the drag-and-drop. | 147 // Used to handle the drag-and-drop. |
| 147 scoped_refptr<TabContentsDragWin> drag_handler_; | 148 scoped_refptr<TabContentsDragWin> drag_handler_; |
| 148 | 149 |
| 149 DISALLOW_COPY_AND_ASSIGN(TabContentsViewWin); | 150 DISALLOW_COPY_AND_ASSIGN(TabContentsViewWin); |
| 150 }; | 151 }; |
| 151 | 152 |
| 152 #endif // CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_WIN_H_ | 153 #endif // CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_WIN_H_ |
| OLD | NEW |