| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #import <Cocoa/Cocoa.h> | 9 #import <Cocoa/Cocoa.h> |
| 10 | 10 |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 virtual bool IsDoingDrag() const OVERRIDE; | 79 virtual bool IsDoingDrag() const OVERRIDE; |
| 80 virtual void CancelDragAndCloseTab() OVERRIDE; | 80 virtual void CancelDragAndCloseTab() OVERRIDE; |
| 81 virtual WebDropData* GetDropData() const OVERRIDE; | 81 virtual WebDropData* GetDropData() const OVERRIDE; |
| 82 virtual bool IsEventTracking() const OVERRIDE; | 82 virtual bool IsEventTracking() const OVERRIDE; |
| 83 virtual void CloseTabAfterEventTracking() OVERRIDE; | 83 virtual void CloseTabAfterEventTracking() OVERRIDE; |
| 84 virtual void GetViewBounds(gfx::Rect* out) const OVERRIDE; | 84 virtual void GetViewBounds(gfx::Rect* out) const OVERRIDE; |
| 85 | 85 |
| 86 // Backend implementation of RenderViewHostDelegateView. | 86 // Backend implementation of RenderViewHostDelegateView. |
| 87 virtual void ShowContextMenu( | 87 virtual void ShowContextMenu( |
| 88 const content::ContextMenuParams& params) OVERRIDE; | 88 const content::ContextMenuParams& params) OVERRIDE; |
| 89 virtual void ShowPopupMenu(const gfx::Rect& bounds, |
| 90 int item_height, |
| 91 double item_font_size, |
| 92 int selected_item, |
| 93 const std::vector<WebMenuItem>& items, |
| 94 bool right_aligned, |
| 95 bool allow_multiple_selection) OVERRIDE; |
| 89 virtual void StartDragging(const WebDropData& drop_data, | 96 virtual void StartDragging(const WebDropData& drop_data, |
| 90 WebKit::WebDragOperationsMask allowed_operations, | 97 WebKit::WebDragOperationsMask allowed_operations, |
| 91 const SkBitmap& image, | 98 const SkBitmap& image, |
| 92 const gfx::Point& image_offset) OVERRIDE; | 99 const gfx::Point& image_offset) OVERRIDE; |
| 93 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) OVERRIDE; | 100 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) OVERRIDE; |
| 94 virtual void GotFocus() OVERRIDE; | 101 virtual void GotFocus() OVERRIDE; |
| 95 virtual void TakeFocus(bool reverse) OVERRIDE; | 102 virtual void TakeFocus(bool reverse) OVERRIDE; |
| 96 | 103 |
| 97 // A helper method for closing the tab in the | 104 // A helper method for closing the tab in the |
| 98 // CloseTabAfterEventTracking() implementation. | 105 // CloseTabAfterEventTracking() implementation. |
| (...skipping 13 matching lines...) Expand all Loading... |
| 112 // focus returns. | 119 // focus returns. |
| 113 scoped_nsobject<FocusTracker> focus_tracker_; | 120 scoped_nsobject<FocusTracker> focus_tracker_; |
| 114 | 121 |
| 115 // Our optional delegate. | 122 // Our optional delegate. |
| 116 scoped_ptr<content::WebContentsViewDelegate> delegate_; | 123 scoped_ptr<content::WebContentsViewDelegate> delegate_; |
| 117 | 124 |
| 118 DISALLOW_COPY_AND_ASSIGN(WebContentsViewMac); | 125 DISALLOW_COPY_AND_ASSIGN(WebContentsViewMac); |
| 119 }; | 126 }; |
| 120 | 127 |
| 121 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ | 128 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ |
| OLD | NEW |