| 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 <memory> | 10 #include <memory> |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 double item_font_size, | 108 double item_font_size, |
| 109 int selected_item, | 109 int selected_item, |
| 110 const std::vector<MenuItem>& items, | 110 const std::vector<MenuItem>& items, |
| 111 bool right_aligned, | 111 bool right_aligned, |
| 112 bool allow_multiple_selection) override; | 112 bool allow_multiple_selection) override; |
| 113 void HidePopupMenu() override; | 113 void HidePopupMenu() override; |
| 114 void StartDragging(const DropData& drop_data, | 114 void StartDragging(const DropData& drop_data, |
| 115 blink::WebDragOperationsMask allowed_operations, | 115 blink::WebDragOperationsMask allowed_operations, |
| 116 const gfx::ImageSkia& image, | 116 const gfx::ImageSkia& image, |
| 117 const gfx::Vector2d& image_offset, | 117 const gfx::Vector2d& image_offset, |
| 118 const DragEventSourceInfo& event_info) override; | 118 const DragEventSourceInfo& event_info, |
| 119 RenderWidgetHostImpl* source_rwh) override; |
| 119 void UpdateDragCursor(blink::WebDragOperation operation) override; | 120 void UpdateDragCursor(blink::WebDragOperation operation) override; |
| 120 void GotFocus() override; | 121 void GotFocus() override; |
| 121 void TakeFocus(bool reverse) override; | 122 void TakeFocus(bool reverse) override; |
| 122 | 123 |
| 123 // A helper method for closing the tab in the | 124 // A helper method for closing the tab in the |
| 124 // CloseTabAfterEventTracking() implementation. | 125 // CloseTabAfterEventTracking() implementation. |
| 125 void CloseTab(); | 126 void CloseTab(); |
| 126 | 127 |
| 127 WebContentsImpl* web_contents() { return web_contents_; } | 128 WebContentsImpl* web_contents() { return web_contents_; } |
| 128 WebContentsViewDelegate* delegate() { return delegate_.get(); } | 129 WebContentsViewDelegate* delegate() { return delegate_.get(); } |
| (...skipping 21 matching lines...) Expand all Loading... |
| 150 bool allow_other_views_; | 151 bool allow_other_views_; |
| 151 | 152 |
| 152 std::unique_ptr<PopupMenuHelper> popup_menu_helper_; | 153 std::unique_ptr<PopupMenuHelper> popup_menu_helper_; |
| 153 | 154 |
| 154 DISALLOW_COPY_AND_ASSIGN(WebContentsViewMac); | 155 DISALLOW_COPY_AND_ASSIGN(WebContentsViewMac); |
| 155 }; | 156 }; |
| 156 | 157 |
| 157 } // namespace content | 158 } // namespace content |
| 158 | 159 |
| 159 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ | 160 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ |
| OLD | NEW |