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

Side by Side Diff: content/public/browser/render_view_host.h

Issue 1728193002: Support dragging texts into Android WebView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review Created 4 years, 9 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_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ 6 #define CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 int key_modifiers) = 0; 138 int key_modifiers) = 0;
139 virtual void DragTargetDragOver( 139 virtual void DragTargetDragOver(
140 const gfx::Point& client_pt, 140 const gfx::Point& client_pt,
141 const gfx::Point& screen_pt, 141 const gfx::Point& screen_pt,
142 blink::WebDragOperationsMask operations_allowed, 142 blink::WebDragOperationsMask operations_allowed,
143 int key_modifiers) = 0; 143 int key_modifiers) = 0;
144 virtual void DragTargetDragLeave() = 0; 144 virtual void DragTargetDragLeave() = 0;
145 virtual void DragTargetDrop(const gfx::Point& client_pt, 145 virtual void DragTargetDrop(const gfx::Point& client_pt,
146 const gfx::Point& screen_pt, 146 const gfx::Point& screen_pt,
147 int key_modifiers) = 0; 147 int key_modifiers) = 0;
148 #if defined(OS_ANDROID)
149 virtual void DragTargetDropWithData(const DropData& drop_data,
aelias_OOO_until_Jul13 2016/02/25 20:58:00 Why do you need to add a new platform-specific met
hush (inactive) 2016/02/27 01:46:13 See CL: https://codereview.chromium.org/1723763002
aelias_OOO_until_Jul13 2016/02/27 01:54:41 It doesn't seem great that we're passing in fake/e
hush (inactive) 2016/02/29 18:27:41 I can do that. But this would bloat this CL signif
hush (inactive) 2016/03/01 18:54:28 Hi Alex, I did some investigation yesterday and i
150 const gfx::Point& client_pt,
151 const gfx::Point& screen_pt,
152 int key_modifiers) = 0;
153 #endif
148 154
149 // Instructs the RenderView to automatically resize and send back updates 155 // Instructs the RenderView to automatically resize and send back updates
150 // for the new size. 156 // for the new size.
151 virtual void EnableAutoResize(const gfx::Size& min_size, 157 virtual void EnableAutoResize(const gfx::Size& min_size,
152 const gfx::Size& max_size) = 0; 158 const gfx::Size& max_size) = 0;
153 159
154 // Turns off auto-resize and gives a new size that the view should be. 160 // Turns off auto-resize and gives a new size that the view should be.
155 virtual void DisableAutoResize(const gfx::Size& new_size) = 0; 161 virtual void DisableAutoResize(const gfx::Size& new_size) = 0;
156 162
157 // Instructs the RenderView to send back updates to the preferred size. 163 // Instructs the RenderView to send back updates to the preferred size.
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 224
219 private: 225 private:
220 // This interface should only be implemented inside content. 226 // This interface should only be implemented inside content.
221 friend class RenderViewHostImpl; 227 friend class RenderViewHostImpl;
222 RenderViewHost() {} 228 RenderViewHost() {}
223 }; 229 };
224 230
225 } // namespace content 231 } // namespace content
226 232
227 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ 233 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698