| 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_MAC_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_MAC_H_ |
| 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_MAC_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_MAC_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #import <Cocoa/Cocoa.h> | 9 #import <Cocoa/Cocoa.h> |
| 10 | 10 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 virtual void StoreFocus(); | 68 virtual void StoreFocus(); |
| 69 virtual void RestoreFocus(); | 69 virtual void RestoreFocus(); |
| 70 virtual void UpdatePreferredSize(const gfx::Size& pref_size); | 70 virtual void UpdatePreferredSize(const gfx::Size& pref_size); |
| 71 virtual RenderWidgetHostView* CreateNewWidgetInternal( | 71 virtual RenderWidgetHostView* CreateNewWidgetInternal( |
| 72 int route_id, | 72 int route_id, |
| 73 WebKit::WebPopupType popup_type); | 73 WebKit::WebPopupType popup_type); |
| 74 virtual void ShowCreatedWidgetInternal(RenderWidgetHostView* widget_host_view, | 74 virtual void ShowCreatedWidgetInternal(RenderWidgetHostView* widget_host_view, |
| 75 const gfx::Rect& initial_pos); | 75 const gfx::Rect& initial_pos); |
| 76 virtual bool IsEventTracking() const; | 76 virtual bool IsEventTracking() const; |
| 77 virtual void CloseTabAfterEventTracking(); | 77 virtual void CloseTabAfterEventTracking(); |
| 78 virtual void GetViewBounds(gfx::Rect* out) const; |
| 78 | 79 |
| 79 // Backend implementation of RenderViewHostDelegate::View. | 80 // Backend implementation of RenderViewHostDelegate::View. |
| 80 virtual void ShowContextMenu(const ContextMenuParams& params); | 81 virtual void ShowContextMenu(const ContextMenuParams& params); |
| 81 virtual void ShowPopupMenu(const gfx::Rect& bounds, | 82 virtual void ShowPopupMenu(const gfx::Rect& bounds, |
| 82 int item_height, | 83 int item_height, |
| 83 double item_font_size, | 84 double item_font_size, |
| 84 int selected_item, | 85 int selected_item, |
| 85 const std::vector<WebMenuItem>& items, | 86 const std::vector<WebMenuItem>& items, |
| 86 bool right_aligned); | 87 bool right_aligned); |
| 87 virtual void StartDragging(const WebDropData& drop_data, | 88 virtual void StartDragging(const WebDropData& drop_data, |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 // visible. | 120 // visible. |
| 120 scoped_nsobject<SadTabController> sad_tab_; | 121 scoped_nsobject<SadTabController> sad_tab_; |
| 121 | 122 |
| 122 // The page content's intrinsic width. | 123 // The page content's intrinsic width. |
| 123 int preferred_width_; | 124 int preferred_width_; |
| 124 | 125 |
| 125 DISALLOW_COPY_AND_ASSIGN(TabContentsViewMac); | 126 DISALLOW_COPY_AND_ASSIGN(TabContentsViewMac); |
| 126 }; | 127 }; |
| 127 | 128 |
| 128 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_MAC_H_ | 129 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_MAC_H_ |
| OLD | NEW |