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

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

Issue 102016: Modify WebView drop effect override values. (Closed)
Patch Set: Created 11 years, 7 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 | « no previous file | no next file » | 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 324
325 // True while dispatching system drag and drop events to drag/drop targets 325 // True while dispatching system drag and drop events to drag/drop targets
326 // within this WebView. 326 // within this WebView.
327 bool drag_target_dispatch_; 327 bool drag_target_dispatch_;
328 328
329 // Valid when drag_target_dispatch_ is true; the identity of the drag data 329 // Valid when drag_target_dispatch_ is true; the identity of the drag data
330 // copied from the WebDropData object sent from the browser process. 330 // copied from the WebDropData object sent from the browser process.
331 int32 drag_identity_; 331 int32 drag_identity_;
332 332
333 // Valid when drag_target_dispatch_ is true. Used to override the default 333 // Valid when drag_target_dispatch_ is true. Used to override the default
334 // browser drop effect with the effects "copy" or "none". 334 // browser drop effect with the effects "none" or "copy".
335 enum DragTargetDropEffect { 335 enum DragTargetDropEffect {
336 DROP_EFFECT_DEFAULT = 0, 336 DROP_EFFECT_DEFAULT = -1,
337 DROP_EFFECT_COPY, 337 DROP_EFFECT_NONE,
338 DROP_EFFECT_NONE 338 DROP_EFFECT_COPY
339 } drop_effect_; 339 } drop_effect_;
340 340
341 // When true, the drag data can be dropped onto the current drop target in 341 // When true, the drag data can be dropped onto the current drop target in
342 // this WebView (the drop target can accept the drop). 342 // this WebView (the drop target can accept the drop).
343 bool drop_accept_; 343 bool drop_accept_;
344 344
345 // The autocomplete popup. Kept around and reused every-time new suggestions 345 // The autocomplete popup. Kept around and reused every-time new suggestions
346 // should be shown. 346 // should be shown.
347 RefPtr<WebCore::PopupContainer> autocomplete_popup_; 347 RefPtr<WebCore::PopupContainer> autocomplete_popup_;
348 348
(...skipping 15 matching lines...) Expand all
364 static const WebKit::WebInputEvent* current_input_event() { 364 static const WebKit::WebInputEvent* current_input_event() {
365 return g_current_input_event; 365 return g_current_input_event;
366 } 366 }
367 private: 367 private:
368 static const WebKit::WebInputEvent* g_current_input_event; 368 static const WebKit::WebInputEvent* g_current_input_event;
369 369
370 DISALLOW_COPY_AND_ASSIGN(WebViewImpl); 370 DISALLOW_COPY_AND_ASSIGN(WebViewImpl);
371 }; 371 };
372 372
373 #endif // WEBKIT_GLUE_WEBVIEW_IMPL_H_ 373 #endif // WEBKIT_GLUE_WEBVIEW_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698