| 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_GTK_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ |
| 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
| 10 | 10 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 virtual gfx::NativeWindow GetTopLevelNativeWindow() const; | 53 virtual gfx::NativeWindow GetTopLevelNativeWindow() const; |
| 54 virtual void GetContainerBounds(gfx::Rect* out) const; | 54 virtual void GetContainerBounds(gfx::Rect* out) const; |
| 55 virtual void SetPageTitle(const std::wstring& title); | 55 virtual void SetPageTitle(const std::wstring& title); |
| 56 virtual void OnTabCrashed(base::TerminationStatus status, | 56 virtual void OnTabCrashed(base::TerminationStatus status, |
| 57 int error_code); | 57 int error_code); |
| 58 virtual void SizeContents(const gfx::Size& size); | 58 virtual void SizeContents(const gfx::Size& size); |
| 59 virtual void Focus(); | 59 virtual void Focus(); |
| 60 virtual void SetInitialFocus(); | 60 virtual void SetInitialFocus(); |
| 61 virtual void StoreFocus(); | 61 virtual void StoreFocus(); |
| 62 virtual void RestoreFocus(); | 62 virtual void RestoreFocus(); |
| 63 virtual void GetViewBounds(gfx::Rect* out) const; |
| 63 | 64 |
| 64 // Backend implementation of RenderViewHostDelegate::View. | 65 // Backend implementation of RenderViewHostDelegate::View. |
| 65 virtual void ShowContextMenu(const ContextMenuParams& params); | 66 virtual void ShowContextMenu(const ContextMenuParams& params); |
| 66 virtual void ShowPopupMenu(const gfx::Rect& bounds, | 67 virtual void ShowPopupMenu(const gfx::Rect& bounds, |
| 67 int item_height, | 68 int item_height, |
| 68 double item_font_size, | 69 double item_font_size, |
| 69 int selected_item, | 70 int selected_item, |
| 70 const std::vector<WebMenuItem>& items, | 71 const std::vector<WebMenuItem>& items, |
| 71 bool right_aligned); | 72 bool right_aligned); |
| 72 virtual void StartDragging(const WebDropData& drop_data, | 73 virtual void StartDragging(const WebDropData& drop_data, |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 scoped_ptr<TabContentsDragSource> drag_source_; | 147 scoped_ptr<TabContentsDragSource> drag_source_; |
| 147 | 148 |
| 148 // The size we want the tab contents view to be. We keep this in a separate | 149 // The size we want the tab contents view to be. We keep this in a separate |
| 149 // variable because resizing in GTK+ is async. | 150 // variable because resizing in GTK+ is async. |
| 150 gfx::Size requested_size_; | 151 gfx::Size requested_size_; |
| 151 | 152 |
| 152 DISALLOW_COPY_AND_ASSIGN(TabContentsViewGtk); | 153 DISALLOW_COPY_AND_ASSIGN(TabContentsViewGtk); |
| 153 }; | 154 }; |
| 154 | 155 |
| 155 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ | 156 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ |
| OLD | NEW |