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

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

Issue 28158: Add an identity (id) to system drag & drop. (Closed)
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
« 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 virtual void HideAutofillPopup(); 108 virtual void HideAutofillPopup();
108 109
109 // WebViewImpl 110 // WebViewImpl
110 111
111 const gfx::Size& size() const { return size_; } 112 const gfx::Size& size() const { return size_; }
112 113
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 // associated WM_CHAR event if the keydown was handled. We emulate 288 // associated WM_CHAR event if the keydown was handled. We emulate
288 // this behavior by setting this flag if the keyDown was handled. 289 // this behavior by setting this flag if the keyDown was handled.
289 bool suppress_next_keypress_event_; 290 bool suppress_next_keypress_event_;
290 291
291 // The disposition for how this webview is to be initially shown. 292 // The disposition for how this webview is to be initially shown.
292 WindowOpenDisposition window_open_disposition_; 293 WindowOpenDisposition window_open_disposition_;
293 294
294 // Represents whether or not this object should process incoming IME events. 295 // Represents whether or not this object should process incoming IME events.
295 bool ime_accept_events_; 296 bool ime_accept_events_;
296 297
298 // True while dispatching system drag and drop events to drag/drop targets
299 // within this WebView.
300 bool drag_target_dispatch_;
301
302 // Valid when drag_target_dispatch_ is true; the identity of the drag data
303 // copied from the WebDropData object sent from the browser process.
304 int32 drag_identity_;
305
297 // The autocomplete popup. Kept around and reused every-time new suggestions 306 // The autocomplete popup. Kept around and reused every-time new suggestions
298 // should be shown. 307 // should be shown.
299 RefPtr<WebCore::PopupContainer> autocomplete_popup_; 308 RefPtr<WebCore::PopupContainer> autocomplete_popup_;
300 309
301 // Whether the autocomplete popup is currently showing. 310 // Whether the autocomplete popup is currently showing.
302 bool autocomplete_popup_showing_; 311 bool autocomplete_popup_showing_;
303 312
304 // The autocomplete client. 313 // The autocomplete client.
305 scoped_ptr<AutocompletePopupMenuClient> autocomplete_popup_client_; 314 scoped_ptr<AutocompletePopupMenuClient> autocomplete_popup_client_;
306 315
307 // HACK: current_input_event is for ChromeClientImpl::show(), until we can fix 316 // HACK: current_input_event is for ChromeClientImpl::show(), until we can fix
308 // WebKit to pass enough information up into ChromeClient::show() so we can 317 // WebKit to pass enough information up into ChromeClient::show() so we can
309 // decide if the window.open event was caused by a middle-mouse click 318 // decide if the window.open event was caused by a middle-mouse click
310 public: 319 public:
311 static const WebInputEvent* current_input_event() { 320 static const WebInputEvent* current_input_event() {
312 return g_current_input_event; 321 return g_current_input_event;
313 } 322 }
314 private: 323 private:
315 static const WebInputEvent* g_current_input_event; 324 static const WebInputEvent* g_current_input_event;
316 325
317 DISALLOW_EVIL_CONSTRUCTORS(WebViewImpl); 326 DISALLOW_EVIL_CONSTRUCTORS(WebViewImpl);
318 }; 327 };
319 328
320 #endif // WEBKIT_GLUE_WEBVIEW_IMPL_H__ 329 #endif // WEBKIT_GLUE_WEBVIEW_IMPL_H__
321 330
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