OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ |
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 // Backend implementation of RenderViewHostDelegateView. | 98 // Backend implementation of RenderViewHostDelegateView. |
99 virtual void ShowContextMenu(const ContextMenuParams& params) OVERRIDE; | 99 virtual void ShowContextMenu(const ContextMenuParams& params) OVERRIDE; |
100 virtual void ShowPopupMenu(const gfx::Rect& bounds, | 100 virtual void ShowPopupMenu(const gfx::Rect& bounds, |
101 int item_height, | 101 int item_height, |
102 double item_font_size, | 102 double item_font_size, |
103 int selected_item, | 103 int selected_item, |
104 const std::vector<MenuItem>& items, | 104 const std::vector<MenuItem>& items, |
105 bool right_aligned, | 105 bool right_aligned, |
106 bool allow_multiple_selection) OVERRIDE; | 106 bool allow_multiple_selection) OVERRIDE; |
107 virtual void StartDragging(const DropData& drop_data, | 107 virtual void StartDragging(const DropData& drop_data, |
108 WebKit::WebDragOperationsMask allowed_operations, | 108 blink::WebDragOperationsMask allowed_operations, |
109 const gfx::ImageSkia& image, | 109 const gfx::ImageSkia& image, |
110 const gfx::Vector2d& image_offset, | 110 const gfx::Vector2d& image_offset, |
111 const DragEventSourceInfo& event_info) OVERRIDE; | 111 const DragEventSourceInfo& event_info) OVERRIDE; |
112 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) OVERRIDE; | 112 virtual void UpdateDragCursor(blink::WebDragOperation operation) OVERRIDE; |
113 virtual void GotFocus() OVERRIDE; | 113 virtual void GotFocus() OVERRIDE; |
114 virtual void TakeFocus(bool reverse) OVERRIDE; | 114 virtual void TakeFocus(bool reverse) OVERRIDE; |
115 | 115 |
116 // A helper method for closing the tab in the | 116 // A helper method for closing the tab in the |
117 // CloseTabAfterEventTracking() implementation. | 117 // CloseTabAfterEventTracking() implementation. |
118 void CloseTab(); | 118 void CloseTab(); |
119 | 119 |
120 WebContentsImpl* web_contents() { return web_contents_; } | 120 WebContentsImpl* web_contents() { return web_contents_; } |
121 WebContentsViewDelegate* delegate() { return delegate_.get(); } | 121 WebContentsViewDelegate* delegate() { return delegate_.get(); } |
122 | 122 |
(...skipping 13 matching lines...) Expand all Loading... |
136 | 136 |
137 // Whether to allow overlapping views. | 137 // Whether to allow overlapping views. |
138 bool allow_overlapping_views_; | 138 bool allow_overlapping_views_; |
139 | 139 |
140 DISALLOW_COPY_AND_ASSIGN(WebContentsViewMac); | 140 DISALLOW_COPY_AND_ASSIGN(WebContentsViewMac); |
141 }; | 141 }; |
142 | 142 |
143 } // namespace content | 143 } // namespace content |
144 | 144 |
145 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ | 145 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ |
OLD | NEW |