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

Side by Side Diff: webkit/glue/webview_impl.h

Issue 28108: Add an identity (id) to system drag & drop. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 10 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
« no previous file with comments | « webkit/glue/webview.h ('k') | webkit/glue/webview_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 WEBKIT_GLUE_WEBVIEW_IMPL_H__ 5 #ifndef WEBKIT_GLUE_WEBVIEW_IMPL_H__
6 #define WEBKIT_GLUE_WEBVIEW_IMPL_H__ 6 #define WEBKIT_GLUE_WEBVIEW_IMPL_H__
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 virtual void DragSourceMovedTo( 93 virtual void DragSourceMovedTo(
94 int client_x, int client_y, int screen_x, int screen_y); 94 int client_x, int client_y, int screen_x, int screen_y);
95 virtual void DragSourceSystemDragEnded(); 95 virtual void DragSourceSystemDragEnded();
96 virtual bool DragTargetDragEnter(const WebDropData& drop_data, 96 virtual bool DragTargetDragEnter(const WebDropData& drop_data,
97 int client_x, int client_y, int screen_x, int screen_y); 97 int client_x, int client_y, int screen_x, int screen_y);
98 virtual bool DragTargetDragOver( 98 virtual bool DragTargetDragOver(
99 int client_x, int client_y, int screen_x, int screen_y); 99 int client_x, int client_y, int screen_x, int screen_y);
100 virtual void DragTargetDragLeave(); 100 virtual void DragTargetDragLeave();
101 virtual void DragTargetDrop( 101 virtual void DragTargetDrop(
102 int client_x, int client_y, int screen_x, int screen_y); 102 int client_x, int client_y, int screen_x, int screen_y);
103 virtual int32 GetDragIdentity();
103 virtual void AutofillSuggestionsForNode( 104 virtual void AutofillSuggestionsForNode(
104 int64 node_id, 105 int64 node_id,
105 const std::vector<std::wstring>& suggestions, 106 const std::vector<std::wstring>& suggestions,
106 int default_suggestion_index); 107 int default_suggestion_index);
107 108
108 // WebViewImpl 109 // WebViewImpl
109 110
110 const gfx::Size& size() const { return size_; } 111 const gfx::Size& size() const { return size_; }
111 112
112 const gfx::Point& last_mouse_down_point() const { 113 const gfx::Point& last_mouse_down_point() const {
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 // associated WM_CHAR event if the keydown was handled. We emulate 287 // associated WM_CHAR event if the keydown was handled. We emulate
287 // this behavior by setting this flag if the keyDown was handled. 288 // this behavior by setting this flag if the keyDown was handled.
288 bool suppress_next_keypress_event_; 289 bool suppress_next_keypress_event_;
289 290
290 // The disposition for how this webview is to be initially shown. 291 // The disposition for how this webview is to be initially shown.
291 WindowOpenDisposition window_open_disposition_; 292 WindowOpenDisposition window_open_disposition_;
292 293
293 // Represents whether or not this object should process incoming IME events. 294 // Represents whether or not this object should process incoming IME events.
294 bool ime_accept_events_; 295 bool ime_accept_events_;
295 296
297 // True while dispatching system drag and drop events to drag/drop targets
298 // within this WebView.
299 bool drag_target_dispatch_;
300
301 // Valid when drag_target_dispatch_ is true; the identity of the drag data
302 // copied from the WebDropData object sent from the browser process.
303 int32 drag_identity_;
304
296 // The autocomplete popup. Kept around and reused every-time new suggestions 305 // The autocomplete popup. Kept around and reused every-time new suggestions
297 // should be shown. 306 // should be shown.
298 RefPtr<WebCore::PopupContainer> autocomplete_popup_; 307 RefPtr<WebCore::PopupContainer> autocomplete_popup_;
299 308
300 // Whether the autocomplete popup is currently showing. 309 // Whether the autocomplete popup is currently showing.
301 bool autocomplete_popup_showing_; 310 bool autocomplete_popup_showing_;
302 311
303 // The autocomplete client. 312 // The autocomplete client.
304 scoped_ptr<AutocompletePopupMenuClient> autocomplete_popup_client_; 313 scoped_ptr<AutocompletePopupMenuClient> autocomplete_popup_client_;
305 314
306 // HACK: current_input_event is for ChromeClientImpl::show(), until we can fix 315 // HACK: current_input_event is for ChromeClientImpl::show(), until we can fix
307 // WebKit to pass enough information up into ChromeClient::show() so we can 316 // WebKit to pass enough information up into ChromeClient::show() so we can
308 // decide if the window.open event was caused by a middle-mouse click 317 // decide if the window.open event was caused by a middle-mouse click
309 public: 318 public:
310 static const WebInputEvent* current_input_event() { 319 static const WebInputEvent* current_input_event() {
311 return g_current_input_event; 320 return g_current_input_event;
312 } 321 }
313 private: 322 private:
314 static const WebInputEvent* g_current_input_event; 323 static const WebInputEvent* g_current_input_event;
315 324
316 DISALLOW_EVIL_CONSTRUCTORS(WebViewImpl); 325 DISALLOW_EVIL_CONSTRUCTORS(WebViewImpl);
317 }; 326 };
318 327
319 #endif // WEBKIT_GLUE_WEBVIEW_IMPL_H__ 328 #endif // WEBKIT_GLUE_WEBVIEW_IMPL_H__
320 329
OLDNEW
« no previous file with comments | « webkit/glue/webview.h ('k') | webkit/glue/webview_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698