| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 | 103 |
| 104 // The user started dragging content of the specified type within the | 104 // The user started dragging content of the specified type within the |
| 105 // RenderView. Contextual information about the dragged content is supplied | 105 // RenderView. Contextual information about the dragged content is supplied |
| 106 // by WebDropData. | 106 // by WebDropData. |
| 107 virtual void StartDragging(const WebDropData& drop_data) = 0; | 107 virtual void StartDragging(const WebDropData& drop_data) = 0; |
| 108 | 108 |
| 109 // The page wants to update the mouse cursor during a drag & drop operation. | 109 // The page wants to update the mouse cursor during a drag & drop operation. |
| 110 // |is_drop_target| is true if the mouse is over a valid drop target. | 110 // |is_drop_target| is true if the mouse is over a valid drop target. |
| 111 virtual void UpdateDragCursor(bool is_drop_target) = 0; | 111 virtual void UpdateDragCursor(bool is_drop_target) = 0; |
| 112 | 112 |
| 113 // Notification that view for this delegate got the focus. |
| 114 virtual void GotFocus() = 0; |
| 115 |
| 113 // Callback to inform the browser it should take back focus. If reverse is | 116 // Callback to inform the browser it should take back focus. If reverse is |
| 114 // true, it means the focus was retrieved by doing a Shift-Tab. | 117 // true, it means the focus was retrieved by doing a Shift-Tab. |
| 115 virtual void TakeFocus(bool reverse) = 0; | 118 virtual void TakeFocus(bool reverse) = 0; |
| 116 | 119 |
| 117 // Callback to inform the browser that the renderer did not process the | 120 // Callback to inform the browser that the renderer did not process the |
| 118 // specified events. This gives an opportunity to the browser to process the | 121 // specified events. This gives an opportunity to the browser to process the |
| 119 // event (used for keyboard shortcuts). | 122 // event (used for keyboard shortcuts). |
| 120 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) = 0; | 123 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) = 0; |
| 121 | 124 |
| 122 // Notifications about mouse events in this view. This is useful for | 125 // Notifications about mouse events in this view. This is useful for |
| (...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 441 | 444 |
| 442 // A find operation in the current page completed. | 445 // A find operation in the current page completed. |
| 443 virtual void OnFindReply(int request_id, | 446 virtual void OnFindReply(int request_id, |
| 444 int number_of_matches, | 447 int number_of_matches, |
| 445 const gfx::Rect& selection_rect, | 448 const gfx::Rect& selection_rect, |
| 446 int active_match_ordinal, | 449 int active_match_ordinal, |
| 447 bool final_update) { } | 450 bool final_update) { } |
| 448 }; | 451 }; |
| 449 | 452 |
| 450 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 453 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| OLD | NEW |