| 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_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 | 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 virtual void RestoreFocus(); | 56 virtual void RestoreFocus(); |
| 57 virtual RenderWidgetHostView* CreateNewWidgetInternal(int route_id, | 57 virtual RenderWidgetHostView* CreateNewWidgetInternal(int route_id, |
| 58 bool activatable); | 58 bool activatable); |
| 59 virtual void ShowCreatedWidgetInternal(RenderWidgetHostView* widget_host_view, | 59 virtual void ShowCreatedWidgetInternal(RenderWidgetHostView* widget_host_view, |
| 60 const gfx::Rect& initial_pos); | 60 const gfx::Rect& initial_pos); |
| 61 | 61 |
| 62 // Backend implementation of RenderViewHostDelegate::View. | 62 // Backend implementation of RenderViewHostDelegate::View. |
| 63 virtual void ShowContextMenu(const ContextMenuParams& params); | 63 virtual void ShowContextMenu(const ContextMenuParams& params); |
| 64 virtual void StartDragging(const WebDropData& drop_data); | 64 virtual void StartDragging(const WebDropData& drop_data); |
| 65 virtual void UpdateDragCursor(bool is_drop_target); | 65 virtual void UpdateDragCursor(bool is_drop_target); |
| 66 virtual void GotFocus(); |
| 66 virtual void TakeFocus(bool reverse); | 67 virtual void TakeFocus(bool reverse); |
| 67 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event); | 68 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event); |
| 68 | 69 |
| 69 // NotificationObserver implementation --------------------------------------- | 70 // NotificationObserver implementation --------------------------------------- |
| 70 | 71 |
| 71 virtual void Observe(NotificationType type, | 72 virtual void Observe(NotificationType type, |
| 72 const NotificationSource& source, | 73 const NotificationSource& source, |
| 73 const NotificationDetails& details); | 74 const NotificationDetails& details); |
| 74 | 75 |
| 75 private: | 76 private: |
| (...skipping 12 matching lines...) Expand all Loading... |
| 88 // visible. | 89 // visible. |
| 89 scoped_nsobject<SadTabView> sad_tab_; | 90 scoped_nsobject<SadTabView> sad_tab_; |
| 90 | 91 |
| 91 // The page content's intrinsic width. | 92 // The page content's intrinsic width. |
| 92 int preferred_width_; | 93 int preferred_width_; |
| 93 | 94 |
| 94 DISALLOW_COPY_AND_ASSIGN(TabContentsViewMac); | 95 DISALLOW_COPY_AND_ASSIGN(TabContentsViewMac); |
| 95 }; | 96 }; |
| 96 | 97 |
| 97 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_MAC_H_ | 98 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_MAC_H_ |
| OLD | NEW |