Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1566)

Side by Side Diff: content/browser/renderer_host/render_view_host_delegate_view.h

Issue 2877323002: Add WebContentObserver::OnWebContentsLostFocus() (Closed)
Patch Set: Remove useless include Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | content/browser/renderer_host/render_view_host_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/render_view_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698