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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 virtual bool IsEventTracking() const; | 70 virtual bool IsEventTracking() const; |
71 virtual void CloseTabAfterEventTracking(); | 71 virtual void CloseTabAfterEventTracking(); |
72 | 72 |
73 // Backend implementation of RenderViewHostDelegate::View. | 73 // Backend implementation of RenderViewHostDelegate::View. |
74 virtual void ShowContextMenu(const ContextMenuParams& params); | 74 virtual void ShowContextMenu(const ContextMenuParams& params); |
75 virtual void StartDragging(const WebDropData& drop_data, | 75 virtual void StartDragging(const WebDropData& drop_data, |
76 WebKit::WebDragOperationsMask allowed_operations); | 76 WebKit::WebDragOperationsMask allowed_operations); |
77 virtual void UpdateDragCursor(WebKit::WebDragOperation operation); | 77 virtual void UpdateDragCursor(WebKit::WebDragOperation operation); |
78 virtual void GotFocus(); | 78 virtual void GotFocus(); |
79 virtual void TakeFocus(bool reverse); | 79 virtual void TakeFocus(bool reverse); |
80 virtual bool HandleKeyboardEvent(const NativeWebKeyboardEvent& event); | |
81 | 80 |
82 // NotificationObserver implementation --------------------------------------- | 81 // NotificationObserver implementation --------------------------------------- |
83 | 82 |
84 virtual void Observe(NotificationType type, | 83 virtual void Observe(NotificationType type, |
85 const NotificationSource& source, | 84 const NotificationSource& source, |
86 const NotificationDetails& details); | 85 const NotificationDetails& details); |
87 | 86 |
88 // A helper method for closing the tab in the | 87 // A helper method for closing the tab in the |
89 // CloseTabAfterEventTracking() implementation. | 88 // CloseTabAfterEventTracking() implementation. |
90 void CloseTab(); | 89 void CloseTab(); |
(...skipping 13 matching lines...) Expand all Loading... |
104 // visible. | 103 // visible. |
105 scoped_nsobject<SadTabView> sad_tab_; | 104 scoped_nsobject<SadTabView> sad_tab_; |
106 | 105 |
107 // The page content's intrinsic width. | 106 // The page content's intrinsic width. |
108 int preferred_width_; | 107 int preferred_width_; |
109 | 108 |
110 DISALLOW_COPY_AND_ASSIGN(TabContentsViewMac); | 109 DISALLOW_COPY_AND_ASSIGN(TabContentsViewMac); |
111 }; | 110 }; |
112 | 111 |
113 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_MAC_H_ | 112 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_MAC_H_ |
OLD | NEW |