Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(131)

Side by Side Diff: content/browser/web_contents/web_contents_view_android.h

Issue 18281002: Move WebDropData to content::DropData and split off conversion function. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Mac build error. Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/web_contents/web_contents_impl.h" 9 #include "content/browser/web_contents/web_contents_impl.h"
10 #include "content/port/browser/render_view_host_delegate_view.h" 10 #include "content/port/browser/render_view_host_delegate_view.h"
(...skipping 29 matching lines...) Expand all
40 virtual gfx::NativeView GetContentNativeView() const OVERRIDE; 40 virtual gfx::NativeView GetContentNativeView() const OVERRIDE;
41 virtual gfx::NativeWindow GetTopLevelNativeWindow() const OVERRIDE; 41 virtual gfx::NativeWindow GetTopLevelNativeWindow() const OVERRIDE;
42 virtual void GetContainerBounds(gfx::Rect* out) const OVERRIDE; 42 virtual void GetContainerBounds(gfx::Rect* out) const OVERRIDE;
43 virtual void OnTabCrashed(base::TerminationStatus status, 43 virtual void OnTabCrashed(base::TerminationStatus status,
44 int error_code) OVERRIDE; 44 int error_code) OVERRIDE;
45 virtual void SizeContents(const gfx::Size& size) OVERRIDE; 45 virtual void SizeContents(const gfx::Size& size) OVERRIDE;
46 virtual void Focus() OVERRIDE; 46 virtual void Focus() OVERRIDE;
47 virtual void SetInitialFocus() OVERRIDE; 47 virtual void SetInitialFocus() OVERRIDE;
48 virtual void StoreFocus() OVERRIDE; 48 virtual void StoreFocus() OVERRIDE;
49 virtual void RestoreFocus() OVERRIDE; 49 virtual void RestoreFocus() OVERRIDE;
50 virtual WebDropData* GetDropData() const OVERRIDE; 50 virtual DropData* GetDropData() const OVERRIDE;
51 virtual gfx::Rect GetViewBounds() const OVERRIDE; 51 virtual gfx::Rect GetViewBounds() const OVERRIDE;
52 52
53 // WebContentsViewPort implementation ---------------------------------------- 53 // WebContentsViewPort implementation ----------------------------------------
54 virtual void CreateView( 54 virtual void CreateView(
55 const gfx::Size& initial_size, gfx::NativeView context) OVERRIDE; 55 const gfx::Size& initial_size, gfx::NativeView context) OVERRIDE;
56 virtual RenderWidgetHostView* CreateViewForWidget( 56 virtual RenderWidgetHostView* CreateViewForWidget(
57 RenderWidgetHost* render_widget_host) OVERRIDE; 57 RenderWidgetHost* render_widget_host) OVERRIDE;
58 virtual RenderWidgetHostView* CreateViewForPopupWidget( 58 virtual RenderWidgetHostView* CreateViewForPopupWidget(
59 RenderWidgetHost* render_widget_host) OVERRIDE; 59 RenderWidgetHost* render_widget_host) OVERRIDE;
60 virtual void SetPageTitle(const string16& title) OVERRIDE; 60 virtual void SetPageTitle(const string16& title) OVERRIDE;
61 virtual void RenderViewCreated(RenderViewHost* host) OVERRIDE; 61 virtual void RenderViewCreated(RenderViewHost* host) OVERRIDE;
62 virtual void RenderViewSwappedIn(RenderViewHost* host) OVERRIDE; 62 virtual void RenderViewSwappedIn(RenderViewHost* host) OVERRIDE;
63 virtual void SetOverscrollControllerEnabled(bool enabled) OVERRIDE; 63 virtual void SetOverscrollControllerEnabled(bool enabled) OVERRIDE;
64 64
65 // Backend implementation of RenderViewHostDelegateView. 65 // Backend implementation of RenderViewHostDelegateView.
66 virtual void ShowContextMenu(const ContextMenuParams& params) OVERRIDE; 66 virtual void ShowContextMenu(const ContextMenuParams& params) OVERRIDE;
67 virtual void ShowPopupMenu(const gfx::Rect& bounds, 67 virtual void ShowPopupMenu(const gfx::Rect& bounds,
68 int item_height, 68 int item_height,
69 double item_font_size, 69 double item_font_size,
70 int selected_item, 70 int selected_item,
71 const std::vector<WebMenuItem>& items, 71 const std::vector<WebMenuItem>& items,
72 bool right_aligned, 72 bool right_aligned,
73 bool allow_multiple_selection) OVERRIDE; 73 bool allow_multiple_selection) OVERRIDE;
74 virtual void StartDragging(const WebDropData& drop_data, 74 virtual void StartDragging(const DropData& drop_data,
75 WebKit::WebDragOperationsMask allowed_ops, 75 WebKit::WebDragOperationsMask allowed_ops,
76 const gfx::ImageSkia& image, 76 const gfx::ImageSkia& image,
77 const gfx::Vector2d& image_offset, 77 const gfx::Vector2d& image_offset,
78 const DragEventSourceInfo& event_info) OVERRIDE; 78 const DragEventSourceInfo& event_info) OVERRIDE;
79 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) OVERRIDE; 79 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) OVERRIDE;
80 virtual void GotFocus() OVERRIDE; 80 virtual void GotFocus() OVERRIDE;
81 virtual void TakeFocus(bool reverse) OVERRIDE; 81 virtual void TakeFocus(bool reverse) OVERRIDE;
82 82
83 private: 83 private:
84 // The WebContents whose contents we display. 84 // The WebContents whose contents we display.
85 WebContentsImpl* web_contents_; 85 WebContentsImpl* web_contents_;
86 86
87 // ContentViewCoreImpl is our interface to the view system. 87 // ContentViewCoreImpl is our interface to the view system.
88 ContentViewCoreImpl* content_view_core_; 88 ContentViewCoreImpl* content_view_core_;
89 89
90 // Interface for extensions to WebContentsView. Used to show the context menu. 90 // Interface for extensions to WebContentsView. Used to show the context menu.
91 scoped_ptr<WebContentsViewDelegate> delegate_; 91 scoped_ptr<WebContentsViewDelegate> delegate_;
92 92
93 DISALLOW_COPY_AND_ASSIGN(WebContentsViewAndroid); 93 DISALLOW_COPY_AND_ASSIGN(WebContentsViewAndroid);
94 }; 94 };
95 95
96 } // namespace content 96 } // namespace content
97 97
98 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_ 98 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_drag_win.cc ('k') | content/browser/web_contents/web_contents_view_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698