OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
619 const gfx::Point& location); | 619 const gfx::Point& location); |
620 void OnCopyImageAt(int x, int y); | 620 void OnCopyImageAt(int x, int y); |
621 void OnSaveImageAt(int x, int y); | 621 void OnSaveImageAt(int x, int y); |
622 void OnDeterminePageLanguage(); | 622 void OnDeterminePageLanguage(); |
623 void OnDisableScrollbarsForSmallWindows( | 623 void OnDisableScrollbarsForSmallWindows( |
624 const gfx::Size& disable_scrollbars_size_limit); | 624 const gfx::Size& disable_scrollbars_size_limit); |
625 void OnDragSourceEnded(const gfx::Point& client_point, | 625 void OnDragSourceEnded(const gfx::Point& client_point, |
626 const gfx::Point& screen_point, | 626 const gfx::Point& screen_point, |
627 blink::WebDragOperation drag_operation); | 627 blink::WebDragOperation drag_operation); |
628 void OnDragSourceSystemDragEnded(); | 628 void OnDragSourceSystemDragEnded(); |
629 void OnDragTargetDrop(const gfx::Point& client_pt, | 629 // |drop_data| will only be used when |is_valid_drop_data| is true. This is |
| 630 // because on most platforms (Aura), the drop data is available when the drag |
| 631 // starts and stays the same until it's dropped. On Android, the drop data is |
| 632 // unavailable until DragTargetDrop. So on Android, |drop_data| will contain |
| 633 // the real data and |is_valid_drop_data| is true. |
| 634 void OnDragTargetDrop(const content::DropData& drop_data, |
| 635 bool is_valid_drop_data, |
| 636 const gfx::Point& client_pt, |
630 const gfx::Point& screen_pt, | 637 const gfx::Point& screen_pt, |
631 int key_modifiers); | 638 int key_modifiers); |
| 639 // On Android, |drop_data| will contain dummy data because drop data is |
| 640 // unavailable until 'drop' action. |
632 void OnDragTargetDragEnter(const DropData& drop_data, | 641 void OnDragTargetDragEnter(const DropData& drop_data, |
633 const gfx::Point& client_pt, | 642 const gfx::Point& client_pt, |
634 const gfx::Point& screen_pt, | 643 const gfx::Point& screen_pt, |
635 blink::WebDragOperationsMask operations_allowed, | 644 blink::WebDragOperationsMask operations_allowed, |
636 int key_modifiers); | 645 int key_modifiers); |
637 void OnDragTargetDragLeave(); | 646 void OnDragTargetDragLeave(); |
638 void OnDragTargetDragOver(const gfx::Point& client_pt, | 647 void OnDragTargetDragOver(const gfx::Point& client_pt, |
639 const gfx::Point& screen_pt, | 648 const gfx::Point& screen_pt, |
640 blink::WebDragOperationsMask operations_allowed, | 649 blink::WebDragOperationsMask operations_allowed, |
641 int key_modifiers); | 650 int key_modifiers); |
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1017 // use the Observer interface to filter IPC messages and receive frame change | 1026 // use the Observer interface to filter IPC messages and receive frame change |
1018 // notifications. | 1027 // notifications. |
1019 // --------------------------------------------------------------------------- | 1028 // --------------------------------------------------------------------------- |
1020 | 1029 |
1021 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1030 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1022 }; | 1031 }; |
1023 | 1032 |
1024 } // namespace content | 1033 } // namespace content |
1025 | 1034 |
1026 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1035 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |