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_PORT_BROWSER_RENDER_VIEW_HOST_DELEGATE_VIEW_H_ | 5 #ifndef CONTENT_PORT_BROWSER_RENDER_VIEW_HOST_DELEGATE_VIEW_H_ |
6 #define CONTENT_PORT_BROWSER_RENDER_VIEW_HOST_DELEGATE_VIEW_H_ | 6 #define CONTENT_PORT_BROWSER_RENDER_VIEW_HOST_DELEGATE_VIEW_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 const std::vector<MenuItem>& items, | 44 const std::vector<MenuItem>& items, |
45 bool right_aligned, | 45 bool right_aligned, |
46 bool allow_multiple_selection) = 0; | 46 bool allow_multiple_selection) = 0; |
47 | 47 |
48 // The user started dragging content of the specified type within the | 48 // The user started dragging content of the specified type within the |
49 // RenderView. Contextual information about the dragged content is supplied | 49 // RenderView. Contextual information about the dragged content is supplied |
50 // by DropData. If the delegate's view cannot start the drag for /any/ | 50 // by DropData. If the delegate's view cannot start the drag for /any/ |
51 // reason, it must inform the renderer that the drag has ended; otherwise, | 51 // reason, it must inform the renderer that the drag has ended; otherwise, |
52 // this results in bugs like http://crbug.com/157134. | 52 // this results in bugs like http://crbug.com/157134. |
53 virtual void StartDragging(const DropData& drop_data, | 53 virtual void StartDragging(const DropData& drop_data, |
54 WebKit::WebDragOperationsMask allowed_ops, | 54 blink::WebDragOperationsMask allowed_ops, |
55 const gfx::ImageSkia& image, | 55 const gfx::ImageSkia& image, |
56 const gfx::Vector2d& image_offset, | 56 const gfx::Vector2d& image_offset, |
57 const DragEventSourceInfo& event_info) {} | 57 const DragEventSourceInfo& event_info) {} |
58 | 58 |
59 // The page wants to update the mouse cursor during a drag & drop operation. | 59 // The page wants to update the mouse cursor during a drag & drop operation. |
60 // |operation| describes the current operation (none, move, copy, link.) | 60 // |operation| describes the current operation (none, move, copy, link.) |
61 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) {} | 61 virtual void UpdateDragCursor(blink::WebDragOperation operation) {} |
62 | 62 |
63 // Notification that view for this delegate got the focus. | 63 // Notification that view for this delegate got the focus. |
64 virtual void GotFocus() {} | 64 virtual void GotFocus() {} |
65 | 65 |
66 // Callback to inform the browser that the page is returning the focus to | 66 // Callback to inform the browser that the page is returning the focus to |
67 // the browser's chrome. If reverse is true, it means the focus was | 67 // the browser's chrome. If reverse is true, it means the focus was |
68 // retrieved by doing a Shift-Tab. | 68 // retrieved by doing a Shift-Tab. |
69 virtual void TakeFocus(bool reverse) {} | 69 virtual void TakeFocus(bool reverse) {} |
70 | 70 |
71 protected: | 71 protected: |
72 virtual ~RenderViewHostDelegateView() {} | 72 virtual ~RenderViewHostDelegateView() {} |
73 }; | 73 }; |
74 | 74 |
75 } // namespace content | 75 } // namespace content |
76 | 76 |
77 #endif // CONTENT_PORT_BROWSER_RENDER_VIEW_HOST_DELEGATE_VIEW_H_ | 77 #endif // CONTENT_PORT_BROWSER_RENDER_VIEW_HOST_DELEGATE_VIEW_H_ |
OLD | NEW |