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 ANDROID_WEBVIEW_COMMON_AW_HIT_TEST_DATA_H_ | 5 #ifndef ANDROID_WEBVIEW_COMMON_AW_HIT_TEST_DATA_H_ |
6 #define ANDROID_WEBVIEW_COMMON_AW_HIT_TEST_DATA_H_ | 6 #define ANDROID_WEBVIEW_COMMON_AW_HIT_TEST_DATA_H_ |
7 | 7 |
8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
9 #include "url/gurl.h" | 9 #include "url/gurl.h" |
10 | 10 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 SRC_IMAGE_LINK_TYPE = 8, | 59 SRC_IMAGE_LINK_TYPE = 8, |
60 | 60 |
61 // Hit on an editable text input element. All other values will be empty. | 61 // Hit on an editable text input element. All other values will be empty. |
62 EDIT_TEXT_TYPE = 9, | 62 EDIT_TEXT_TYPE = 9, |
63 }; | 63 }; |
64 | 64 |
65 // For all strings/GURLs, empty/invalid will become null upon conversion to | 65 // For all strings/GURLs, empty/invalid will become null upon conversion to |
66 // Java. | 66 // Java. |
67 int type; // Only values from enum Type above. | 67 int type; // Only values from enum Type above. |
68 std::string extra_data_for_type; | 68 std::string extra_data_for_type; |
69 string16 href; | 69 base::string16 href; |
70 string16 anchor_text; | 70 base::string16 anchor_text; |
71 GURL img_src; | 71 GURL img_src; |
72 | 72 |
73 AwHitTestData(); | 73 AwHitTestData(); |
74 ~AwHitTestData(); | 74 ~AwHitTestData(); |
75 }; | 75 }; |
76 | 76 |
77 } // namespace android_webview | 77 } // namespace android_webview |
78 | 78 |
79 #endif // ANDROID_WEBVIEW_COMMON_AW_HIT_TEST_DATA_H_ | 79 #endif // ANDROID_WEBVIEW_COMMON_AW_HIT_TEST_DATA_H_ |
OLD | NEW |