| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_WIN_DELEGATE_H_ | |
| 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_WIN_DELEGATE_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include "content/common/content_export.h" | |
| 10 #include "ui/gfx/native_widget_types.h" | |
| 11 | |
| 12 namespace gfx { | |
| 13 class Size; | |
| 14 } | |
| 15 | |
| 16 namespace content { | |
| 17 | |
| 18 class WebDragDestDelegate; | |
| 19 struct ContextMenuParams; | |
| 20 | |
| 21 // This interface allows a client to extend the functionality of | |
| 22 // WebContentsViewWin. | |
| 23 class CONTENT_EXPORT WebContentsViewWinDelegate { | |
| 24 public: | |
| 25 virtual ~WebContentsViewWinDelegate() {} | |
| 26 | |
| 27 // Returns a delegate to process drags not handled by content. | |
| 28 virtual WebDragDestDelegate* GetDragDestDelegate() = 0; | |
| 29 | |
| 30 // These methods allow the embedder to intercept WebContentsViewWin's | |
| 31 // implementation of these WebContentsView methods. See the WebContentsView | |
| 32 // interface documentation for more information about these methods. | |
| 33 virtual void StoreFocus() = 0; | |
| 34 virtual void RestoreFocus() = 0; | |
| 35 virtual bool Focus() = 0; | |
| 36 virtual void TakeFocus(bool reverse) = 0; | |
| 37 virtual void ShowContextMenu(const content::ContextMenuParams& params) = 0; | |
| 38 virtual void SizeChanged(const gfx::Size& size) = 0; | |
| 39 }; | |
| 40 | |
| 41 } // namespace content | |
| 42 | |
| 43 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_WIN_DELEGATE_H_ | |
| OLD | NEW |