| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_WEB_CONTENTS_VIEW_MAC_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ |
| 6 #define CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 | 9 |
| 10 #include "base/gfx/size.h" | 10 #include "base/gfx/size.h" |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 virtual void Invalidate(); | 50 virtual void Invalidate(); |
| 51 virtual void SizeContents(const gfx::Size& size); | 51 virtual void SizeContents(const gfx::Size& size); |
| 52 virtual void FindInPage(const Browser& browser, | 52 virtual void FindInPage(const Browser& browser, |
| 53 bool find_next, bool forward_direction); | 53 bool find_next, bool forward_direction); |
| 54 virtual void HideFindBar(bool end_session); | 54 virtual void HideFindBar(bool end_session); |
| 55 virtual bool GetFindBarWindowInfo(gfx::Point* position, | 55 virtual bool GetFindBarWindowInfo(gfx::Point* position, |
| 56 bool* fully_visible) const; | 56 bool* fully_visible) const; |
| 57 virtual void SetInitialFocus(); | 57 virtual void SetInitialFocus(); |
| 58 virtual void StoreFocus(); | 58 virtual void StoreFocus(); |
| 59 virtual void RestoreFocus(); | 59 virtual void RestoreFocus(); |
| 60 virtual void SetChildSize(RenderWidgetHostView* rwh_view); |
| 60 | 61 |
| 61 // Backend implementation of RenderViewHostDelegate::View. | 62 // Backend implementation of RenderViewHostDelegate::View. |
| 62 virtual RenderWidgetHostView* CreateNewWidgetInternal(int route_id, | 63 virtual RenderWidgetHostView* CreateNewWidgetInternal(int route_id, |
| 63 bool activatable); | 64 bool activatable); |
| 64 virtual void ShowCreatedWidgetInternal(RenderWidgetHostView* widget_host_view, | 65 virtual void ShowCreatedWidgetInternal(RenderWidgetHostView* widget_host_view, |
| 65 const gfx::Rect& initial_pos); | 66 const gfx::Rect& initial_pos); |
| 66 virtual void ShowContextMenu(const ContextMenuParams& params); | 67 virtual void ShowContextMenu(const ContextMenuParams& params); |
| 67 virtual void StartDragging(const WebDropData& drop_data); | 68 virtual void StartDragging(const WebDropData& drop_data); |
| 68 virtual void UpdateDragCursor(bool is_drop_target); | 69 virtual void UpdateDragCursor(bool is_drop_target); |
| 69 virtual void TakeFocus(bool reverse); | 70 virtual void TakeFocus(bool reverse); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 94 NotificationRegistrar registrar_; | 95 NotificationRegistrar registrar_; |
| 95 | 96 |
| 96 // Used to render the sad tab. This will be non-NULL only when the sad tab is | 97 // Used to render the sad tab. This will be non-NULL only when the sad tab is |
| 97 // visible. | 98 // visible. |
| 98 scoped_nsobject<SadTabView> sad_tab_; | 99 scoped_nsobject<SadTabView> sad_tab_; |
| 99 | 100 |
| 100 DISALLOW_COPY_AND_ASSIGN(WebContentsViewMac); | 101 DISALLOW_COPY_AND_ASSIGN(WebContentsViewMac); |
| 101 }; | 102 }; |
| 102 | 103 |
| 103 #endif // CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ | 104 #endif // CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ |
| OLD | NEW |