| 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_ANDROID_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_ |
| 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "content/browser/renderer_host/render_view_host_delegate_view.h" | 9 #include "content/browser/renderer_host/render_view_host_delegate_view.h" |
| 10 #include "content/browser/web_contents/web_contents_view.h" | 10 #include "content/browser/web_contents/web_contents_view.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 virtual RenderWidgetHostViewBase* CreateViewForPopupWidget( | 48 virtual RenderWidgetHostViewBase* CreateViewForPopupWidget( |
| 49 RenderWidgetHost* render_widget_host) OVERRIDE; | 49 RenderWidgetHost* render_widget_host) OVERRIDE; |
| 50 virtual void SetPageTitle(const base::string16& title) OVERRIDE; | 50 virtual void SetPageTitle(const base::string16& title) OVERRIDE; |
| 51 virtual void RenderViewCreated(RenderViewHost* host) OVERRIDE; | 51 virtual void RenderViewCreated(RenderViewHost* host) OVERRIDE; |
| 52 virtual void RenderViewSwappedIn(RenderViewHost* host) OVERRIDE; | 52 virtual void RenderViewSwappedIn(RenderViewHost* host) OVERRIDE; |
| 53 virtual void SetOverscrollControllerEnabled(bool enabled) OVERRIDE; | 53 virtual void SetOverscrollControllerEnabled(bool enabled) OVERRIDE; |
| 54 | 54 |
| 55 // Backend implementation of RenderViewHostDelegateView. | 55 // Backend implementation of RenderViewHostDelegateView. |
| 56 virtual void ShowContextMenu(RenderFrameHost* render_frame_host, | 56 virtual void ShowContextMenu(RenderFrameHost* render_frame_host, |
| 57 const ContextMenuParams& params) OVERRIDE; | 57 const ContextMenuParams& params) OVERRIDE; |
| 58 virtual void ShowPopupMenu(const gfx::Rect& bounds, | 58 virtual void ShowPopupMenu(RenderFrameHost* render_frame_host, |
| 59 const gfx::Rect& bounds, |
| 59 int item_height, | 60 int item_height, |
| 60 double item_font_size, | 61 double item_font_size, |
| 61 int selected_item, | 62 int selected_item, |
| 62 const std::vector<MenuItem>& items, | 63 const std::vector<MenuItem>& items, |
| 63 bool right_aligned, | 64 bool right_aligned, |
| 64 bool allow_multiple_selection) OVERRIDE; | 65 bool allow_multiple_selection) OVERRIDE; |
| 65 virtual void HidePopupMenu() OVERRIDE; | 66 virtual void HidePopupMenu() OVERRIDE; |
| 66 virtual void StartDragging(const DropData& drop_data, | 67 virtual void StartDragging(const DropData& drop_data, |
| 67 blink::WebDragOperationsMask allowed_ops, | 68 blink::WebDragOperationsMask allowed_ops, |
| 68 const gfx::ImageSkia& image, | 69 const gfx::ImageSkia& image, |
| (...skipping 12 matching lines...) Expand all Loading... |
| 81 | 82 |
| 82 // Interface for extensions to WebContentsView. Used to show the context menu. | 83 // Interface for extensions to WebContentsView. Used to show the context menu. |
| 83 scoped_ptr<WebContentsViewDelegate> delegate_; | 84 scoped_ptr<WebContentsViewDelegate> delegate_; |
| 84 | 85 |
| 85 DISALLOW_COPY_AND_ASSIGN(WebContentsViewAndroid); | 86 DISALLOW_COPY_AND_ASSIGN(WebContentsViewAndroid); |
| 86 }; | 87 }; |
| 87 | 88 |
| 88 } // namespace content | 89 } // namespace content |
| 89 | 90 |
| 90 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_ | 91 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_ |
| OLD | NEW |