Chromium Code Reviews| 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_UI_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_UI_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 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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(base::TerminationStatus status, | 55 virtual void OnTabCrashed(base::TerminationStatus status, |
| 56 int error_code); | 56 int error_code); |
| 57 virtual void SizeContents(const gfx::Size& size); | 57 virtual void SizeContents(const gfx::Size& size); |
| 58 virtual void Focus(); | 58 virtual void Focus(); |
| 59 virtual void SetInitialFocus(); | 59 virtual void SetInitialFocus(); |
| 60 virtual void StoreFocus(); | 60 virtual void StoreFocus(); |
| 61 virtual void RestoreFocus(); | 61 virtual void RestoreFocus(); |
| 62 virtual void GetViewBounds(gfx::Rect* out) const { | |
|
sky
2011/01/18 17:19:48
Don't inline virtual methods.
varunjain
2011/01/18 20:25:32
Done.
| |
| 63 out->SetRect(x(), y(), width(), height()); | |
| 64 } | |
| 62 | 65 |
| 63 // views::View implementation | 66 // views::View implementation |
| 64 virtual void DidChangeBounds(const gfx::Rect& previous, | 67 virtual void DidChangeBounds(const gfx::Rect& previous, |
| 65 const gfx::Rect& current); | 68 const gfx::Rect& current); |
| 66 | 69 |
| 67 virtual void Paint(gfx::Canvas* canvas); | 70 virtual void Paint(gfx::Canvas* canvas); |
| 68 | 71 |
| 69 // Backend implementation of RenderViewHostDelegate::View. | 72 // Backend implementation of RenderViewHostDelegate::View. |
| 70 virtual void ShowContextMenu(const ContextMenuParams& params); | 73 virtual void ShowContextMenu(const ContextMenuParams& params); |
| 71 virtual void ShowPopupMenu(const gfx::Rect& bounds, | 74 virtual void ShowPopupMenu(const gfx::Rect& bounds, |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 123 gfx::Size size_; | 126 gfx::Size size_; |
| 124 | 127 |
| 125 // Each individual UI for constrained dialogs currently displayed. The | 128 // Each individual UI for constrained dialogs currently displayed. The |
| 126 // objects in this vector are owned by the TabContents, not the view. | 129 // objects in this vector are owned by the TabContents, not the view. |
| 127 std::vector<ConstrainedWindowGtk*> constrained_windows_; | 130 std::vector<ConstrainedWindowGtk*> constrained_windows_; |
| 128 | 131 |
| 129 DISALLOW_COPY_AND_ASSIGN(TabContentsViewViews); | 132 DISALLOW_COPY_AND_ASSIGN(TabContentsViewViews); |
| 130 }; | 133 }; |
| 131 | 134 |
| 132 #endif // CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_VIEWS_H_ | 135 #endif // CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_VIEWS_H_ |
| OLD | NEW |