| 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_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_ |
| 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 | 79 |
| 80 void OnDragEntered(const std::vector<DropData::Metadata>& metadata, | 80 void OnDragEntered(const std::vector<DropData::Metadata>& metadata, |
| 81 const gfx::Point& location, | 81 const gfx::Point& location, |
| 82 const gfx::Point& screen_location); | 82 const gfx::Point& screen_location); |
| 83 void OnDragUpdated(const gfx::Point& location, | 83 void OnDragUpdated(const gfx::Point& location, |
| 84 const gfx::Point& screen_location); | 84 const gfx::Point& screen_location); |
| 85 void OnDragExited(); | 85 void OnDragExited(); |
| 86 void OnPerformDrop(DropData* drop_data, | 86 void OnPerformDrop(DropData* drop_data, |
| 87 const gfx::Point& location, | 87 const gfx::Point& location, |
| 88 const gfx::Point& screen_location); | 88 const gfx::Point& screen_location); |
| 89 void OnDragEnded(); |
| 89 | 90 |
| 90 private: | 91 private: |
| 91 // The WebContents whose contents we display. | 92 // The WebContents whose contents we display. |
| 92 WebContentsImpl* web_contents_; | 93 WebContentsImpl* web_contents_; |
| 93 | 94 |
| 94 // ContentViewCoreImpl is our interface to the view system. | 95 // ContentViewCoreImpl is our interface to the view system. |
| 95 ContentViewCoreImpl* content_view_core_; | 96 ContentViewCoreImpl* content_view_core_; |
| 96 | 97 |
| 97 // Interface for extensions to WebContentsView. Used to show the context menu. | 98 // Interface for extensions to WebContentsView. Used to show the context menu. |
| 98 std::unique_ptr<WebContentsViewDelegate> delegate_; | 99 std::unique_ptr<WebContentsViewDelegate> delegate_; |
| 99 | 100 |
| 100 DISALLOW_COPY_AND_ASSIGN(WebContentsViewAndroid); | 101 DISALLOW_COPY_AND_ASSIGN(WebContentsViewAndroid); |
| 101 }; | 102 }; |
| 102 | 103 |
| 103 } // namespace content | 104 } // namespace content |
| 104 | 105 |
| 105 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_ | 106 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_ |
| OLD | NEW |