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 <string> | 10 #include <string> |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 virtual void SetInitialFocus(); | 62 virtual void SetInitialFocus(); |
63 virtual void StoreFocus(); | 63 virtual void StoreFocus(); |
64 virtual void RestoreFocus(); | 64 virtual void RestoreFocus(); |
65 virtual RenderWidgetHostView* CreateNewWidgetInternal(int route_id, | 65 virtual RenderWidgetHostView* CreateNewWidgetInternal(int route_id, |
66 bool activatable); | 66 bool activatable); |
67 virtual void ShowCreatedWidgetInternal(RenderWidgetHostView* widget_host_view, | 67 virtual void ShowCreatedWidgetInternal(RenderWidgetHostView* widget_host_view, |
68 const gfx::Rect& initial_pos); | 68 const gfx::Rect& initial_pos); |
69 | 69 |
70 // Backend implementation of RenderViewHostDelegate::View. | 70 // Backend implementation of RenderViewHostDelegate::View. |
71 virtual void ShowContextMenu(const ContextMenuParams& params); | 71 virtual void ShowContextMenu(const ContextMenuParams& params); |
72 virtual void StartDragging(const WebDropData& drop_data); | 72 virtual void StartDragging(const WebDropData& drop_data, |
73 virtual void UpdateDragCursor(bool is_drop_target); | 73 WebKit::WebDragOperationsMask allowed_operations); |
| 74 virtual void UpdateDragCursor(WebKit::WebDragOperation operation); |
74 virtual void GotFocus(); | 75 virtual void GotFocus(); |
75 virtual void TakeFocus(bool reverse); | 76 virtual void TakeFocus(bool reverse); |
76 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event); | 77 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event); |
77 | 78 |
78 // NotificationObserver implementation --------------------------------------- | 79 // NotificationObserver implementation --------------------------------------- |
79 | 80 |
80 virtual void Observe(NotificationType type, | 81 virtual void Observe(NotificationType type, |
81 const NotificationSource& source, | 82 const NotificationSource& source, |
82 const NotificationDetails& details); | 83 const NotificationDetails& details); |
83 | 84 |
(...skipping 11 matching lines...) Expand all Loading... |
95 // visible. | 96 // visible. |
96 scoped_nsobject<SadTabView> sad_tab_; | 97 scoped_nsobject<SadTabView> sad_tab_; |
97 | 98 |
98 // The page content's intrinsic width. | 99 // The page content's intrinsic width. |
99 int preferred_width_; | 100 int preferred_width_; |
100 | 101 |
101 DISALLOW_COPY_AND_ASSIGN(TabContentsViewMac); | 102 DISALLOW_COPY_AND_ASSIGN(TabContentsViewMac); |
102 }; | 103 }; |
103 | 104 |
104 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_MAC_H_ | 105 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_MAC_H_ |
OLD | NEW |