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

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

Issue 2135493002: Support dragging texts out of webview/Chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Workaround b/30148704 Created 4 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
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 <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 79
80 void OnDragEntered(const std::vector<DropData::Metadata>& metadata, 80 void OnDragEntered(const std::vector<DropData::Metadata>& metadata,
81 const gfx::Point& location, 81 const gfx::Point& location,
82 const gfx::Point& screen_location); 82 const gfx::Point& screen_location);
83 void OnDragUpdated(const gfx::Point& location, 83 void OnDragUpdated(const gfx::Point& location,
84 const gfx::Point& screen_location); 84 const gfx::Point& screen_location);
85 void OnDragExited(); 85 void OnDragExited();
86 void OnPerformDrop(DropData* drop_data, 86 void OnPerformDrop(DropData* drop_data,
87 const gfx::Point& location, 87 const gfx::Point& location,
88 const gfx::Point& screen_location); 88 const gfx::Point& screen_location);
89 void OnDragEnded();
89 90
90 private: 91 private:
91 // The WebContents whose contents we display. 92 // The WebContents whose contents we display.
92 WebContentsImpl* web_contents_; 93 WebContentsImpl* web_contents_;
93 94
94 // ContentViewCoreImpl is our interface to the view system. 95 // ContentViewCoreImpl is our interface to the view system.
95 ContentViewCoreImpl* content_view_core_; 96 ContentViewCoreImpl* content_view_core_;
96 97
97 // Interface for extensions to WebContentsView. Used to show the context menu. 98 // Interface for extensions to WebContentsView. Used to show the context menu.
98 std::unique_ptr<WebContentsViewDelegate> delegate_; 99 std::unique_ptr<WebContentsViewDelegate> delegate_;
99 100
100 DISALLOW_COPY_AND_ASSIGN(WebContentsViewAndroid); 101 DISALLOW_COPY_AND_ASSIGN(WebContentsViewAndroid);
101 }; 102 };
102 103
103 } // namespace content 104 } // namespace content
104 105
105 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_ 106 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_
OLDNEW
« no previous file with comments | « content/browser/android/content_view_core_impl.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