| 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/port/browser/render_view_host_delegate_view.h" | 9 #include "content/port/browser/render_view_host_delegate_view.h" |
| 10 #include "content/public/browser/web_contents_view.h" | 10 #include "content/public/browser/web_contents_view.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 virtual bool IsDoingDrag() const OVERRIDE; | 49 virtual bool IsDoingDrag() const OVERRIDE; |
| 50 virtual void CancelDragAndCloseTab() OVERRIDE; | 50 virtual void CancelDragAndCloseTab() OVERRIDE; |
| 51 virtual WebDropData* GetDropData() const OVERRIDE; | 51 virtual WebDropData* GetDropData() const OVERRIDE; |
| 52 virtual bool IsEventTracking() const OVERRIDE; | 52 virtual bool IsEventTracking() const OVERRIDE; |
| 53 virtual void CloseTabAfterEventTracking() OVERRIDE; | 53 virtual void CloseTabAfterEventTracking() OVERRIDE; |
| 54 virtual gfx::Rect GetViewBounds() const OVERRIDE; | 54 virtual gfx::Rect GetViewBounds() const OVERRIDE; |
| 55 | 55 |
| 56 // Backend implementation of RenderViewHostDelegateView. | 56 // Backend implementation of RenderViewHostDelegateView. |
| 57 virtual void ShowContextMenu( | 57 virtual void ShowContextMenu( |
| 58 const ContextMenuParams& params, | 58 const ContextMenuParams& params, |
| 59 const content::ContextMenuSourceType& type) OVERRIDE; | 59 content::ContextMenuSourceType type) OVERRIDE; |
| 60 virtual void ShowPopupMenu(const gfx::Rect& bounds, | 60 virtual void ShowPopupMenu(const gfx::Rect& bounds, |
| 61 int item_height, | 61 int item_height, |
| 62 double item_font_size, | 62 double item_font_size, |
| 63 int selected_item, | 63 int selected_item, |
| 64 const std::vector<WebMenuItem>& items, | 64 const std::vector<WebMenuItem>& items, |
| 65 bool right_aligned, | 65 bool right_aligned, |
| 66 bool allow_multiple_selection) OVERRIDE; | 66 bool allow_multiple_selection) OVERRIDE; |
| 67 virtual void StartDragging(const WebDropData& drop_data, | 67 virtual void StartDragging(const WebDropData& drop_data, |
| 68 WebKit::WebDragOperationsMask allowed_ops, | 68 WebKit::WebDragOperationsMask allowed_ops, |
| 69 const gfx::ImageSkia& image, | 69 const gfx::ImageSkia& image, |
| (...skipping 11 matching lines...) Expand all Loading... |
| 81 | 81 |
| 82 // Interface for extensions to WebContentsView. Used to show the context menu. | 82 // Interface for extensions to WebContentsView. Used to show the context menu. |
| 83 scoped_ptr<WebContentsViewDelegate> delegate_; | 83 scoped_ptr<WebContentsViewDelegate> delegate_; |
| 84 | 84 |
| 85 DISALLOW_COPY_AND_ASSIGN(WebContentsViewAndroid); | 85 DISALLOW_COPY_AND_ASSIGN(WebContentsViewAndroid); |
| 86 }; | 86 }; |
| 87 | 87 |
| 88 } // namespace content | 88 } // namespace content |
| 89 | 89 |
| 90 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_ | 90 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_ |
| OLD | NEW |