| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_DELEGATE_H_ | 5 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_DELEGATE_H_ |
| 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_DELEGATE_H_ | 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "components/guest_view/browser/guest_view_base.h" | 9 #include "components/guest_view/browser/guest_view_base.h" |
| 10 | 10 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 // |items| acts as a filter. This restricts the current context's default | 42 // |items| acts as a filter. This restricts the current context's default |
| 43 // menu items to contain only the items from |items|. | 43 // menu items to contain only the items from |items|. |
| 44 // |items| == NULL means no filtering will be applied. | 44 // |items| == NULL means no filtering will be applied. |
| 45 virtual void OnShowContextMenu( | 45 virtual void OnShowContextMenu( |
| 46 int request_id, | 46 int request_id, |
| 47 const MenuItemVector* items) = 0; | 47 const MenuItemVector* items) = 0; |
| 48 | 48 |
| 49 // Returns true if the WebViewGuest should handle find requests for its | 49 // Returns true if the WebViewGuest should handle find requests for its |
| 50 // embedder. | 50 // embedder. |
| 51 virtual bool ShouldHandleFindRequestsForEmbedder() const = 0; | 51 virtual bool ShouldHandleFindRequestsForEmbedder() const = 0; |
| 52 |
| 53 virtual void SetContextMenuPosition(const gfx::Point& position) = 0; |
| 52 }; | 54 }; |
| 53 | 55 |
| 54 } // namespace extensions | 56 } // namespace extensions |
| 55 | 57 |
| 56 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_DELEGATE_H_ | 58 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_DELEGATE_H_ |
| OLD | NEW |