OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 return m_currentInputEvent; | 272 return m_currentInputEvent; |
273 } | 273 } |
274 | 274 |
275 private: | 275 private: |
276 friend class WebView; // So WebView::Create can call our constructor | 276 friend class WebView; // So WebView::Create can call our constructor |
277 friend class WTF::RefCounted<WebViewImpl>; | 277 friend class WTF::RefCounted<WebViewImpl>; |
278 | 278 |
279 WebViewImpl(WebViewClient* client); | 279 WebViewImpl(WebViewClient* client); |
280 ~WebViewImpl(); | 280 ~WebViewImpl(); |
281 | 281 |
282 void modifySelection(uint32 message, WebCore::Frame*, const WebCore::PlatformKeyboardEvent&); | |
283 | |
284 // Returns true if the event was actually processed. | 282 // Returns true if the event was actually processed. |
285 bool keyEventDefault(const WebKeyboardEvent&); | 283 bool keyEventDefault(const WebKeyboardEvent&); |
286 | 284 |
287 // Returns true if the autocomple has consumed the event. | 285 // Returns true if the autocomple has consumed the event. |
288 bool autocompleteHandleKeyEvent(const WebKeyboardEvent&); | 286 bool autocompleteHandleKeyEvent(const WebKeyboardEvent&); |
289 | 287 |
290 // Repaints the autofill popup. Should be called when the suggestions have | 288 // Repaints the autofill popup. Should be called when the suggestions have |
291 // changed. Note that this should only be called when the autofill popup is | 289 // changed. Note that this should only be called when the autofill popup is |
292 // showing. | 290 // showing. |
293 void refreshAutofillPopup(); | 291 void refreshAutofillPopup(); |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 | 358 |
361 // Represents whether or not this object should process incoming IME events. | 359 // Represents whether or not this object should process incoming IME events. |
362 bool m_imeAcceptEvents; | 360 bool m_imeAcceptEvents; |
363 | 361 |
364 // True while dispatching system drag and drop events to drag/drop targets | 362 // True while dispatching system drag and drop events to drag/drop targets |
365 // within this WebView. | 363 // within this WebView. |
366 bool m_dragTargetDispatch; | 364 bool m_dragTargetDispatch; |
367 | 365 |
368 // Valid when m_dragTargetDispatch is true; the identity of the drag data | 366 // Valid when m_dragTargetDispatch is true; the identity of the drag data |
369 // copied from the WebDropData object sent from the browser process. | 367 // copied from the WebDropData object sent from the browser process. |
370 int32 m_dragIdentity; | 368 int m_dragIdentity; |
371 | 369 |
372 // Valid when m_dragTargetDispatch is true. Used to override the default | 370 // Valid when m_dragTargetDispatch is true. Used to override the default |
373 // browser drop effect with the effects "none" or "copy". | 371 // browser drop effect with the effects "none" or "copy". |
374 enum DragTargetDropEffect { | 372 enum DragTargetDropEffect { |
375 DropEffectDefault = -1, | 373 DropEffectDefault = -1, |
376 DropEffectNone, | 374 DropEffectNone, |
377 DropEffectCopy | 375 DropEffectCopy |
378 } m_dropEffect; | 376 } m_dropEffect; |
379 | 377 |
380 // The available drag operations (copy, move link...) allowed by the source. | 378 // The available drag operations (copy, move link...) allowed by the source. |
(...skipping 29 matching lines...) Expand all Loading... |
410 // The provider of desktop notifications; | 408 // The provider of desktop notifications; |
411 NotificationPresenterImpl m_notificationPresenter; | 409 NotificationPresenterImpl m_notificationPresenter; |
412 #endif | 410 #endif |
413 | 411 |
414 static const WebInputEvent* m_currentInputEvent; | 412 static const WebInputEvent* m_currentInputEvent; |
415 }; | 413 }; |
416 | 414 |
417 } // namespace WebKit | 415 } // namespace WebKit |
418 | 416 |
419 #endif | 417 #endif |
OLD | NEW |