| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |