Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 108 const WebKit::WebPoint& client_point, | 108 const WebKit::WebPoint& client_point, |
| 109 const WebKit::WebPoint& screen_point); | 109 const WebKit::WebPoint& screen_point); |
| 110 virtual bool DragTargetDragOver( | 110 virtual bool DragTargetDragOver( |
| 111 const WebKit::WebPoint& client_point, | 111 const WebKit::WebPoint& client_point, |
| 112 const WebKit::WebPoint& screen_point); | 112 const WebKit::WebPoint& screen_point); |
| 113 virtual void DragTargetDragLeave(); | 113 virtual void DragTargetDragLeave(); |
| 114 virtual void DragTargetDrop( | 114 virtual void DragTargetDrop( |
| 115 const WebKit::WebPoint& client_point, | 115 const WebKit::WebPoint& client_point, |
| 116 const WebKit::WebPoint& screen_point); | 116 const WebKit::WebPoint& screen_point); |
| 117 virtual int32 GetDragIdentity(); | 117 virtual int32 GetDragIdentity(); |
| 118 virtual bool SetDropEffect(bool accept); | |
| 118 virtual void AutofillSuggestionsForNode( | 119 virtual void AutofillSuggestionsForNode( |
| 119 int64 node_id, | 120 int64 node_id, |
| 120 const std::vector<std::wstring>& suggestions, | 121 const std::vector<std::wstring>& suggestions, |
| 121 int default_suggestion_index); | 122 int default_suggestion_index); |
| 122 virtual void HideAutofillPopup(); | 123 virtual void HideAutofillPopup(); |
| 123 | 124 |
| 124 virtual WebDevToolsAgent* GetWebDevToolsAgent(); | 125 virtual WebDevToolsAgent* GetWebDevToolsAgent(); |
| 125 WebDevToolsAgentImpl* GetWebDevToolsAgentImpl(); | 126 WebDevToolsAgentImpl* GetWebDevToolsAgentImpl(); |
| 126 | 127 |
| 127 // WebViewImpl | 128 // WebViewImpl |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 317 bool ime_accept_events_; | 318 bool ime_accept_events_; |
| 318 | 319 |
| 319 // True while dispatching system drag and drop events to drag/drop targets | 320 // True while dispatching system drag and drop events to drag/drop targets |
| 320 // within this WebView. | 321 // within this WebView. |
| 321 bool drag_target_dispatch_; | 322 bool drag_target_dispatch_; |
| 322 | 323 |
| 323 // Valid when drag_target_dispatch_ is true; the identity of the drag data | 324 // Valid when drag_target_dispatch_ is true; the identity of the drag data |
| 324 // copied from the WebDropData object sent from the browser process. | 325 // copied from the WebDropData object sent from the browser process. |
| 325 int32 drag_identity_; | 326 int32 drag_identity_; |
| 326 | 327 |
| 328 // Valid when drag_target_dispatch_ is true. Used to override the default | |
| 329 // browser drop effect with the effects "copy" or "none". | |
| 330 enum DragTargetDropEffect { | |
| 331 DROP_EFFECT_DEFAULT = 0, DROP_EFFECT_COPY, DROP_EFFECT_NONE | |
|
tony
2009/04/21 18:26:28
Nit: one value per line (that's what we do everywh
| |
| 332 } drop_effect_; | |
| 333 | |
| 334 // When true, the drag data can be dropped onto the current drop target in | |
| 335 // this WebView (the drop target can accept the drop). | |
| 336 bool drop_accept_; | |
| 337 | |
| 327 // The autocomplete popup. Kept around and reused every-time new suggestions | 338 // The autocomplete popup. Kept around and reused every-time new suggestions |
| 328 // should be shown. | 339 // should be shown. |
| 329 RefPtr<WebCore::PopupContainer> autocomplete_popup_; | 340 RefPtr<WebCore::PopupContainer> autocomplete_popup_; |
| 330 | 341 |
| 331 // Whether the autocomplete popup is currently showing. | 342 // Whether the autocomplete popup is currently showing. |
| 332 bool autocomplete_popup_showing_; | 343 bool autocomplete_popup_showing_; |
| 333 | 344 |
| 334 // The autocomplete client. | 345 // The autocomplete client. |
| 335 scoped_ptr<AutocompletePopupMenuClient> autocomplete_popup_client_; | 346 scoped_ptr<AutocompletePopupMenuClient> autocomplete_popup_client_; |
| 336 | 347 |
| 337 scoped_ptr<WebDevToolsAgentImpl> devtools_agent_; | 348 scoped_ptr<WebDevToolsAgentImpl> devtools_agent_; |
| 338 | 349 |
| 339 // HACK: current_input_event is for ChromeClientImpl::show(), until we can fix | 350 // HACK: current_input_event is for ChromeClientImpl::show(), until we can fix |
| 340 // WebKit to pass enough information up into ChromeClient::show() so we can | 351 // WebKit to pass enough information up into ChromeClient::show() so we can |
| 341 // decide if the window.open event was caused by a middle-mouse click | 352 // decide if the window.open event was caused by a middle-mouse click |
| 342 public: | 353 public: |
| 343 static const WebKit::WebInputEvent* current_input_event() { | 354 static const WebKit::WebInputEvent* current_input_event() { |
| 344 return g_current_input_event; | 355 return g_current_input_event; |
| 345 } | 356 } |
| 346 private: | 357 private: |
| 347 static const WebKit::WebInputEvent* g_current_input_event; | 358 static const WebKit::WebInputEvent* g_current_input_event; |
| 348 | 359 |
| 349 DISALLOW_COPY_AND_ASSIGN(WebViewImpl); | 360 DISALLOW_COPY_AND_ASSIGN(WebViewImpl); |
| 350 }; | 361 }; |
| 351 | 362 |
| 352 #endif // WEBKIT_GLUE_WEBVIEW_IMPL_H_ | 363 #endif // WEBKIT_GLUE_WEBVIEW_IMPL_H_ |
| OLD | NEW |