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_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_VIEW_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_VIEW_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_VIEW_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_VIEW_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 const DragEventSourceInfo& event_info, | 54 const DragEventSourceInfo& event_info, |
55 RenderWidgetHostImpl* source_rwh) {} | 55 RenderWidgetHostImpl* source_rwh) {} |
56 | 56 |
57 // The page wants to update the mouse cursor during a drag & drop operation. | 57 // The page wants to update the mouse cursor during a drag & drop operation. |
58 // |operation| describes the current operation (none, move, copy, link.) | 58 // |operation| describes the current operation (none, move, copy, link.) |
59 virtual void UpdateDragCursor(blink::WebDragOperation operation) {} | 59 virtual void UpdateDragCursor(blink::WebDragOperation operation) {} |
60 | 60 |
61 // Notification that view for this delegate got the focus. | 61 // Notification that view for this delegate got the focus. |
62 virtual void GotFocus() {} | 62 virtual void GotFocus() {} |
63 | 63 |
| 64 // Notification that view for this delegate lost the focus. |
| 65 virtual void LostFocus() {} |
| 66 |
64 // Callback to inform the browser that the page is returning the focus to | 67 // Callback to inform the browser that the page is returning the focus to |
65 // the browser's chrome. If reverse is true, it means the focus was | 68 // the browser's chrome. If reverse is true, it means the focus was |
66 // retrieved by doing a Shift-Tab. | 69 // retrieved by doing a Shift-Tab. |
67 virtual void TakeFocus(bool reverse) {} | 70 virtual void TakeFocus(bool reverse) {} |
68 | 71 |
69 #if BUILDFLAG(USE_EXTERNAL_POPUP_MENU) | 72 #if BUILDFLAG(USE_EXTERNAL_POPUP_MENU) |
70 // Shows a popup menu with the specified items. | 73 // Shows a popup menu with the specified items. |
71 // This method should call RenderFrameHost::DidSelectPopupMenuItem[s]() or | 74 // This method should call RenderFrameHost::DidSelectPopupMenuItem[s]() or |
72 // RenderFrameHost::DidCancelPopupMenu() based on the user action. | 75 // RenderFrameHost::DidCancelPopupMenu() based on the user action. |
73 virtual void ShowPopupMenu(RenderFrameHost* render_frame_host, | 76 virtual void ShowPopupMenu(RenderFrameHost* render_frame_host, |
(...skipping 13 matching lines...) Expand all Loading... |
87 virtual ui::OverscrollRefreshHandler* GetOverscrollRefreshHandler() const; | 90 virtual ui::OverscrollRefreshHandler* GetOverscrollRefreshHandler() const; |
88 #endif | 91 #endif |
89 | 92 |
90 protected: | 93 protected: |
91 virtual ~RenderViewHostDelegateView() {} | 94 virtual ~RenderViewHostDelegateView() {} |
92 }; | 95 }; |
93 | 96 |
94 } // namespace content | 97 } // namespace content |
95 | 98 |
96 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_VIEW_H_ | 99 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_VIEW_H_ |
OLD | NEW |