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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 virtual void RestoreFocus() OVERRIDE; | 80 virtual void RestoreFocus() OVERRIDE; |
81 virtual bool IsDoingDrag() const OVERRIDE; | 81 virtual bool IsDoingDrag() const OVERRIDE; |
82 virtual void CancelDragAndCloseTab() OVERRIDE; | 82 virtual void CancelDragAndCloseTab() OVERRIDE; |
83 virtual WebDropData* GetDropData() const OVERRIDE; | 83 virtual WebDropData* GetDropData() const OVERRIDE; |
84 virtual bool IsEventTracking() const OVERRIDE; | 84 virtual bool IsEventTracking() const OVERRIDE; |
85 virtual void CloseTabAfterEventTracking() OVERRIDE; | 85 virtual void CloseTabAfterEventTracking() OVERRIDE; |
86 virtual gfx::Rect GetViewBounds() const OVERRIDE; | 86 virtual gfx::Rect GetViewBounds() const OVERRIDE; |
87 | 87 |
88 // Backend implementation of RenderViewHostDelegateView. | 88 // Backend implementation of RenderViewHostDelegateView. |
89 virtual void ShowContextMenu( | 89 virtual void ShowContextMenu( |
90 const content::ContextMenuParams& params) OVERRIDE; | 90 const content::ContextMenuParams& params, |
| 91 const content::ContextMenuSourceType& type) OVERRIDE; |
91 virtual void ShowPopupMenu(const gfx::Rect& bounds, | 92 virtual void ShowPopupMenu(const gfx::Rect& bounds, |
92 int item_height, | 93 int item_height, |
93 double item_font_size, | 94 double item_font_size, |
94 int selected_item, | 95 int selected_item, |
95 const std::vector<WebMenuItem>& items, | 96 const std::vector<WebMenuItem>& items, |
96 bool right_aligned, | 97 bool right_aligned, |
97 bool allow_multiple_selection) OVERRIDE; | 98 bool allow_multiple_selection) OVERRIDE; |
98 virtual void StartDragging(const WebDropData& drop_data, | 99 virtual void StartDragging(const WebDropData& drop_data, |
99 WebKit::WebDragOperationsMask allowed_operations, | 100 WebKit::WebDragOperationsMask allowed_operations, |
100 const gfx::ImageSkia& image, | 101 const gfx::ImageSkia& image, |
(...skipping 20 matching lines...) Expand all Loading... |
121 // focus returns. | 122 // focus returns. |
122 scoped_nsobject<FocusTracker> focus_tracker_; | 123 scoped_nsobject<FocusTracker> focus_tracker_; |
123 | 124 |
124 // Our optional delegate. | 125 // Our optional delegate. |
125 scoped_ptr<content::WebContentsViewDelegate> delegate_; | 126 scoped_ptr<content::WebContentsViewDelegate> delegate_; |
126 | 127 |
127 DISALLOW_COPY_AND_ASSIGN(WebContentsViewMac); | 128 DISALLOW_COPY_AND_ASSIGN(WebContentsViewMac); |
128 }; | 129 }; |
129 | 130 |
130 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ | 131 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ |
OLD | NEW |