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