OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_WIDGET_HOST_OWNER_DELEGATE_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_OWNER_DELEGATE_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_OWNER_DELEGATE_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_OWNER_DELEGATE_H_ |
7 | 7 |
8 #include "content/common/content_export.h" | 8 #include "content/common/content_export.h" |
9 | 9 |
10 namespace IPC { | 10 namespace IPC { |
(...skipping 23 matching lines...) Expand all Loading... |
34 | 34 |
35 // The RenderWidgetHost has been initialized. | 35 // The RenderWidgetHost has been initialized. |
36 virtual void RenderWidgetDidInit() = 0; | 36 virtual void RenderWidgetDidInit() = 0; |
37 | 37 |
38 // The RenderWidgetHost will be setting its loading state. | 38 // The RenderWidgetHost will be setting its loading state. |
39 virtual void RenderWidgetWillSetIsLoading(bool is_loading) = 0; | 39 virtual void RenderWidgetWillSetIsLoading(bool is_loading) = 0; |
40 | 40 |
41 // The RenderWidgetHost got the focus. | 41 // The RenderWidgetHost got the focus. |
42 virtual void RenderWidgetGotFocus() = 0; | 42 virtual void RenderWidgetGotFocus() = 0; |
43 | 43 |
| 44 // The RenderWidgetHost lost the focus. |
| 45 virtual void RenderWidgetLostFocus() = 0; |
| 46 |
44 // The RenderWidgetHost forwarded a mouse event. | 47 // The RenderWidgetHost forwarded a mouse event. |
45 virtual void RenderWidgetDidForwardMouseEvent( | 48 virtual void RenderWidgetDidForwardMouseEvent( |
46 const blink::WebMouseEvent& mouse_event) = 0; | 49 const blink::WebMouseEvent& mouse_event) = 0; |
47 | 50 |
48 // The RenderWidgetHost wants to forward a keyboard event; returns whether | 51 // The RenderWidgetHost wants to forward a keyboard event; returns whether |
49 // it's allowed to do so. | 52 // it's allowed to do so. |
50 virtual bool MayRenderWidgetForwardKeyboardEvent( | 53 virtual bool MayRenderWidgetForwardKeyboardEvent( |
51 const NativeWebKeyboardEvent& key_event) = 0; | 54 const NativeWebKeyboardEvent& key_event) = 0; |
52 | 55 |
53 protected: | 56 protected: |
54 virtual ~RenderWidgetHostOwnerDelegate() {} | 57 virtual ~RenderWidgetHostOwnerDelegate() {} |
55 }; | 58 }; |
56 | 59 |
57 } // namespace content | 60 } // namespace content |
58 | 61 |
59 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_OWNER_DELEGATE_H_ | 62 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_OWNER_DELEGATE_H_ |
OLD | NEW |