| 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_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 virtual gfx::NativeWindow GetTopLevelNativeWindow() const; | 56 virtual gfx::NativeWindow GetTopLevelNativeWindow() const; |
| 57 virtual void GetContainerBounds(gfx::Rect* out) const; | 57 virtual void GetContainerBounds(gfx::Rect* out) const; |
| 58 virtual void SetPageTitle(const std::wstring& title); | 58 virtual void SetPageTitle(const std::wstring& title); |
| 59 virtual void OnTabCrashed(base::TerminationStatus status, | 59 virtual void OnTabCrashed(base::TerminationStatus status, |
| 60 int error_code); | 60 int error_code); |
| 61 virtual void SizeContents(const gfx::Size& size); | 61 virtual void SizeContents(const gfx::Size& size); |
| 62 virtual void Focus(); | 62 virtual void Focus(); |
| 63 virtual void SetInitialFocus(); | 63 virtual void SetInitialFocus(); |
| 64 virtual void StoreFocus(); | 64 virtual void StoreFocus(); |
| 65 virtual void RestoreFocus(); | 65 virtual void RestoreFocus(); |
| 66 virtual void GetViewBounds(gfx::Rect* out) const; |
| 66 | 67 |
| 67 // Backend implementation of RenderViewHostDelegate::View. | 68 // Backend implementation of RenderViewHostDelegate::View. |
| 68 virtual void ShowContextMenu(const ContextMenuParams& params); | 69 virtual void ShowContextMenu(const ContextMenuParams& params); |
| 69 virtual void ShowPopupMenu(const gfx::Rect& bounds, | 70 virtual void ShowPopupMenu(const gfx::Rect& bounds, |
| 70 int item_height, | 71 int item_height, |
| 71 double item_font_size, | 72 double item_font_size, |
| 72 int selected_item, | 73 int selected_item, |
| 73 const std::vector<WebMenuItem>& items, | 74 const std::vector<WebMenuItem>& items, |
| 74 bool right_aligned); | 75 bool right_aligned); |
| 75 virtual void StartDragging(const WebDropData& drop_data, | 76 virtual void StartDragging(const WebDropData& drop_data, |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 gfx::Size size_; | 134 gfx::Size size_; |
| 134 | 135 |
| 135 // Each individual UI for constrained dialogs currently displayed. The | 136 // Each individual UI for constrained dialogs currently displayed. The |
| 136 // objects in this vector are owned by the TabContents, not the view. | 137 // objects in this vector are owned by the TabContents, not the view. |
| 137 std::vector<ConstrainedWindowGtk*> constrained_windows_; | 138 std::vector<ConstrainedWindowGtk*> constrained_windows_; |
| 138 | 139 |
| 139 DISALLOW_COPY_AND_ASSIGN(TabContentsViewGtk); | 140 DISALLOW_COPY_AND_ASSIGN(TabContentsViewGtk); |
| 140 }; | 141 }; |
| 141 | 142 |
| 142 #endif // CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ | 143 #endif // CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ |
| OLD | NEW |