| 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_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GUEST_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GUEST_H_ |
| 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GUEST_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GUEST_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 virtual void SetPageTitle(const base::string16& title) OVERRIDE; | 71 virtual void SetPageTitle(const base::string16& title) OVERRIDE; |
| 72 virtual void RenderViewCreated(RenderViewHost* host) OVERRIDE; | 72 virtual void RenderViewCreated(RenderViewHost* host) OVERRIDE; |
| 73 virtual void RenderViewSwappedIn(RenderViewHost* host) OVERRIDE; | 73 virtual void RenderViewSwappedIn(RenderViewHost* host) OVERRIDE; |
| 74 virtual void SetOverscrollControllerEnabled(bool enabled) OVERRIDE; | 74 virtual void SetOverscrollControllerEnabled(bool enabled) OVERRIDE; |
| 75 #if defined(OS_MACOSX) | 75 #if defined(OS_MACOSX) |
| 76 virtual bool IsEventTracking() const OVERRIDE; | 76 virtual bool IsEventTracking() const OVERRIDE; |
| 77 virtual void CloseTabAfterEventTracking() OVERRIDE; | 77 virtual void CloseTabAfterEventTracking() OVERRIDE; |
| 78 #endif | 78 #endif |
| 79 | 79 |
| 80 // Backend implementation of RenderViewHostDelegateView. | 80 // Backend implementation of RenderViewHostDelegateView. |
| 81 virtual void ShowContextMenu(const ContextMenuParams& params) OVERRIDE; | 81 virtual void ShowContextMenu(RenderFrameHost* render_frame_host, |
| 82 const ContextMenuParams& params) OVERRIDE; |
| 82 virtual void ShowPopupMenu(const gfx::Rect& bounds, | 83 virtual void ShowPopupMenu(const gfx::Rect& bounds, |
| 83 int item_height, | 84 int item_height, |
| 84 double item_font_size, | 85 double item_font_size, |
| 85 int selected_item, | 86 int selected_item, |
| 86 const std::vector<MenuItem>& items, | 87 const std::vector<MenuItem>& items, |
| 87 bool right_aligned, | 88 bool right_aligned, |
| 88 bool allow_multiple_selection) OVERRIDE; | 89 bool allow_multiple_selection) OVERRIDE; |
| 89 virtual void StartDragging(const DropData& drop_data, | 90 virtual void StartDragging(const DropData& drop_data, |
| 90 blink::WebDragOperationsMask allowed_ops, | 91 blink::WebDragOperationsMask allowed_ops, |
| 91 const gfx::ImageSkia& image, | 92 const gfx::ImageSkia& image, |
| (...skipping 14 matching lines...) Expand all Loading... |
| 106 | 107 |
| 107 // Delegate view for guest's platform view. | 108 // Delegate view for guest's platform view. |
| 108 RenderViewHostDelegateView* platform_view_delegate_view_; | 109 RenderViewHostDelegateView* platform_view_delegate_view_; |
| 109 | 110 |
| 110 DISALLOW_COPY_AND_ASSIGN(WebContentsViewGuest); | 111 DISALLOW_COPY_AND_ASSIGN(WebContentsViewGuest); |
| 111 }; | 112 }; |
| 112 | 113 |
| 113 } // namespace content | 114 } // namespace content |
| 114 | 115 |
| 115 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GUEST_H_ | 116 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GUEST_H_ |
| OLD | NEW |