OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef IOS_WEB_PUBLIC_WEB_STATE_CONTEXT_MENU_PARAMS_H_ | 4 #ifndef IOS_WEB_PUBLIC_WEB_STATE_CONTEXT_MENU_PARAMS_H_ |
5 #define IOS_WEB_PUBLIC_WEB_STATE_CONTEXT_MENU_PARAMS_H_ | 5 #define IOS_WEB_PUBLIC_WEB_STATE_CONTEXT_MENU_PARAMS_H_ |
6 | 6 |
7 #import <UIKit/UIKit.h> | 7 #import <UIKit/UIKit.h> |
8 | 8 |
9 #include "base/mac/scoped_nsobject.h" | 9 #import "base/mac/scoped_nsobject.h" |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
11 #include "ios/web/public/referrer.h" | 11 #include "ios/web/public/referrer.h" |
12 #include "url/gurl.h" | 12 #include "url/gurl.h" |
13 | 13 |
14 namespace web { | 14 namespace web { |
15 | 15 |
16 // Wraps information needed to show a context menu. | 16 // Wraps information needed to show a context menu. |
17 struct ContextMenuParams { | 17 struct ContextMenuParams { |
18 public: | 18 public: |
19 ContextMenuParams(); | 19 ContextMenuParams(); |
(...skipping 20 matching lines...) Expand all Loading... |
40 CGPoint location; | 40 CGPoint location; |
41 | 41 |
42 // The text associated with the link. It is either nil or nonempty (it can not | 42 // The text associated with the link. It is either nil or nonempty (it can not |
43 // be empty). | 43 // be empty). |
44 base::scoped_nsobject<NSString> link_text; | 44 base::scoped_nsobject<NSString> link_text; |
45 }; | 45 }; |
46 | 46 |
47 } // namespace web | 47 } // namespace web |
48 | 48 |
49 #endif // IOS_WEB_PUBLIC_WEB_STATE_CONTEXT_MENU_PARAMS_H_ | 49 #endif // IOS_WEB_PUBLIC_WEB_STATE_CONTEXT_MENU_PARAMS_H_ |
OLD | NEW |