| 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_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_WIN_DELEGATE_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_WIN_DELEGATE_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_WIN_DELEGATE_H_ | 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_WIN_DELEGATE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #if defined(TOOLKIT_GTK) | 9 #if defined(TOOLKIT_GTK) |
| 10 #include <gtk/gtk.h> | 10 #include <gtk/gtk.h> |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 // |return_value| has been set and that value should be returned to GTK+. | 72 // |return_value| has been set and that value should be returned to GTK+. |
| 73 virtual gboolean OnNativeViewFocusEvent(GtkWidget* widget, | 73 virtual gboolean OnNativeViewFocusEvent(GtkWidget* widget, |
| 74 GtkDirectionType type, | 74 GtkDirectionType type, |
| 75 gboolean* return_value) = 0; | 75 gboolean* return_value) = 0; |
| 76 #elif defined(OS_MACOSX) | 76 #elif defined(OS_MACOSX) |
| 77 // Returns a newly-created delegate for the RenderWidgetHostViewMac, to handle | 77 // Returns a newly-created delegate for the RenderWidgetHostViewMac, to handle |
| 78 // events on the responder chain. | 78 // events on the responder chain. |
| 79 virtual NSObject<RenderWidgetHostViewMacDelegate>* | 79 virtual NSObject<RenderWidgetHostViewMacDelegate>* |
| 80 CreateRenderWidgetHostViewDelegate( | 80 CreateRenderWidgetHostViewDelegate( |
| 81 RenderWidgetHost* render_widget_host) = 0; | 81 RenderWidgetHost* render_widget_host) = 0; |
| 82 | |
| 83 // Notifications that the native view was created/destroyed. | |
| 84 virtual void NativeViewCreated(NSView* view) = 0; | |
| 85 virtual void NativeViewDestroyed(NSView* view) = 0; | |
| 86 #endif | 82 #endif |
| 87 }; | 83 }; |
| 88 | 84 |
| 89 } // namespace content | 85 } // namespace content |
| 90 | 86 |
| 91 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_WIN_DELEGATE_H_ | 87 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_WIN_DELEGATE_H_ |
| OLD | NEW |