OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 virtual void StartDragging(const WebDropData& drop_data, | 93 virtual void StartDragging(const WebDropData& drop_data, |
94 WebKit::WebDragOperationsMask allowed_operations, | 94 WebKit::WebDragOperationsMask allowed_operations, |
95 const SkBitmap& image, | 95 const SkBitmap& image, |
96 const gfx::Point& image_offset); | 96 const gfx::Point& image_offset); |
97 virtual void UpdateDragCursor(WebKit::WebDragOperation operation); | 97 virtual void UpdateDragCursor(WebKit::WebDragOperation operation); |
98 virtual void GotFocus(); | 98 virtual void GotFocus(); |
99 virtual void TakeFocus(bool reverse); | 99 virtual void TakeFocus(bool reverse); |
100 | 100 |
101 // NotificationObserver implementation --------------------------------------- | 101 // NotificationObserver implementation --------------------------------------- |
102 | 102 |
103 virtual void Observe(NotificationType type, | 103 virtual void Observe(int type, |
104 const NotificationSource& source, | 104 const NotificationSource& source, |
105 const NotificationDetails& details); | 105 const NotificationDetails& details); |
106 | 106 |
107 // A helper method for closing the tab in the | 107 // A helper method for closing the tab in the |
108 // CloseTabAfterEventTracking() implementation. | 108 // CloseTabAfterEventTracking() implementation. |
109 void CloseTab(); | 109 void CloseTab(); |
110 | 110 |
111 int preferred_width() const { return preferred_width_; } | 111 int preferred_width() const { return preferred_width_; } |
112 | 112 |
113 private: | 113 private: |
(...skipping 11 matching lines...) Expand all Loading... |
125 // visible. | 125 // visible. |
126 scoped_nsobject<SadTabController> sad_tab_; | 126 scoped_nsobject<SadTabController> sad_tab_; |
127 | 127 |
128 // The page content's intrinsic width. | 128 // The page content's intrinsic width. |
129 int preferred_width_; | 129 int preferred_width_; |
130 | 130 |
131 DISALLOW_COPY_AND_ASSIGN(TabContentsViewMac); | 131 DISALLOW_COPY_AND_ASSIGN(TabContentsViewMac); |
132 }; | 132 }; |
133 | 133 |
134 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_MAC_H_ | 134 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_MAC_H_ |
OLD | NEW |