| 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_USES_GTK) | 9 #if defined(TOOLKIT_USES_GTK) |
| 10 #include <gtk/gtk.h> | 10 #include <gtk/gtk.h> |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 class CONTENT_EXPORT WebContentsViewDelegate { | 38 class CONTENT_EXPORT WebContentsViewDelegate { |
| 39 public: | 39 public: |
| 40 virtual ~WebContentsViewDelegate() {} | 40 virtual ~WebContentsViewDelegate() {} |
| 41 | 41 |
| 42 // Returns a delegate to process drags not handled by content. | 42 // Returns a delegate to process drags not handled by content. |
| 43 virtual WebDragDestDelegate* GetDragDestDelegate() = 0; | 43 virtual WebDragDestDelegate* GetDragDestDelegate() = 0; |
| 44 | 44 |
| 45 // Shows a context menu. | 45 // Shows a context menu. |
| 46 virtual void ShowContextMenu(const content::ContextMenuParams& params) = 0; | 46 virtual void ShowContextMenu(const content::ContextMenuParams& params) = 0; |
| 47 | 47 |
| 48 #if defined(OS_WIN) || defined(USE_AURA) | 48 #if defined(OS_WIN) && !defined(USE_AURA) |
| 49 // These methods allow the embedder to intercept WebContentsViewWin's | 49 // These methods allow the embedder to intercept WebContentsViewWin's |
| 50 // implementation of these WebContentsView methods. See the WebContentsView | 50 // implementation of these WebContentsView methods. See the WebContentsView |
| 51 // interface documentation for more information about these methods. | 51 // interface documentation for more information about these methods. |
| 52 virtual void StoreFocus() = 0; | 52 virtual void StoreFocus() = 0; |
| 53 virtual void RestoreFocus() = 0; | 53 virtual void RestoreFocus() = 0; |
| 54 virtual bool Focus() = 0; | 54 virtual bool Focus() = 0; |
| 55 virtual void TakeFocus(bool reverse) = 0; | 55 virtual void TakeFocus(bool reverse) = 0; |
| 56 virtual void SizeChanged(const gfx::Size& size) = 0; | 56 virtual void SizeChanged(const gfx::Size& size) = 0; |
| 57 #elif defined(TOOLKIT_USES_GTK) | 57 #elif defined(TOOLKIT_USES_GTK) |
| 58 // Initializes the WebContentsViewDelegate. | 58 // Initializes the WebContentsViewDelegate. |
| (...skipping 23 matching lines...) Expand all Loading... |
| 82 | 82 |
| 83 // Notifications that the native view was created/destroyed. | 83 // Notifications that the native view was created/destroyed. |
| 84 virtual void NativeViewCreated(NSView* view) = 0; | 84 virtual void NativeViewCreated(NSView* view) = 0; |
| 85 virtual void NativeViewDestroyed(NSView* view) = 0; | 85 virtual void NativeViewDestroyed(NSView* view) = 0; |
| 86 #endif | 86 #endif |
| 87 }; | 87 }; |
| 88 | 88 |
| 89 } // namespace content | 89 } // namespace content |
| 90 | 90 |
| 91 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_WIN_DELEGATE_H_ | 91 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_WIN_DELEGATE_H_ |
| OLD | NEW |